summaryrefslogtreecommitdiff
path: root/java/kaffe/Makefile
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2005-01-10 11:04:51 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2005-01-10 11:04:51 +0000
commitd14e38e1889cb73d9b11f4f3a12f82d8dc21cdf6 (patch)
tree8afa934e33cf4397216148f7101c1c561513e71b /java/kaffe/Makefile
parentThe upgrade of swi-pl requires an update for PyProlog as (diff)
Move java/kaffe-devel to java/kaffe
Remove java/kaffe-devel Submitted by: maintainer (via irc)
Notes
Notes: svn path=/head/; revision=126041
Diffstat (limited to 'java/kaffe/Makefile')
-rw-r--r--java/kaffe/Makefile59
1 files changed, 47 insertions, 12 deletions
diff --git a/java/kaffe/Makefile b/java/kaffe/Makefile
index f3ad60bba515..e1dc34638eda 100644
--- a/java/kaffe/Makefile
+++ b/java/kaffe/Makefile
@@ -1,44 +1,79 @@
# New ports collection makefile for: kaffe
-# Date created: 20 February 1995
-# Whom: Tim Wilkinson <tim@sarc.city.ac.uk>
+# Date created: 4 August 2003
+# Whom: Mark Huizer <xaa+ports@timewasters.nl>
#
# $FreeBSD$
#
PORTNAME= kaffe
-PORTVERSION= 1.0.7
+PORTVERSION= 1.1.3
+PORTREVISION= 1
CATEGORIES= java
-MASTER_SITES= ftp://ftp.kaffe.org/pub/kaffe/v1.0.x-production/
+MASTER_SITES= ftp://ftp.kaffe.org/pub/kaffe/v1.1.x-development/
MAINTAINER= xaa+ports@timewasters.nl
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
+ png.5:${PORTSDIR}/graphics/png \
+ gmp.6:${PORTSDIR}/math/libgmp4
-CONFLICTS= kaffe-devel-1.* javavmwrapper-2.*
+CONFLICTS= kaffe-1.[!1].* javavmwrapper-2.*
-NOT_FOR_ARCHS= amd64
+WRKSRC= ${WRKDIR}/kaffe-${PORTVERSION}
+
+NOT_FOR_ARCHS= amd64 alpha
USE_LIBTOOL_VER=13
+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}
-PLIST_SUB+= PORTVER=${PORTVERSION} ARCH=${ARCH}
+WANT_GNOME= esound
MAN1= kaffe.1
+OPTIONS= AWT_X "Use AWT widgets with X" On \
+ AWT_QT "Use AWT widgets with Qt" Off
+
.include <bsd.port.pre.mk>
-.if ${ARCH} == "alpha"
-BROKEN= "Configure fails on alpha"
+.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
+.elif defined(WITH_AWT_QT)
+ CONFIGURE_ARGS+= --with-awt=qt --with-qtdir=${X11BASE}
+ AWT= yes
+ USE_QT_VER= 3
+ WITH_ESOUND= yes
+.else
+ CONFIGURE_ARGS+= --with-awt=no
.endif
-.if ${OSVERSION} >= 502000
-BROKEN= "Does not compile"
+.if defined(AWT)
+ PLIST_SUB+= SUB_AWT=""
+.else
+ PLIST_SUB+= SUB_AWT="@comment "
.endif
+.if defined(WITH_ESOUND)
+ USE_GNOME+= esound
+ PLIST_SUB+= SUB_ESOUND=""
+.else
+ PLIST_SUB+= SUB_ESOUND="@comment "
+.endif
+
+PLIST_SUB+= PORTVER=${PORTVERSION} ARCH=${ARCH}
+
post-install:
@${MKDIR} ${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/BUILD_ENVIRONMENT ${DATADIR}