summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2004-12-22 13:47:26 +0000
committerHerve Quiroz <hq@FreeBSD.org>2004-12-22 13:47:26 +0000
commit333bd9abfa254b04f3878fe58b7b1c8897234c6d (patch)
treee095ea4529c91bb050afb44231563aa38447a7c3 /java
parentUpdate to 0.11 (diff)
Fix OPTIONS so that it will build on pointyhat. Now, the user may either select
AWT_X, AWT_QT, or neither (this will disable entirely AWT). Approved by: maintainer
Notes
Notes: svn path=/head/; revision=124824
Diffstat (limited to 'java')
-rw-r--r--java/kaffe-devel/Makefile33
1 files changed, 7 insertions, 26 deletions
diff --git a/java/kaffe-devel/Makefile b/java/kaffe-devel/Makefile
index a8d63a271960..3834489843de 100644
--- a/java/kaffe-devel/Makefile
+++ b/java/kaffe-devel/Makefile
@@ -5,12 +5,6 @@
# $FreeBSD$
#
-# Configure AWT implementation used (this can be put in make.conf)
-#
-# KAFFE_AWT = no No AWT classes
-# KAFFE_AWT = X X AWT classes
-# KAFFE_AWT = QT Qt AWT classes
-
PORTNAME= kaffe
PORTVERSION= 1.1.3
PORTREVISION= 1
@@ -42,38 +36,25 @@ 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
+OPTIONS= AWT_X "Use AWT widgets with X" On \
+ AWT_QT "Use AWT widgets with Qt" Off
.include <bsd.port.pre.mk>
-.if !defined(WITH_KAFFE_AWT_X) && !defined(WITH_KAFFE_AWT_QT) && !defined(WITH_KAFFE_AWT_NO)
-IGNORE= You must choose one of the options in 'make config' to install
-.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'"
+.if defined(WITH_AWT_X)
+. if defined(WITH_AWT_QT)
+ BROKEN= "Choose either 'X' or 'Qt' in 'make config'"
. endif
CONFIGURE_ARGS+= --with-awt=X
USE_XLIB= yes
AWT= yes
WITH_ESOUND= yes
-.endif
-.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
+.elif defined(WITH_AWT_QT)
CONFIGURE_ARGS+= --with-awt=qt --with-qtdir=${X11BASE}
AWT= yes
USE_QT_VER= 3
WITH_ESOUND= yes
-.endif
-.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
+.else
CONFIGURE_ARGS+= --with-awt=no
.endif