summaryrefslogtreecommitdiff
path: root/jtools/jamvm/Makefile
blob: defdbd713f2da2b9cd468706dd9d8bf8d919aed1 (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
# 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:=		1
PKG_MD5SUM:=		63220327925ace13756ae334c55a3baa
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=jamvm/}

ifeq (Darwin,${OStype})
CC_FOR_BUILD:=${CC_FOR_BUILD} -m32
CXX_FOR_BUILD:=${CXX_FOR_BUILD} -m32
endif

include ../rules.mk

install: ${STAGING_JAVA_HOST_DIR}/usr/bin/jamvm

$(WRKBUILD)/.configured: ${WRKDIST}/.prepared
	cd $(WRKBUILD); env \
               CC='${CC_FOR_BUILD}' \
               CXX='${CXX_FOR_BUILD}' \
           ./configure \
               --prefix=/usr \
               --with-classpath-install-dir=$(STAGING_JAVA_HOST_DIR)/usr
	touch $@

$(WRKBUILD)/.compiled: ${WRKDIST}/.configured
	${MAKE} -C ${WRKBUILD} $(MAKE_TRACE)
	touch $@

${STAGING_JAVA_HOST_DIR}/usr/bin/jamvm: $(WRKBUILD)/.compiled
	${MAKE} -C ${WRKBUILD} DESTDIR=$(STAGING_JAVA_HOST_DIR) install $(MAKE_TRACE)
	$(CP) ${STAGING_JAVA_HOST_DIR}/usr/bin/jamvm ${STAGING_JAVA_HOST_DIR}/usr/lib/jvm/bin/java
	$(CP) ${STAGING_JAVA_HOST_DIR}/usr/bin/jamvm ${STAGING_JAVA_HOST_DIR}/usr/lib/jvm/jre/bin/java

include $(TOPDIR)/mk/tools.mk