aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2004-03-05 18:59:06 +0800
committeredwin <edwin@FreeBSD.org>2004-03-05 18:59:06 +0800
commitea4a3b45cdf3159eff312a9b066cd18f20903136 (patch)
tree1738eab97324f96d7ea0104713a1a32f21969b6f
parent9966bff88720d8f7125c563afd28d7b3ee557f4e (diff)
downloadfreebsd-ports-gnome-ea4a3b45cdf3159eff312a9b066cd18f20903136.tar.gz
freebsd-ports-gnome-ea4a3b45cdf3159eff312a9b066cd18f20903136.tar.zst
freebsd-ports-gnome-ea4a3b45cdf3159eff312a9b066cd18f20903136.zip
Update to version 1.1.3
Use OPTIONS Submitted by: Mark Huizer <xaa+ports@timewasters.nl>
-rw-r--r--java/kaffe-devel/Makefile55
-rw-r--r--java/kaffe-devel/pkg-plist12
2 files changed, 51 insertions, 16 deletions
diff --git a/java/kaffe-devel/Makefile b/java/kaffe-devel/Makefile
index 385847ee5e21..fe8688cf771a 100644
--- a/java/kaffe-devel/Makefile
+++ b/java/kaffe-devel/Makefile
@@ -24,42 +24,77 @@ COMMENT= Multi-platform Java virtual machine with JIT compiler and AWT package
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
ungif.5:${PORTSDIR}/graphics/libungif \
png.5:${PORTSDIR}/graphics/png \
- iconv.3:${PORTSDIR}/converters/libiconv \
gmp.6:${PORTSDIR}/math/libgmp4
WRKSRC= ${WRKDIR}/kaffe-${PORTVERSION}
-ONLY_FOR_ARCHS= i386
+NOT_FOR_ARCHS= amd64
-USE_GNOME= esound
USE_LIBTOOL= yes
USE_GMAKE= yes
+USE_ICONV= yes
LIBTOOLFLAGS=
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib --with-iconv-prefix=${LOCALBASE}
-.if defined(KAFFE_AWT)
-.if ${KAFFE_AWT} == "X"
+WANT_GNOME= esound
+
+MAN1= kaffe.1
+
+OPTIONS= KAFFE_AWT_X "Use AWT widgets with X" On \
+ KAFFE_AWT_QT "Use AWT widgets with Qt" Off \
+ KAFFE_AWT_NO "Do not use AWT widgets" Off
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITH_KAFFE_AWT_X) && !defined(WITH_KAFFE_AWT_QT) && !defined(WITH_KAFFE_AWT_NO)
+BROKEN= "Choose one of the options in 'make config'"
+.endif
+
+.if defined(WITH_KAFFE_AWT_X)
+. if defined(WITH_KAFFE_AWT_QT) || defined(WITH_KAFFE_AWT_NO)
+ BROKEN= "Choose only one of the options in 'make config'"
+. endif
CONFIGURE_ARGS+= --with-awt=X
USE_XLIB= yes
+ AWT= yes
+ WITH_ESOUND= yes
.endif
-.if ${KAFFE_AWT} == "QT"
+.if defined(WITH_KAFFE_AWT_QT)
+. if defined(WITH_KAFFE_AWT_X) || defined(WITH_KAFFE_AWT_NO)
+ BROKEN= "Choose only one of the options in 'make config'"
+. endif
CONFIGURE_ARGS+= --with-awt=qt --with-qtdir=${X11BASE}
+ AWT= yes
USE_QT_VER= 3
+ WITH_ESOUND= yes
.endif
-.if ${KAFFE_AWT} == "no"
+.if defined(WITH_KAFFE_AWT_NO)
+. if defined(WITH_KAFFE_AWT_X) || defined(WITH_KAFFE_AWT_QT)
+ BROKEN= "Choose only one of the options in 'make config'"
+. endif
CONFIGURE_ARGS+= --with-awt=no
.endif
+
+.if defined(AWT)
+ PLIST_SUB+= SUB_AWT=""
+.else
+ PLIST_SUB+= SUB_AWT="@comment "
.endif
-PLIST_SUB+= PORTVER=${PORTVERSION} ARCH=${ARCH}
+.if defined(WITH_ESOUND)
+ USE_GNOME+= esound
+ PLIST_SUB+= SUB_ESOUND=""
+.else
+ PLIST_SUB+= SUB_ESOUND="@comment "
+.endif
-MAN1= kaffe.1
+PLIST_SUB+= PORTVER=${PORTVERSION} ARCH=${ARCH}
post-install:
@${MKDIR} ${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/BUILD_ENVIRONMENT ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/license.terms ${DATADIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/java/kaffe-devel/pkg-plist b/java/kaffe-devel/pkg-plist
index e9912ed990ad..819dcdc787e8 100644
--- a/java/kaffe-devel/pkg-plist
+++ b/java/kaffe-devel/pkg-plist
@@ -32,9 +32,9 @@ jre/bin/java
jre/bin/kaffe
jre/bin/kaffe-bin
jre/bin/rmiregistry
-jre/lib/%%ARCH%%/libawt-%%PORTVER%%.so
-jre/lib/%%ARCH%%/libawt.la
-jre/lib/%%ARCH%%/libawt.so
+%%SUB_AWT%%jre/lib/%%ARCH%%/libawt-%%PORTVER%%.so
+%%SUB_AWT%%jre/lib/%%ARCH%%/libawt.la
+%%SUB_AWT%%jre/lib/%%ARCH%%/libawt.so
jre/lib/%%ARCH%%/libio-%%PORTVER%%.so
jre/lib/%%ARCH%%/libio.la
jre/lib/%%ARCH%%/libio.so
@@ -62,9 +62,9 @@ jre/lib/%%ARCH%%/libsecurity.so
jre/lib/%%ARCH%%/libzip-%%PORTVER%%.so
jre/lib/%%ARCH%%/libzip.la
jre/lib/%%ARCH%%/libzip.so
-jre/lib/%%ARCH%%/libtritonusesd-%%PORTVER%%.so
-jre/lib/%%ARCH%%/libtritonusesd.la
-jre/lib/%%ARCH%%/libtritonusesd.so
+%%SUB_ESOUND%%jre/lib/%%ARCH%%/libtritonusesd-%%PORTVER%%.so
+%%SUB_ESOUND%%jre/lib/%%ARCH%%/libtritonusesd.la
+%%SUB_ESOUND%%jre/lib/%%ARCH%%/libtritonusesd.so
jre/lib/security/java.security
jre/lib/rt.jar
lib/kjc.jar