From fa75392bdaed6542aeb0059bdc4d95ff6a1ca235 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Thu, 8 Nov 2012 18:22:11 +0000 Subject: - Update to 1.3.1. - Tidy up dependencies, trim Makefile header, and clean up style. Feature safe: yes --- java/icedtea-web/Makefile | 69 +++++++++++++++++++++-------------------------- 1 file changed, 30 insertions(+), 39 deletions(-) (limited to 'java/icedtea-web/Makefile') diff --git a/java/icedtea-web/Makefile b/java/icedtea-web/Makefile index 3448dc3917f4..8bd88af1328f 100644 --- a/java/icedtea-web/Makefile +++ b/java/icedtea-web/Makefile @@ -1,13 +1,7 @@ -# New ports collection makefile for: icedtea-web -# Date created: July 11, 2011 -# Whom: Jung-uk Kim -# # $FreeBSD$ -# PORTNAME= icedtea-web -PORTVERSION= 1.3 -PORTREVISION= 1 +PORTVERSION= 1.3.1 CATEGORIES= java www MASTER_SITES= http://icedtea.wildebeest.org/download/source/ \ http://icedtea.classpath.org/download/source/ @@ -17,22 +11,22 @@ COMMENT= A free Java plug-in and Java Web Start for OpenJDK LICENSE= GPLv2 +BUILD_DEPENDS= ${LOCALBASE}/bin/zip:${PORTSDIR}/archivers/zip \ + ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash +RUN_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash + GNU_CONFIGURE= yes USE_GMAKE= yes USE_JAVA= yes JAVA_OS= native JAVA_VENDOR= openjdk JAVA_VERSION= 1.6+ +USE_PKGCONFIG= yes USE_PERL5_BUILD=yes USE_XORG= x11 +WANT_GNOME= yes -OPTIONS_DEFINE= PLUGIN RHINO TEST -OPTIONS_DEFAULT=PLUGIN -PLUGIN_DESC= Enable the browser plug-in -RHINO_DESC= Add support for Proxy Auto Config files -TEST_DESC= Add support for running regression test - -.include +EXTRACT_AFTER_ARGS= | ${SETENV} LC_ALL=en_US.UTF-8 ${TAR} -xf - MAN1= itweb-javaws.1 PLIST_FILES= bin/itweb-javaws bin/itweb-settings \ @@ -42,22 +36,24 @@ PLIST_FILES= bin/itweb-javaws bin/itweb-settings \ PORTDATA= about.jar about.jnlp netx.jar PORTDOCS= netx -BUILD_DEPENDS+= ${LOCALBASE}/bin/zip:${PORTSDIR}/archivers/zip -RUN_DEPENDS+= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash - -USE_PKGCONFIG= yes - -CONFIGURE_ARGS+=--with-ecj=no --with-jdk-home="${JAVA_HOME}" +CONFIGURE_ARGS= --with-ecj=no --with-jdk-home="${JAVA_HOME}" +SH= ${LOCALBASE}/bin/bash -EXTRACT_AFTER_ARGS= | ${SETENV} LC_ALL=en_US.UTF-8 ${TAR} -xf - +OPTIONS_DEFINE= PLUGIN RHINO TEST +OPTIONS_DEFAULT=PLUGIN +PLUGIN_DESC= Enable the browser plug-in +RHINO_DESC= Add support for Proxy Auto Config files +TEST_DESC= Add support for running regression test -.include +.include .if empty(PORT_OPTIONS:MDOCS) -CONFIGURE_ARGS+= --disable-docs +CONFIGURE_ARGS+=--disable-docs .endif .if ${PORT_OPTIONS:MPLUGIN} +USE_GECKO= libxul +USE_GNOME= glib20 gtk20 USE_WEBPLUGINS= native WEBPLUGINS_DIR= ${PREFIX}/lib WEBPLUGINS_FILES=IcedTeaPlugin.so @@ -66,10 +62,6 @@ PLIST_FILES+= lib/IcedTeaPlugin.so PORTDATA+= plugin.jar PORTDOCS+= plugin -BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/glib-2.0.pc:${PORTSDIR}/devel/glib20 \ - ${LOCALBASE}/libdata/pkgconfig/gtk+-2.0.pc:${PORTSDIR}/x11-toolkits/gtk20 \ - ${LOCALBASE}/libdata/pkgconfig/mozilla-plugin.pc:${PORTSDIR}/www/libxul19 - CONFIGURE_ARGS+=--with-gtk=2 .include "${PORTSDIR}/www/firefox/Makefile.webplugins" .else @@ -77,25 +69,21 @@ CONFIGURE_ARGS+=--disable-plugin .endif .if ${PORT_OPTIONS:MRHINO} -CONFIGURE_ARGS+=--with-rhino=${JAVASHAREDIR}/rhino/rhino.jar BUILD_DEPENDS+= ${JAVASHAREDIR}/rhino/rhino.jar:${PORTSDIR}/lang/rhino RUN_DEPENDS+= ${JAVASHAREDIR}/rhino/rhino.jar:${PORTSDIR}/lang/rhino +CONFIGURE_ARGS+=--with-rhino=${JAVASHAREDIR}/rhino/rhino.jar .else CONFIGURE_ARGS+=--with-rhino=no .endif .if ${PORT_OPTIONS:MTEST} +BUILD_DEPENDS+= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit CONFIGURE_ARGS+=--with-junit=${JAVALIBDIR}/junit.jar -BUILD_DEPENDS+= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit \ - ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash .else CONFIGURE_ARGS+=--with-junit=no .endif -post-patch: - ${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/javac.in - ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ - ${WRKSRC}/launcher/javaws.in +.include .if ${JAVA_PORT_VERSION} == "1.6.0" pre-extract: @@ -103,9 +91,14 @@ pre-extract: @${ECHO_MSG} "IMPORTANT: To build IcedTea-Web ${PORTVERSION}, you have to turn on 'ICEDTEA' option" @${ECHO_MSG} "for ${JAVA_PORT} (default). Otherwise, it will neither build nor work." @${ECHO_MSG} - @sleep 10 + @sleep 5 .endif +post-patch: + ${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/javac.in + ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ + ${WRKSRC}/launcher/javaws.in + .if ${PORT_OPTIONS:MTEST} post-build: @${ECHO_MSG} @@ -125,11 +118,9 @@ post-install: .if ${PORT_OPTIONS:MTEST} test: build - @${SED} -e 's|^SHELL = /bin/sh|SHELL = ${LOCALBASE}/bin/bash|' \ - ${WRKSRC}/Makefile > ${WRKSRC}/Makefile.test - @(cd ${WRKSRC}; ${GMAKE} -f Makefile.test check) + @(cd ${WRKSRC}; ${GMAKE} check) .if ${PORT_OPTIONS:MPLUGIN} - @(cd ${WRKSRC}; ${GMAKE} -f Makefile.test plugin-tests) + @(cd ${WRKSRC}; ${GMAKE} plugin-tests) .endif .endif -- cgit v1.2.3