update to latest stable upstream
[openadk.git] / package / jamvm / Makefile
blobb258333648ee5c678d703c3b021bfdb64bb4016e
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= jamvm
7 PKG_VERSION:= 1.5.4
8 PKG_RELEASE:= 5
9 PKG_HASH:= 7865693698bc4322cabe1014a4b7ebdec1bc1daf45f1a4457b6e908a4446b124
10 PKG_DESCR:= java virtual machine implementation
11 PKG_SECTION:= dev/lang
12 PKG_DEPENDS:= libffi zlib
13 PKG_BUILDDEP:= libffi zlib
14 PKG_URL:= http://jamvm.sourceforge.net
15 PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=jamvm/}
17 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
19 PKG_ARCH_DEPENDS:= !m68k
21 include ${ADK_TOPDIR}/mk/host.mk
22 include ${ADK_TOPDIR}/mk/package.mk
24 $(eval $(call HOST_template,JAMVM,jamvm,${PKG_VERSION}-${PKG_RELEASE}))
25 $(eval $(call PKG_template,JAMVM,jamvm,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
27 HOST_CONFIGURE_ARGS+= --libdir=$(STAGING_HOST_DIR)/usr/lib/jamvm \
28 --includedir=$(STAGING_HOST_DIR)/usr/include/jamvm \
29 --with-classpath-install-dir=$(STAGING_HOST_DIR)/usr
30 BUILD_STYLE:= manual
31 INSTALL_STYLE:= manual
33 CONFIGURE_ARGS+= --enable-ffi
35 hostpost-install:
36 ln -sf ${STAGING_HOST_DIR}/usr/bin/jamvm ${STAGING_HOST_DIR}/usr/lib/jvm/bin/java
37 ln -sf ${STAGING_HOST_DIR}/usr/bin/jamvm ${STAGING_HOST_DIR}/usr/lib/jvm/jre/bin/java
39 do-build:
40 ${INSTALL_DIR} ${WRKINST}/usr/bin
41 ${INSTALL_DIR} ${WRKINST}/usr/share/jamvm
42 ${MAKE} -C ${WRKBUILD}/src \
43 ${TARGET_CONFIGURE_OPTS}
44 ${CP} ${WRKBUILD}/src/jamvm ${WRKINST}/usr/bin
45 ${MAKE} -C ${WRKBUILD}/lib
46 ${CP} ${WRKBUILD}/lib/classes.zip ${WRKINST}/usr/share/jamvm
48 do-install:
49 ${INSTALL_DIR} ${IDIR_JAMVM}/usr/bin
50 ${INSTALL_DIR} ${IDIR_JAMVM}/usr/share/jamvm
51 ${INSTALL_BIN} ${WRKINST}/usr/bin/jamvm ${IDIR_JAMVM}/usr/bin
52 ${CP} ${WRKINST}/usr/share/jamvm/classes.zip \
53 ${IDIR_JAMVM}/usr/share/jamvm
55 include ${ADK_TOPDIR}/mk/host-bottom.mk
56 include ${ADK_TOPDIR}/mk/pkg-bottom.mk