aboutsummaryrefslogtreecommitdiffstats
path: root/java/sablevm
diff options
context:
space:
mode:
Diffstat (limited to 'java/sablevm')
-rw-r--r--java/sablevm/Makefile42
-rw-r--r--java/sablevm/pkg-plist14
2 files changed, 27 insertions, 29 deletions
diff --git a/java/sablevm/Makefile b/java/sablevm/Makefile
index f5d85305a6b7..e8f853d3b580 100644
--- a/java/sablevm/Makefile
+++ b/java/sablevm/Makefile
@@ -1,54 +1,52 @@
-# New ports collection makefile for: sablevm
-# Date created: 9 July 2002
-# Whom: Archie Cobbs <archie@freebsd.org>
-#
+# Creaetd by: Archie Cobbs <archie@freebsd.org>
# $FreeBSD$
-#
PORTNAME= sablevm
PORTVERSION= 1.13
-PORTREVISION= 9
+PORTREVISION= 10
CATEGORIES= java devel
MASTER_SITES= SF
-MAINTAINER= bkoenig@alpha-tierchen.de
+MAINTAINER= java@FreeBSD.org
COMMENT= Java VM created by McGill University's Sable Research Group
+LICENSE= LGPL21
+
LIB_DEPENDS= popt:${PORTSDIR}/devel/popt \
ffi:${PORTSDIR}/devel/libffi
+RUN_DEPENDS= fastjar:${PORTSDIR}/archivers/fastjar
GNU_CONFIGURE= yes
USE_AUTOTOOLS= libltdl
-USE_GMAKE= yes
USE_GETTEXT= yes
+USE_GMAKE= yes
USE_ICONV= yes
USE_LDCONFIG= yes
+USE_PKGCONFIG= build
-USE_GNOME= pkgconfig
-PKG_CONFIG?= ${LOCALBASE}/bin/pkg-config
+CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-CFLAGS+= -I${LOCALBASE}/include `${PKG_CONFIG} libffi --cflags`
CONFIGURE_ARGS= --includedir=${PREFIX}/include/${PORTNAME}
-OPTIONS= SVMCP "Install SableVM classpath" ON \
- MAN "Build and install man pages" ON
-
-CONFLICTS= classpath-*
+OPTIONS_DEFINE= MAN SVMCP
+OPTIONS_DEFAULT=MAN SVMCP
+MAN_DESC= Build and install man pages
+SVMCP_DESC= Install SableVM classpath
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if !defined(WITHOUT_SVMCP)
-RUN_DEPENDS+= ${LOCALBASE}/lib/sablevm-classpath/libjavalang.so:${PORTSDIR}/java/sablevm-classpath
+.if ${PORT_OPTIONS:MMAN}
+MAN1= java-sablevm.1 sablevm.1
.endif
-.if !defined(WITHOUT_MAN)
-MAN1= java-sablevm.1 sablevm.1
+.if ${PORT_OPTIONS:MSVMCP}
+RUN_DEPENDS+= ${LOCALBASE}/lib/sablevm-classpath/libjavalang.so:${PORTSDIR}/java/sablevm-classpath
.endif
post-extract:
@${REINPLACE_CMD} -e 's,^subdirs=".*,,' ${WRKSRC}/configure
-.if defined(WITHOUT_MAN)
+.if empty(PORT_OPTIONS:MMAN)
@${REINPLACE_CMD} -e 's,^\(man_MANS = \).*,\1,' ${WRKSRC}/doc/Makefile.in
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/java/sablevm/pkg-plist b/java/sablevm/pkg-plist
index 38b400ffb0e3..0b18d22f5832 100644
--- a/java/sablevm/pkg-plist
+++ b/java/sablevm/pkg-plist
@@ -14,12 +14,12 @@ lib/sablevm/bin/jdb
lib/sablevm/include/jni.h
lib/sablevm/include/jni_system_specific.h
lib/sablevm/jre/bin
-share/sablevm/AUTHORS
-share/sablevm/LGPL-2.1
-share/sablevm/LICENSE
-@dirrm include/sablevm
-@dirrm share/sablevm
-@dirrm lib/sablevm/jre
+%%DATADIR%%/AUTHORS
+%%DATADIR%%/LGPL-2.1
+%%DATADIR%%/LICENSE
+@dirrm %%DATADIR%%
+@dirrmtry lib/sablevm/jre
@dirrm lib/sablevm/include
@dirrm lib/sablevm/bin
-@dirrm lib/sablevm
+@dirrmtry lib/sablevm
+@dirrm include/sablevm