blob: 4c0798c266685668ed5db768c4a78d029f2b7dc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include ${TOPDIR}/rules.mk
PKG_NAME:= jamvm
PKG_VERSION:= 1.5.4
PKG_RELEASE:= 3
PKG_MD5SUM:= 7654e9657691f5f09c4f481ed4686176
PKG_DESCR:= A Java Virtual Machine (JVM) implementation
PKG_SECTION:= lang
PKG_DEPENDS:= libffi zlib
PKG_BUILDDEP:= libffi zlib
PKG_URL:= http://jamvm.sourceforge.net
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=jamvm/}
PKG_ARCH_DEPENDS:= !m68k
include ${TOPDIR}/mk/host.mk
include ${TOPDIR}/mk/package.mk
$(eval $(call HOST_template,JAMVM,jamvm,${PKG_VERSION}-${PKG_RELEASE}))
$(eval $(call PKG_template,JAMVM,jamvm,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
HOST_STYLE:= auto
HOST_CONFIGURE_ARGS+= --with-classpath-install-dir=$(STAGING_HOST_DIR)/usr
BUILD_STYLE:= manual
INSTALL_STYLE:= manual
CONFIGURE_ARGS+= --enable-ffi
ifeq ($(ARCH),mips)
CONFIGURE_ARGS+= --disable-tls
endif
ifeq ($(ARCH),arm)
CONFIGURE_ARGS+= --disable-tls
endif
hostpost-install:
ln -sf ${STAGING_HOST_DIR}/usr/bin/jamvm ${STAGING_HOST_DIR}/usr/lib/jvm/bin/java
ln -sf ${STAGING_HOST_DIR}/usr/bin/jamvm ${STAGING_HOST_DIR}/usr/lib/jvm/jre/bin/java
do-build:
${INSTALL_DIR} ${WRKINST}/usr/bin
${INSTALL_DIR} ${WRKINST}/usr/share/jamvm
${MAKE} -C ${WRKBUILD}/src \
${TARGET_CONFIGURE_OPTS}
${CP} ${WRKBUILD}/src/jamvm ${WRKINST}/usr/bin
${MAKE} -C ${WRKBUILD}/lib
${CP} ${WRKBUILD}/lib/classes.zip ${WRKINST}/usr/share/jamvm
do-install:
${INSTALL_DIR} ${IDIR_JAMVM}/usr/bin
${INSTALL_DIR} ${IDIR_JAMVM}/usr/share/jamvm
${INSTALL_BIN} ${WRKINST}/usr/bin/jamvm ${IDIR_JAMVM}/usr/bin
${CP} ${WRKINST}/usr/share/jamvm/classes.zip \
${IDIR_JAMVM}/usr/share/jamvm
include ${TOPDIR}/mk/host-bottom.mk
include ${TOPDIR}/mk/pkg-bottom.mk
|