summaryrefslogtreecommitdiff
path: root/jtools/classpath/Makefile
blob: 06f59e1a075d8f53bbe997f8d9213321bcfe1813 (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
# 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:=		classpath
PKG_VERSION:=		0.98
PKG_RELEASE:=		1
PKG_MD5SUM:=		90c6571b8b0309e372faa0f9f6255ea9
PKG_SITES:=		${MASTER_SITE_GNU:=classpath/}

include ../rules.mk

install: ${STAGING_JAVA_HOST_DIR}/usr/share/classpath/glibj.zip

CPENV:=	LD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64 \
	PATH=${STAGING_JAVA_HOST_DIR}/usr/bin:$$PATH \
	CLASSPATH=${STAGING_JAVA_HOST_DIR}/usr/share/java/libgcj-$(GCJ_VER).jar

$(WRKBUILD)/.configured: ${WRKDIST}/.prepared
	(cd $(WRKBUILD); env $(CPENV) ./configure --prefix=${STAGING_JAVA_HOST_DIR}/usr \
		--disable-local-sockets \
		--disable-alsa \
		--disable-gconf-peer \
		--disable-gtk-peer \
		--disable-qt-peer \
		--disable-dssi \
		--disable-plugin \
		--disable-examples \
		--disable-gjdoc \
		--with-jar=no \
		--disable-Werror)
	touch $@

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

${STAGING_JAVA_HOST_DIR}/usr/share/classpath/glibj.zip: $(WRKBUILD)/.compiled
	${MAKE} -C ${WRKBUILD} install

include $(TOPDIR)/mk/tools.mk