526869d8dc
A big Thank You to the original contributors of these ports: * Alex Dupre <ale@FreeBSD.org> * Alex Semenyaka <alex@rinet.ru> * Alexander Yerenkow <yerenkow@gmail.com> * Anton Yudin (<contact@toha.org.ua>) * Anton Yudin <toha@toha.org.ua> * Benjamin Close <benjsc@FreeBSD.org> * Björn König <bkoenig@alpha-tierchen.de> * Conor McDermottroe <ports@mcdermottroe.com> * Danilo Egea Gondolfo <danilo@FreeBSD.org * Dave Glowacki <dglo@ssec.wisc.edu> * Ernst de Haan <znerd@FreeBSD.org> * Eugene Grosbein <ports@grosbein.net> * Filippo Natali <filippo@widestore.net> * Gerrit Beine <gerrit.beine@gmx.de> * Greg Lewis <glewis@FreeBSD.org> * Herve Quiroz <herve.quiroz@esil.univ-mrs.fr> * Jason Helfman <jgh@FreeBSD.org> * Jeremy <karlj000@unbc.ca> * Johannes Dieterich <dieterich@ogolem.org> * Johannes Dieterich <jmd@FreeBSD.org> * Jonathan Chen <jonc@chen.org.nz> * Jose Marques * Jose Marques <noway@nohow.demon.co.uk> * Lapo Luchini <lapo@lapo.it> * Lev Serebryakov <lev@FreeBSD.org> * Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> * Matthew Dillon <dillon@backplane.com> * Maxim Sobolev <sobomax@FreeBSD.org> * Mikhail T. <mi@aldan.algebra.com> * Mikhail T. <michael@fun-box.ru> * Mikhail Teterin * Nicola Vitale <nivit@FreeBSD.org> * Nicola Vitale <nivit@email.it> * OISHI Masakuni <yamasa@bsdhouse.org> * OKAZAKI Tetsurou * Pedro Giffuni * Simeo Reig <reig.simeo@gmail.com> * Sutra Zhou <zhoushuqun@gmail.com> * Tom Judge <tj@FreeBSD.org> * Volker Stolz <vs@FreeBSD.org> * Wen Heping <wenheping@gmail.com> * Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw> * gldisater@gldis.ca * ijliao * jake@checker.org * jpbeconne * lon_kamikaze@gmx.de * mi * nordwick@xcf.berkeley.edu * nork@FreeBSD.org * olgeni@FreeBSD.org * rasputin * rfarmer@predatorlabs.net * rtdean@cytherianage.net * tux@pinguru.net With hat: portmgr
51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
PORTNAME= jode
|
|
PORTVERSION= 1.1.1.1
|
|
PORTREVISION= 4
|
|
CATEGORIES= java devel
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/1.1.2-pre1
|
|
DISTNAME= ${PORTNAME}-${VENDOR_VERSION}
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
|
COMMENT= Java package containing a decompiler and an optimizer for Java
|
|
|
|
BUILD_DEPENDS= ${GETOPT_JAR}:java/java-getopt
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
VENDOR_VERSION= 1.1.2-pre1
|
|
USE_JAVA= yes
|
|
NEED_JAVAC= yes
|
|
GNU_CONFIGURE= yes
|
|
USES= gmake perl5 shebangfix
|
|
SHEBANG_FILES= ${WRKSRC}/jcpp
|
|
USE_PERL5= test
|
|
MAKE_JOBS_UNSAFE= yes
|
|
TEST_TARGET= check
|
|
|
|
GETOPT_JAR= ${JAVALIBDIR}/java-getopt.jar
|
|
CLASSLIB= ${JAVA_CLASSES}:${GETOPT_JAR}
|
|
CONFIGURE_ENV+= CLASSLIB=${CLASSLIB} JAR="${JAR}" \
|
|
JAVA="${JAVA}" JAVAC="${JAVAC}"
|
|
CONFIGURE_ARGS+=--datadir="${JAVALIBDIR}"
|
|
# Don't create the dependencies:
|
|
MAKE_ARGS+= JAVADEP=:
|
|
SUB_LIST+= GETOPT_JAR=${GETOPT_JAR}
|
|
SUB_FILES= jode
|
|
PLIST_FILES= bin/jode %%JAVAJARDIR%%/jode-${VENDOR_VERSION}.jar
|
|
|
|
post-patch:
|
|
${FIND} ${WRKSRC} -name '*.java*' | \
|
|
${XARGS} ${GREP} --mmap -l 'Enumeration enum ' | \
|
|
${XARGS} ${REINPLACE_CMD} -E \
|
|
-e 's,enum([ \.]),enumeration\1,g'
|
|
|
|
post-build:
|
|
cd ${WRKSRC} && ${JAR} cvf ${PORTNAME}-${VENDOR_VERSION}.jar \
|
|
`${FIND} jode -name \*.class`
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${VENDOR_VERSION}.jar \
|
|
${STAGEDIR}/${JAVAJARDIR}/
|
|
${INSTALL_SCRIPT} ${WRKDIR}/jode ${STAGEDIR}/${PREFIX}/bin/
|
|
|
|
.include <bsd.port.mk>
|