diff options
author | glewis <glewis@FreeBSD.org> | 2012-04-13 12:01:24 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2012-04-13 12:01:24 +0800 |
commit | eaf2ed647f2926e103c1568a09192eb7fa44ff83 (patch) | |
tree | b72476c6d81158dd7e138ae02fd724f15a13abb5 /java | |
parent | 90d2619ebf7014d16b2ea56691df1b7af32e4cc0 (diff) | |
download | freebsd-ports-gnome-eaf2ed647f2926e103c1568a09192eb7fa44ff83.tar.gz freebsd-ports-gnome-eaf2ed647f2926e103c1568a09192eb7fa44ff83.tar.zst freebsd-ports-gnome-eaf2ed647f2926e103c1568a09192eb7fa44ff83.zip |
. Use the new java-zoneinfo port to provide updated time zone info.
Diffstat (limited to 'java')
-rw-r--r-- | java/openjdk6/Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/java/openjdk6/Makefile b/java/openjdk6/Makefile index ce9ca6e2dc69..50f9152fd9e4 100644 --- a/java/openjdk6/Makefile +++ b/java/openjdk6/Makefile @@ -7,7 +7,7 @@ PORTNAME= openjdk6 PORTVERSION= b24 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= java devel MASTER_SITES= http://download.java.net/openjdk/jdk6/promoted/${PORTVERSION}/ \ http://download.java.net/jaxp/openjdk/jdk6/:jaxp \ @@ -47,7 +47,8 @@ OPTIONS= DEBUG "Enable legacy debugging support" off \ IPV6 "Enable IPv6 support" off \ POLICY "Install the Unlimited Strength Policy Files" off \ SOUND "Enable sound support" off \ - TEST "Add support for running regression test" off + TEST "Add support for running regression test" off \ + TZUPDATE "Update the time zone data" on # java extracts directly to the cwd WRKSRC= ${WRKDIR} @@ -82,6 +83,10 @@ EXTRACT_BEFORE_ARGS= CATEGORIES+= ipv6 .endif +.if defined(WITH_TZUPDATE) +RUN_DEPENDS+= ${LOCALBASE}/share/java/zi:${PORTSDIR}/java/java-zoneinfo +.endif + # avoid ARCH in MAKEFLAGS, breaks build NOPRECIOUSMAKEVARS= yes @@ -238,8 +243,14 @@ post-patch: ${WRKSRC}/jdk/make/javax/crypto/Makefile .endif -.if defined(WITH_TEST) post-build: +.if defined(WITH_TZUPDATE) + @# Update time zones + @${RM} -rf ${WRKSRC}/build/${OPENJDK_OSARCH}/j2sdk-image/jre/lib/zi + @${LN} -s -f ${LOCALBASE}/share/java/zi \ + ${WRKSRC}/build/${OPENJDK_OSARCH}/j2sdk-image/jre/lib +.endif +.if defined(WITH_TEST) @${ECHO_MSG} "" @${ECHO_MSG} "Run \"make test\" to execute regression test (it could take a few hours to complete)." .if defined(DISPLAY) |