aboutsummaryrefslogtreecommitdiff
path: root/java/jasmin/Makefile
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2005-03-01 21:29:29 +0000
committerVolker Stolz <vs@FreeBSD.org>2005-03-01 21:29:29 +0000
commit2e7c78f17488c7a24f8ccaf601075c5bb9b76b6c (patch)
tree921004546f51db48334737bc64ee7eb3dfb2fc10 /java/jasmin/Makefile
parenta483ba1c595d705a90a930f6c97817144e7330fe (diff)
downloadports-2e7c78f17488c7a24f8ccaf601075c5bb9b76b6c.tar.gz
ports-2e7c78f17488c7a24f8ccaf601075c5bb9b76b6c.zip
Notes
Diffstat (limited to 'java/jasmin/Makefile')
-rw-r--r--java/jasmin/Makefile34
1 files changed, 11 insertions, 23 deletions
diff --git a/java/jasmin/Makefile b/java/jasmin/Makefile
index 7ac9039d8761..edddf578e004 100644
--- a/java/jasmin/Makefile
+++ b/java/jasmin/Makefile
@@ -6,34 +6,22 @@
#
PORTNAME= jasmin
-PORTVERSION= 1.06
-CATEGORIES= java
-MASTER_SITES= http://www.cat.nyu.edu/~meyer/jasmin/
+PORTVERSION= 1.1
+PORTEPOCH= 1
+CATEGORIES= java lang
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= plexus@snafu.de
COMMENT= Java Assembler Interface
-USE_JAVA= 1.1+
-NEED_JAVAC= yes
-
-WRKSRC= ${WRKDIR}/jasmin
-
-post-extract:
- @${MKDIR} ${WRKSRC}/FreeBSD
- @${ECHO_CMD} Main-Class: jasmin.Main >${WRKSRC}/FreeBSD/manifest
-
-do-build:
- cd ${WRKSRC}/lib/cup && ${JAVAC} -d ${WRKSRC}/FreeBSD java_cup/*.java java_cup/runtime/*.java
- cd ${WRKSRC}/lib/jas/src && ${JAVAC} -d ${WRKSRC}/FreeBSD jas/*.java
- cd ${WRKSRC}/FreeBSD && ${JAVA} java_cup.Main < ${WRKSRC}/src/jasmin/parser.cup
- @${RM} ${WRKSRC}/src/jasmin/parser.java
- @${RM} ${WRKSRC}/src/jasmin/sym.java
- @${MV} ${WRKSRC}/FreeBSD/sym.java ${WRKSRC}/FreeBSD/parser.java ${WRKSRC}/src/jasmin
- cd ${WRKSRC}/FreeBSD && ${JAVAC} -d ../FreeBSD ../src/jasmin/*.java
- cd ${WRKSRC}/FreeBSD && ${JAR} -cmf manifest jasmin.jar jas jasmin java_cup
+USE_ZIP= yes
+USE_ANT= yes
+ALL_TARGET= jasmin
+USE_JAVA= 1.2+
do-install:
- ${INSTALL_DATA} ${WRKSRC}/FreeBSD/jasmin.jar ${PREFIX}/share/java
+ ${INSTALL_DATA} ${WRKSRC}/jasmin.jar ${JAVAJARDIR}
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples ; \
${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/\{} \; ;\
@@ -41,7 +29,7 @@ do-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCDIR}
- cd ${WRKSRC}/doc ; \
+ cd ${WRKSRC}/docs ; \
${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/\{} \; ;\
${FIND} . -type f -exec ${INSTALL_DATA} \{} ${DOCSDIR}/\{} \;
.endif