Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jul 2011 06:12:16 +0200
From:      Gabor PALI <pgj@FreeBSD.org>
To:        office@freebsd.org
Subject:   [patch] Moving LibreOffice Version to an .mk File
Message-ID:  <4E34D620.70404@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------070802000902060907020000
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

 Hi,

I would need a separate .mk file under editors/libreoffice where I could
keep the version number for LibreOffice.  This way I could share it with
editors/libreoffice-l10n [1].

I attach a patch for this, let me know if there any problems with it.

By the way: I have talked with Andras Timar from the LibreOffice team on
Friday, and he said currently there is no easy way to build language and
help files from source directly (only as part of the complete build).

This means that my solution (that I considered ugly) seems to be the
only one at the moment.  So shall I commit the libreoffice-l10n ports to
the ports tree as they are?  What do you think?


[1]
https://github.com/bapt/libreoffice-ports/tree/master/editors/libreoffice-l10n


--------------070802000902060907020000
Content-Type: text/plain;
 name="mk_patch.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="mk_patch.diff"

diff --git a/editors/libreoffice/Makefile b/editors/libreoffice/Makefile
index 9b6d26a..a0f4a3f 100644
--- a/editors/libreoffice/Makefile
+++ b/editors/libreoffice/Makefile
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	libreoffice
-PORTVERSION=	3.3.3
+PORTVERSION=	${LIBO_VERSION}
 PORTREVISION=	2
 LOVERSION=	${PORTVERSION}.1
 CATEGORIES=	editors
@@ -414,3 +414,4 @@ post-install:
 	@${LOCALBASE}/bin/update-desktop-database 2>/dev/null || ${TRUE}
 
 .include <bsd.port.post.mk>
+.include "${.CURDIR}/../../editors/libreoffice/bsd.libreoffice.mk"
diff --git a/editors/libreoffice/bsd.libreoffice.mk b/editors/libreoffice/bsd.libreoffice.mk
new file mode 100644
index 0000000..d1a0541
--- /dev/null
+++ b/editors/libreoffice/bsd.libreoffice.mk
@@ -0,0 +1,9 @@
+#
+# $FreeBSD$
+#
+# bsd.libreoffice.mk -- Support for ports based on LibreOffice.
+#
+# Maintained by: office@FreeBSD.org
+#
+
+LIBO_VERSION=	3.3.3

--------------070802000902060907020000--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E34D620.70404>