[Midnightbsd-cvs] mports: Makefile: Add options for JAVA support.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Jun 4 11:55:36 EDT 2008


Log Message:
-----------
Add options for JAVA support.  With this set, it will include JAVA as a run depends.  We might need to do more with this later.

Modified Files:
--------------
    mports/editors/linux-openoffice2:
        Makefile (r1.2 -> r1.3)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/editors/linux-openoffice2/Makefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -L editors/linux-openoffice2/Makefile -L editors/linux-openoffice2/Makefile -u -r1.2 -r1.3
--- editors/linux-openoffice2/Makefile
+++ editors/linux-openoffice2/Makefile
@@ -7,7 +7,8 @@
 
 PORTNAME=	openoffice2
 PORTVERSION=	${OO_RELEASE}
-CATEGORIES=	editors linux
+PORTREVISION=	1
+CATEGORIES=	editors java  linux 
 MASTER_SITES=	${MASTER_SITE_OPENOFFICE:=stable/${OO_RELEASE}/}
 PKGNAMEPREFIX?=	linux-
 DISTNAME=		OOo_${OO_RELEASE}_LinuxIntel_install_en-US
@@ -17,22 +18,18 @@
 COMMENT=	Integrated office productivity suite (binary pkg)
 LICENSE=	lgpl
 
+RUN_DEPENDS+=	${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme
+
 ONLY_FOR_ARCHS=	i386 amd64
 
 USE_GCPIO=	yes
 USE_LINUX=	yes
-USE_XLIB=	yes
+USE_XORG=	x11 ice xaw xau xext xrender xrandr \
+		xi xt xcursor xdamage xcomposite xfixes 
 NO_BUILD=	yes
 
 OO_VER=			2.4
 OO_RELEASE=		2.4.0
-PLIST_SUBST+=		VER=${OO_VER:Q}
-MESSAGE_SUBST+=		VER=${OO_VER:Q}
-FILES_SUBST+=		VER=${OO_VER:Q}
-
-TEMP?=			${WRKSRC}
-
-BUILD_DIRS=		# empty
 
 RPM2CPIO?=              ${LOCALBASE}/bin/rpm2cpio
 BUILD_DEPENDS+=       ${RPM2CPIO}:${PORTSDIR}/archivers/rpm
@@ -72,10 +69,17 @@
 
 WRKSRC=			${WRKDIR}/OOH680_m12_native_packed-1_en-US.9286
 
+OPTIONS=	JAVA "Enable Java Support" off
+
 .include <bsd.port.pre.mk>
 
 LINPROCFS!=	/sbin/mount | ${GREP} linprocfs | ${AWK} '{print $1}'
 
+.if defined(WITH_JAVA)
+USE_JAVA=	yes
+JAVA_VERSION=	1.4 1.5
+.endif
+
 pre-fetch:
 .if ${LINPROCFS}
 	@${ECHO}
@@ -85,7 +89,7 @@
 	@${ECHO}
 	@${ECHO} ERROR:
 	@${ECHO}
-	@${ECHO} Staroffice setup needs a running linprocfs. it seems
+	@${ECHO} OpenOffice.org setup needs a running linprocfs. it seems
 	@${ECHO} that procfs is not mounted on your system.  Please
 	@${ECHO} read the linprocfs\(5\) manpage and ensure the
 	@${ECHO} the following line is in /etc/fstab, and that the
@@ -100,7 +104,7 @@
 	@${ECHO} ERROR:
 	@${ECHO}
 	@${ECHO} The file ${LINUXBASE}/etc/mtab is missing.
-	@${ECHO} Staroffice needs this file else some functions
+	@${ECHO} OpenOffice.org needs this file else some functions
 	@${ECHO} are not working. You can create it with
 	@${ECHO}
 	@${ECHO} touch ${LINUXBASE}/etc/mtab


More information about the Midnightbsd-cvs mailing list