openbsd-ports/java/asm/Makefile
2013-03-11 11:10:51 +00:00

37 lines
874 B
Makefile

# $OpenBSD: Makefile,v 1.2 2013/03/11 11:12:34 espie Exp $
COMMENT= Java bytecode manipulation framework
V= 3.3.1
DISTNAME= asm-$V
CATEGORIES= java devel
HOMEPAGE= http://asm.ow2.org/
# BSD
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= http://download.forge.objectweb.org/asm/
MODULES= java
MODJAVA_VER= 1.6+
MODJAVA_BUILD= ant
MODJAVA_BUILD_TARGET=dist
JARS= asm asm-analysis asm-commons asm-tree asm-util asm-xml
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/ant dist
do-install:
${INSTALL_DATA_DIR} ${MODJAVA_JAR_DIR} ${MODJAVA_SHARE_DIR}/asm/
.for j in ${JARS}
${INSTALL_DATA} ${WRKSRC}/output/dist/lib/$j-$V.jar \
${MODJAVA_JAR_DIR}/$j.jar
.endfor
${INSTALL_DATA} ${WRKSRC}/output/dist/lib/all/asm-all-$V.jar \
${MODJAVA_JAR_DIR}/asm-all.jar
cp -r ${WRKSRC}/output/dist/{doc,examples}/ ${MODJAVA_SHARE_DIR}/asm/
.include <bsd.port.mk>