pkgsrc-wip/jamaica/Makefile
pancake ;) 381f0dd0e9 initial import of jamaica ;)
in conjuntion with java-asm and java-bcel...let-c if we prepare a better
java support for pkgsrc! :)


Jamaica, the JVM Macro Assembler, is an easy-to-learn and easy-to-use
assembly language for JVM bytecode programming. It uses Java syntax to
define a JVM class except for the method body that takes bytecode
instructions, including Jamaica's built-in macros. In Jamaica, bytecode
instructions use mnemonics and symbolic names for all variables, parameters,
data fields, constants and labels. Jamaica is a simplified JVM assembly
language. It does not support inner classes. Variables are all method-wide
and are strongly-typed.
2004-05-10 19:36:41 +00:00

34 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2004/05/10 19:36:41 poppnk Exp $
#
DISTNAME= jamaica-1.0
WRKSRC= ${WRKDIR}/
CATEGORIES= wip lang
MASTER_SITES= http://www.judoscript.com/store/
EXTRACT_SUFX= .zip
MAINTAINER= pancake@phreaker.net
HOMEPAGE= http://www.judoscript.com/articles/jamaica.html
COMMENT= JVM Macro Assembler language
DEPENDS+= java-bcel>=5.1:../../wip/java-bcel
DEPENDS+= java-asm>=1.4.2:../../wip/java-asm
USE_BUILDLINK3= yes
do-build:
do-install:
${INSTALL_DATA} ${WRKSRC}/jamaica.jar ${PREFIX}/lib/java/
${ECHO} export CLASSPATH=${PREFIX}/lib/java/bcel.jar:\$$CLASSPATH > \
${PREFIX}/bin/jamaica
${ECHO} export CLASSPATH=${PREFIX}/lib/java/asm/asm.jar:\$$CLASSPATH >> \
${PREFIX}/bin/jamaica
${ECHO} java -jar ${PREFIX}/lib/java/jamaica.jar \$$@ >> ${PREFIX}/bin/jamaica
${CHMOD} +x ${PREFIX}/bin/jamaica
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/jamaica/
${INSTALL_DATA} ${WRKSRC}/test/* \
${PREFIX}/share/examples/jamaica/
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"