2010-02-03 00:12:53 +01:00
|
|
|
# $NetBSD: icedtea-extras.mk,v 1.6 2010/02/02 23:12:53 jmcneill Exp $
|
2009-10-14 13:26:15 +02:00
|
|
|
|
|
|
|
# Needed to extract icedtea
|
2009-12-15 16:16:15 +01:00
|
|
|
EXTRACT_USING= bsdtar
|
2009-10-14 13:26:15 +02:00
|
|
|
|
|
|
|
DIST_SUBDIR= openjdk7
|
|
|
|
|
2010-01-15 20:18:42 +01:00
|
|
|
ICEDTEA= icedtea-aaf3cf416fb4
|
|
|
|
ICEDTEA_TGZ= aaf3cf416fb4.tar.bz2
|
2009-10-14 13:26:15 +02:00
|
|
|
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
|
2010-02-03 00:12:53 +01:00
|
|
|
SITES.${ANT_TGZ}= http://archive.apache.org/dist/ant/binaries/
|
2009-10-14 13:26:15 +02:00
|
|
|
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
|
2009-11-07 15:48:49 +01:00
|
|
|
BUILD_DEPENDS+= zip-[0-9]*:../../archivers/zip
|
2009-10-14 13:26:15 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_path_MD5SUM=/usr/bin/true
|
2010-01-15 20:18:42 +01:00
|
|
|
CONFIGURE_ENV+= ac_cv_path_SHA256SUM=/usr/bin/true
|
2009-10-14 18:50:29 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_path_WGET=/usr/bin/true
|
2009-10-14 13:26:15 +02:00
|
|
|
|
|
|
|
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
|