summaryrefslogtreecommitdiff
path: root/lang/sablevm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/sablevm/Makefile')
-rw-r--r--lang/sablevm/Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/lang/sablevm/Makefile b/lang/sablevm/Makefile
index 0ac6d48699a..614b1455742 100644
--- a/lang/sablevm/Makefile
+++ b/lang/sablevm/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2004/04/30 21:15:44 jmmv Exp $
+# $NetBSD: Makefile,v 1.3 2004/05/23 10:25:30 jmmv Exp $
#
DISTNAME= sablevm-1.1.3
+PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sablevm/} \
http://devel.sablevm.org/download/1.1.3/
@@ -11,13 +12,26 @@ HOMEPAGE= http://www.sablevm.org/
COMMENT= SableVM free Java virtual machine
DEPENDS+= unzip>=5.50:../../archivers/unzip
-DEPENDS+= sablevm-classpath-1.1.3:../../lang/sablevm-classpath
+DEPENDS+= sablevm-classpath-1.1.3nb1:../../lang/sablevm-classpath
GNU_CONFIGURE= yes
+GNU_CONFIGURE_PREFIX= ${JAVA_HOME}
+NO_MTREE= yes
USE_BUILDLINK3= yes
USE_GNU_TOOLS+= make
USE_LIBTOOL= yes
+JAVA_NAME= sablevm
+JAVA_HOME= ${PREFIX}/java/sablevm
+JAVA_WRAPPERS= java
+JAVA_WRAPPER_BIN.java= ${JAVA_HOME}/bin/sablevm
+
+PRINT_PLIST_AWK+= /^@dirrm java\/sablevm$$/ \
+ { print "@comment in sablevm-classpath: " $$0; \
+ next; }
+
+BUILDLINK_PASSTHRU_RPATHDIRS+= ${JAVA_HOME}/lib
+
.if !exists(/usr/include/semaphore.h)
LDFLAGS+= -lsemaphore
BUILDLINK_TRANSFORM+= l:rt:semaphore:
@@ -26,5 +40,6 @@ BUILDLINK_TRANSFORM+= l:rt:semaphore:
.include "../../devel/libffi/buildlink3.mk"
.include "../../devel/libtool/buildlink3.mk"
.include "../../devel/popt/buildlink3.mk"
+.include "../../mk/java-env.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"