openbsd-ports/java/asm/Makefile
jasper 44d22713da import asm 3.3.1
ASM is an all purpose Java bytecode manipulation and analysis framework.
It can be used to modify existing classes or dynamically generate
classes, directly in binary form. Provided common transformations and
analysis algorithms allow to easily assemble custom complex
transformations and code analysis tools.

ok aja@
2011-09-21 13:38:21 +00:00

40 lines
957 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2011/09/21 13:38:21 jasper Exp $
COMMENT= Java bytecode manipulation framework
V= 3.3.1
DISTNAME= asm-$V
CATEGORIES= java devel
HOMEPAGE= http://asm.ow2.org/
# BSD
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_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>