aboutsummaryrefslogtreecommitdiffstats
path: root/editors/openoffice-1.1-devel
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2004-08-24 19:51:38 +0800
committermaho <maho@FreeBSD.org>2004-08-24 19:51:38 +0800
commit22aaae1220185ec2a9ea4ddc08557176594837dc (patch)
tree0fb2343c78a55660d9fca942ffbec4d25253a018 /editors/openoffice-1.1-devel
parent24fe3d2a242e01726409e2bb219d30cc1a06eeb8 (diff)
downloadfreebsd-ports-gnome-22aaae1220185ec2a9ea4ddc08557176594837dc.tar.gz
freebsd-ports-gnome-22aaae1220185ec2a9ea4ddc08557176594837dc.tar.zst
freebsd-ports-gnome-22aaae1220185ec2a9ea4ddc08557176594837dc.zip
- use bsd.java.mk
- depend on orbit and gtk12 only when mozilla is built - change zip-file dependencies to OR instead of AND Submitted by: oliver
Diffstat (limited to 'editors/openoffice-1.1-devel')
-rw-r--r--editors/openoffice-1.1-devel/Makefile31
1 files changed, 20 insertions, 11 deletions
diff --git a/editors/openoffice-1.1-devel/Makefile b/editors/openoffice-1.1-devel/Makefile
index c520b2af8e31..ba29180bd354 100644
--- a/editors/openoffice-1.1-devel/Makefile
+++ b/editors/openoffice-1.1-devel/Makefile
@@ -24,13 +24,22 @@ MAINTAINER= openoffice@FreeBSD.org
SNAPDATE= 20040810
NO_LATEST_LINK= yes
-USE_GNOME= orbit gtk12 gtk20
+USE_GNOME= gtk20
+.if !defined(WITHOUT_MOZILLA)
+USE_GNOME+= orbit gtk12
+.endif
+
USE_PERL5= yes
USE_BISON= yes
USE_GMAKE= yes
USE_REINPLACE= yes
USE_BZIP2= yes
+.if !defined(WITHOUT_JAVA)
+USE_JAVA= 1.4+
+NO_RUN_DEPENDS_JAVA= yes
+.endif
+
.include <bsd.port.pre.mk>
.include <${FILESDIR}/Makefile.localized>
@@ -77,9 +86,6 @@ CC= gcc32
CXX= g++32
.endif
-.if !defined(WITHOUT_JAVA)
-BUILD_DEPENDS+= ${JDKDIR}/bin/java:${PORTSDIR}/java/jdk14
-.endif
BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip \
unzip:${PORTSDIR}/archivers/unzip \
gcp:${PORTSDIR}/sysutils/coreutils \
@@ -92,8 +98,9 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png \
mng.1:${PORTSDIR}/graphics/libmng \
freetype.9:${PORTSDIR}/print/freetype2
-
-JDKDIR?= ${LOCALBASE}/jdk1.4.2
+.if defined(WITHOUT_JAVA)
+LIB_DEPENDS= xslt.2:${PORTSDIR}/textproc/libxslt
+.endif
GNU_CONFIGURE= yes
USE_AUTOCONF_VER= 259
WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work
@@ -111,11 +118,13 @@ DISPLAYHACK=localhost:1001
CONFIGURE_ENV= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
PTHREAD_LIBS=${PTHREAD_LIBS}
CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp
+
.if defined(WITHOUT_JAVA)
CONFIGURE_ARGS+= --disable-java
.else
-CONFIGURE_ARGS+= --with-jdk-home=${JDKDIR}
+CONFIGURE_ARGS+= --with-jdk-home="${JAVA_HOME}"
.endif
+
.if defined(WITHOUT_MOZILLA)
CONFIGURE_ARGS+= --disable-mozilla
.endif
@@ -219,10 +228,10 @@ post-patch:
.include <${FILESDIR}/Makefile.mozilla>
-.if !defined(WITHOUT_MOZILLA) && \
- !exists(${WRKSRC}/../moz/zipped/FREEBSDGCCIruntime.zip) && \
- !exists(${WRKSRC}/../moz/zipped/FREEBSDGCCIlib.zip) && \
- !exists(${WRKSRC}/../moz/zipped/FREEBSDGCCIinc.zip)
+.if !defined(WITHOUT_MOZILLA) && ( \
+ !exists(${WRKSRC}/../moz/zipped/FREEBSDGCCIruntime.zip) || \
+ !exists(${WRKSRC}/../moz/zipped/FREEBSDGCCIlib.zip) || \
+ !exists(${WRKSRC}/../moz/zipped/FREEBSDGCCIinc.zip) )
do-build: mozilla
.else
do-build: