summaryrefslogtreecommitdiff
path: root/jtools/openjdk7/Makefile
blob: 58db553fe3c459e6d9a21eb27e303603b8d54aa0 (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
# 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:=		icedtea
PKG_VERSION:=		2.3.12
PKG_RELEASE:=		1
PKG_MD5SUM:=		9b3afa162021e3fca6161ba8f9f7dc11
PKG_DESCR:=		OpenJDK 7 Java VM
PKG_SECTION:=		lang
PKG_URL:=		http://openjdk.org/
PKG_SITES:=		http://icedtea.classpath.org/download/source/

include ../rules.mk

OPENJDK_NATIVE_ENV+=	JAVACFLAGS="-cp ${STAGING_JAVA_HOST_DIR}/usr/share/java/libgcj-$(GCJ_VER).jar"
OPENJDK_NATIVE_ENV+=	DYLD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64
OPENJDK_NATIVE_ENV+=	LD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64
OPENJDK_NATIVE_ENV+=	ADK_ECJ=$(STAGING_JAVA_HOST_DIR)/usr/bin/ecj PATH=$$PATH:$(STAGING_JAVA_HOST_DIR)/usr/bin
OPENJDK_NATIVE_ENV+=	BOOTCLASSPATH="$(STAGING_JAVA_HOST_DIR)/usr/share/jamvm/classes.zip:$(STAGING_JAVA_HOST_DIR)/usr/share/classpath/glibj.zip"

install: ${STAGING_JAVA_HOST_DIR}/bootstrap-jdk/bin/java

CONFIGURE_ARGS+=\
		--enable-bootstrap \
		--enable-zero \
		--with-jdk-home=$(STAGING_JAVA_HOST_DIR)/usr/lib/jvm \
		--with-java=$(STAGING_JAVA_HOST_DIR)/usr/bin/java \
		--with-javac=$(STAGING_JAVA_HOST_DIR)/usr/bin/ecj \
		--with-ecj-jar=${STAGING_JAVA_HOST_DIR}/usr/share/java/ecj.jar \
		--without-hotspot-build \
                --disable-system-kerberos \
                --disable-system-jpeg \
                --disable-system-lcms \
                --disable-system-zlib \
                --disable-system-png \
                --disable-system-gif \
                --disable-system-gtk \
                --disable-system-gio \
                --disable-system-fontconfig \
                --disable-compile-against-syscalls \
		--without-rhino \
		--disable-docs

$(WRKDIST)/.configured: ${WRKDIST}/.prepared
	(cd ${WRKBUILD}; export ${OPENJDK_NATIVE_ENV}; ./configure ${CONFIGURE_ARGS})
	touch $@

$(WRKBUILD)/.compiled: ${WRKDIST}/.configured
	export ${OPENJDK_NATIVE_ENV}; $(MAKE) -C $(WRKBUILD) icedtea-boot
	touch $@

${STAGING_JAVA_HOST_DIR}/bootstrap-jdk/bin/java: $(WRKBUILD)/.compiled
	$(CP) $(WRKSRC)/openjdk.build-boot/j2sdk-image $(STAGING_JAVA_HOST_DIR)/bootstrap-jdk
	touch $@

include ${TOPDIR}/mk/pkg-bottom.mk