summaryrefslogtreecommitdiff
path: root/lang/openjdk7/icedtea-extras.mk
blob: 4dce92d5a59f82fb131979da37cc767c92aa52a4 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# $NetBSD: icedtea-extras.mk,v 1.6 2010/02/02 23:12:53 jmcneill Exp $

# Needed to extract icedtea
EXTRACT_USING=			bsdtar

DIST_SUBDIR=			openjdk7

ICEDTEA=			icedtea-aaf3cf416fb4
ICEDTEA_TGZ=			aaf3cf416fb4.tar.bz2
SITES.${ICEDTEA_TGZ}=		http://icedtea.classpath.org/hg/icedtea/archive/
DISTFILES+=			${ICEDTEA_TGZ}
EXTRACT_ONLY+=			${ICEDTEA_TGZ}

XALAN=				xalan-j_2_7_1
XALAN_TGZ=			${XALAN}-bin.zip
SITES.${XALAN_TGZ}=		${MASTER_SITE_APACHE:=xml/xalan-j/}
DISTFILES+=			${XALAN_TGZ}
EXTRACT_ONLY+=			${XALAN_TGZ}

RHINO=				rhino1_7R2
RHINO_TGZ=			${RHINO}.zip
SITES.${RHINO_TGZ}=		${MASTER_SITE_MOZILLA:=js/}
DISTFILES+=			${RHINO_TGZ}
EXTRACT_ONLY+=			${RHINO_TGZ}

# fixme: Should depend on devel/apache-ant?
ANT=				apache-ant-1.7.1
ANT_TGZ=			${ANT}-bin.zip
SITES.${ANT_TGZ}=		http://archive.apache.org/dist/ant/binaries/
DISTFILES+=			${ANT_TGZ}
EXTRACT_ONLY+=			${ANT_TGZ}
ANT_BIN=			${WRKDIR}/${ANT}/bin
PREPEND_PATH+=			${ANT_BIN}

ICEDTEA_CONFIGURE_ARGS=	\
	  --with-xalan2-jar=${WRKDIR}/${XALAN}/xalan.jar \
	  --with-xalan2-serializer-jar=${WRKDIR}/${XALAN}/serializer.jar \
	  --with-xerces2-jar=${WRKDIR}/${XALAN}/xercesImpl.jar \
	  --with-rhino=${WRKDIR}/${RHINO}/js.jar

.if defined(ICEDTEA_PACKAGE)
CONFIGURE_ARGS+=	${ICEDTEA_CONFIGURE_ARGS}
CONFIGURE_ARGS+=	--with-jdk-home=${PREFIX}/java/openjdk7

USE_LANGUAGES=		c c++
USE_TOOLS+=	gawk pkg-config autoconf automake
BUILD_DEPENDS+=	zip-[0-9]*:../../archivers/zip
CONFIGURE_ENV+=	ac_cv_path_MD5SUM=/usr/bin/true
CONFIGURE_ENV+=	ac_cv_path_SHA256SUM=/usr/bin/true
CONFIGURE_ENV+=	ac_cv_path_WGET=/usr/bin/true

pre-configure: icedtea-autoconf
.PHONY: icedtea-autoconf
icedtea-autoconf:
	cd ${WRKDIR}/${ICEDTEA} && ${SETENV} ${CONFIGURE_ENV} autoreconf -if

post-extract: icedtea-post-extract
.PHONY: icedtea-post-extract
icedtea-post-extract:
	chmod +x ${ANT_BIN}/ant

BUILDLINK_DEPMETHOD.cups?=     build
.include "../../print/cups/buildlink3.mk"
.include "../../lang/openjdk7/buildlink3.mk"
.include "../../devel/xulrunner/buildlink3.mk"
.include "../../graphics/libungif/buildlink3.mk"
BUILDLINK_DEPMETHOD.libXp?=	build
.include "../../x11/libXp/buildlink3.mk"
BUILDLINK_DEPMETHOD.libXt?=	build
.include "../../x11/libXt/buildlink3.mk"
BUILDLINK_DEPMETHOD.libXtst?=	build
.include "../../x11/libXtst/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.endif