aboutsummaryrefslogtreecommitdiffstats
path: root/lang/abcl/Makefile
diff options
context:
space:
mode:
authoraaron <aaron@FreeBSD.org>2006-07-25 15:34:24 +0800
committeraaron <aaron@FreeBSD.org>2006-07-25 15:34:24 +0800
commit81078c3544e69e89bf008ca72a86f7dd8c3a30c5 (patch)
treece6d5533d46228feee612aed5262ff2a48430dd0 /lang/abcl/Makefile
parent7728283ead444c02b38ba28e389e343704f7776c (diff)
downloadfreebsd-ports-gnome-81078c3544e69e89bf008ca72a86f7dd8c3a30c5.tar.gz
freebsd-ports-gnome-81078c3544e69e89bf008ca72a86f7dd8c3a30c5.tar.zst
freebsd-ports-gnome-81078c3544e69e89bf008ca72a86f7dd8c3a30c5.zip
Adding port lang/abcl. Armed Bear Common Lisp, an implementation of
Common Lisp in Java. PR: ports/96232 Submitted by: Frank Fischer <fischer.frank@gmail.com>
Diffstat (limited to 'lang/abcl/Makefile')
-rw-r--r--lang/abcl/Makefile78
1 files changed, 78 insertions, 0 deletions
diff --git a/lang/abcl/Makefile b/lang/abcl/Makefile
new file mode 100644
index 000000000000..bd1ccb2ddbe7
--- /dev/null
+++ b/lang/abcl/Makefile
@@ -0,0 +1,78 @@
+# New ports collection makefile for: abcl
+# Date created: 22 April 2006
+# Whom: Frank Fischer
+#
+# $FreeBSD$
+#
+
+PORTNAME= abcl
+DISTVERSION= 0.0.9
+CATEGORIES= lang lisp java
+MASTER_SITES= http://armedbear.org/
+
+MAINTAINER= fischer.frank@gmail.com
+COMMENT= An implementation of ANSI Common Lisp in Java
+
+SUB_FILES= abcl
+SUB_LIST= JAVA=${JAVA} ABCL_JAR=${JAVAJARDIR}/abcl.jar
+
+USE_GCC= 3.3+
+USE_JAVA= yes
+JAVA_VERSION= 1.4+
+INSTALLS_SHLIB= yes
+
+do-build: ${WRKSRC}/abcl-src.jar ${WRKSRC}/libabcl.so
+
+do-install:
+ @${INSTALL_SCRIPT} -v ${WRKDIR}/abcl ${PREFIX}/bin
+ @${INSTALL_DATA} -v ${WRKSRC}/abcl.jar ${JAVAJARDIR}
+ @${INSTALL_DATA} -v ${WRKSRC}/abcl-src.jar ${JAVAJARDIR}
+ @${INSTALL_DATA} -v ${WRKSRC}/libabcl.so ${LOCALBASE}/lib
+
+.include <bsd.port.pre.mk>
+
+${WRKSRC}/libabcl.so:
+ cd ${WRKSRC}/src && \
+ ${JAVAH} -o org/armedbear/lisp/native.h org.armedbear.lisp.Native && \
+ ${CC} -shared -o ../libabcl.so -O -D_REENTRANT -fpic -I${JAVA_HOME}/include \-I${JAVA_HOME}/include/freebsd org/armedbear/lisp/native.c
+${WRKSRC}/abcl-src.jar: ${WRKSRC}/abcl.jar
+ cd ${WRKSRC}/src && \
+ ${JAR} cmf manifest-abcl ../abcl-src.jar org/armedbear/lisp/*.java && \
+ ${JAR} uf ../abcl-src.jar org/armedbear/lisp/java/awt/*.java && \
+ ${JAR} uf ../abcl-src.jar org/armedbear/lisp/LICENSE && \
+ ${JAR} uf ../abcl-src.jar org/armedbear/lisp/*.lisp
+
+${WRKSRC}/abcl.jar: ${WRKSRC}/src/org/armedbear/lisp/describe-1.cls
+ cd ${WRKSRC}/src && \
+ ${JAR} cmf manifest-abcl ../abcl.jar org/armedbear/lisp/*.class && \
+ ${JAR} uf ../abcl.jar org/armedbear/lisp/java/awt/*.class && \
+ ${JAR} uf ../abcl.jar org/armedbear/lisp/LICENSE && \
+ ${JAR} uf ../abcl.jar org/armedbear/lisp/*.lisp && \
+ ${JAR} uf ../abcl.jar org/armedbear/lisp/*.abcl && \
+ ${FIND} . -name '*.cls' | ${XARGS} ${JAR} uf ../abcl.jar
+
+${WRKSRC}/src/org/armedbear/lisp/describe-1.cls: ${WRKSRC}/src/org/armedbear/lisp/Main.class
+ cd ${WRKSRC} && \
+ ${JAVA} -classpath ./src org.armedbear.lisp.Main --eval "(compile-system :zip nil :quit t)"
+
+${WRKSRC}/src/org/armedbear/lisp/Main.class:
+ cd ${WRKSRC} && \
+ ${JAVAC} -verbose -classpath ./src ${WRKSRC}/src/org/armedbear/lisp/*.java && \
+ ${JAVAC} -verbose -classpath ./src ${WRKSRC}/src/org/armedbear/lisp/java/awt/*.java
+
+delete-build-artifacts:
+ ${FIND} ${WRKSRC} -name "*.class" -delete
+ ${FIND} ${WRKSRC} -name "*.abcl" -delete
+ ${FIND} ${WRKSRC} -name "*.cls" -delete
+ ${FIND} ${WRKSRC} -name "native.h" -delete
+ ${FIND} ${WRKSRC} -name "libabcl.so" -delete
+ ${FIND} ${WRKSRC} -name "build" -delete
+list-build-artifacts:
+ ${FIND} ${WRKSRC} -name "*.class" -print
+ ${FIND} ${WRKSRC} -name "*.abcl" -print
+ ${FIND} ${WRKSRC} -name "*.cls" -print
+ ${FIND} ${WRKSRC} -name "native.h" -print
+ ${FIND} ${WRKSRC} -name "libabcl.so" -print
+ ${FIND} ${WRKSRC} -name "build" -print
+
+.include <bsd.port.post.mk>