2007-08-05 22:39:49 +02:00
# New ports collection makefile for: jdk16
# Date created: 17 June 2007
# Whom: Greg Lewis <glewis@FreeBSD.org>
2000-10-13 14:41:25 +02:00
#
# $FreeBSD$
#
PORTNAME = jdk
2007-06-09 07:14:56 +02:00
PORTVERSION = ${ JDK_VERSION } .${ JDK_UPDATE_VERSION } p${ JDK_PATCHSET_VERSION }
2010-09-21 08:20:54 +02:00
PORTREVISION = 18
2000-10-13 14:41:25 +02:00
CATEGORIES = java devel
2007-08-06 22:46:43 +02:00
MASTER_SITES = # http://download.java.net/jdk6/
2007-08-05 22:39:49 +02:00
# http://www.eyesbeyond.com/freebsddom/java/jdk16.html
2006-07-19 00:50:37 +02:00
# http://java.sun.com/javase/downloads/index.jsp
2007-08-05 22:39:49 +02:00
DISTFILES = ${ JRL_SRCFILE } ${ JRL_BINFILE } ${ JRL_MOZFILE } ${ PATCHSETFILE }
EXTRACT_ONLY = ${ JRL_SRCFILE } ${ JRL_BINFILE } ${ JRL_MOZFILE }
2000-10-13 14:41:25 +02:00
2006-03-31 10:47:17 +02:00
MAINTAINER = glewis@FreeBSD.org
2007-08-05 22:39:49 +02:00
COMMENT = Java Development Kit 1.6.0
2000-10-13 14:41:25 +02:00
2007-08-06 19:23:31 +02:00
BUILD_DEPENDS = zip:${ PORTSDIR } /archivers/zip \
2007-08-18 08:56:25 +02:00
unzip:${ PORTSDIR } /archivers/unzip \
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
${ LOCALBASE } /lib/libXm.so:${ PORTSDIR } /x11-toolkits/open-motif \
2009-07-07 06:11:05 +02:00
${ LOCALBASE } /include/cups/cups.h:${ PORTSDIR } /print/cups-client
2004-01-28 15:00:27 +01:00
RUN_DEPENDS = javavm:${ PORTSDIR } /java/javavmwrapper
2005-01-20 09:41:13 +01:00
2006-08-01 20:30:37 +02:00
OPTIONS = DEBUG "Enable debugging support" off \
2007-10-28 21:47:42 +01:00
IPV6 "Enable IPv6 support" off \
WEB "Enable the browser plugin and Java Web Start" on \
POLICY "Install the Unlimited Strength Policy Files" off \
2007-02-26 01:22:20 +01:00
TZUPDATE "Update the time zone data" on \
2006-08-01 20:30:37 +02:00
JAIL "Port is being built within a jail" off
2005-09-20 22:00:08 +02:00
2006-07-19 00:50:37 +02:00
WANT_GNOME = yes
2005-01-20 09:41:13 +01:00
PKGINSTALL = ${ WRKDIR } /pkg-install
2005-11-23 11:12:33 +01:00
PKGDEINSTALL = ${ WRKDIR } /pkg-deinstall
SUB_FILES += pkg-install \
pkg-deinstall
SUB_LIST += JRE_HOME = ${ PREFIX } /jdk${ JDK_VERSION } /jre \
ARCH = ${ MACHINE_ARCH }
2000-10-13 14:41:25 +02:00
2003-03-07 00:18:24 +01:00
WRKSRC = ${ WRKDIR } /control/make
2000-10-13 14:41:25 +02:00
2006-07-19 00:50:37 +02:00
USE_ZIP = YES
2010-09-26 20:40:45 +02:00
MAKE_JOBS_UNSAFE = yes
2006-07-19 00:50:37 +02:00
2007-08-05 22:39:49 +02:00
JRL_SRCFILE = jdk-${ JDK_MAJOR_VERSION } u${ JDK_UPDATE_VERSION } -fcs-src-b${ JDK_BUILD_NUMBER } -jrl-${ JDK_BUILD_DATE } .jar
JRL_BINFILE = jdk-${ JDK_MAJOR_VERSION } u${ JDK_UPDATE_VERSION } -fcs-bin-b${ JDK_BUILD_NUMBER } -jrl-${ JDK_BUILD_DATE } .jar
2007-11-16 06:30:17 +01:00
JRL_MOZFILE = jdk-${ JDK_MAJOR_VERSION } u${ JDK_UPDATE_VERSION } -fcs-mozilla_headers-b${ JDK_BUILD_NUMBER } -unix-${ JDK_BUILD_DATE } .jar
2007-08-05 22:39:49 +02:00
PATCHSETFILE = bsd-jdk16-patches-${ JDK_PATCHSET_VERSION } .tar.bz2
POLICYFILE = jce_policy-${ JDK_MAJOR_VERSION } .zip
2008-01-12 23:43:42 +01:00
TZUPDATEFILE = tzupdater-${ TZUPDATE_VERSION } -${ TZUPDATE_TZVERSION } .zip
2006-07-19 00:50:37 +02:00
2007-08-05 22:39:49 +02:00
JDK_VERSION = 1.6.0
JDK_MAJOR_VERSION = 6
2007-11-16 06:30:17 +01:00
JDK_UPDATE_VERSION = 3
2008-02-17 00:48:24 +01:00
JDK_PATCHSET_VERSION = 4
2007-10-28 21:47:42 +01:00
JDK_BUILD_NUMBER = 05
2007-11-16 06:30:17 +01:00
JDK_BUILD_DATE = 24_sep_2007
2007-08-05 22:39:49 +02:00
LATEST_LINK = jdk16
2000-10-13 14:41:25 +02:00
2010-09-21 08:20:54 +02:00
TZUPDATE_VERSION = 1_3_31
TZUPDATE_TZVERSION = 2010i
2007-02-24 16:38:12 +01:00
2008-08-25 05:25:31 +02:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2010-10-01 08:08:33 +02:00
BOOTSTRAP_JDKS = ${ LOCALBASE } /diablo-jdk1.6.0 \
${ LOCALBASE } /jdk1.6.0 \
${ LOCALBASE } /openjdk6
2003-11-11 17:16:20 +01:00
2006-12-11 18:10:52 +01:00
. i f d e f i n e d ( W I T H _ I P V 6 )
CATEGORIES += ipv6
. e n d i f
2006-07-19 00:50:37 +02:00
. i f d e f i n e d ( W I T H _ P O L I C Y )
DISTFILES += ${ POLICYFILE }
EXTRACT_ONLY += ${ POLICYFILE }
. e n d i f
2007-02-24 16:38:12 +01:00
. i f d e f i n e d ( W I T H _ T Z U P D A T E )
DISTFILES += ${ TZUPDATEFILE }
EXTRACT_ONLY += ${ TZUPDATEFILE }
. e n d i f
2010-10-01 08:08:33 +02:00
# do we have valid bootstrap jdk installed?
. f o r C J D K i n $ { B O O T S T R A P _ J D K S }
2007-06-09 07:14:56 +02:00
. i f ! d e f i n e d ( B O O T S T R A P J D K D I R ) & & e x i s t s ( $ { C J D K } / b i n / j a v a c )
BOOTSTRAPJDKDIR = ${ CJDK }
2003-11-11 17:16:20 +01:00
. e n d i f
. e n d f o r
2003-11-12 13:38:03 +01:00
# if no valid jdk found, set dependency
2007-06-09 07:14:56 +02:00
. i f ! d e f i n e d ( B O O T S T R A P J D K D I R )
2008-08-25 05:25:31 +02:00
BOOTSTRAPJDKDIR ?= ${ LOCALBASE } /diablo-jdk1.6.0
BUILD_DEPENDS += ${ BOOTSTRAPJDKDIR } /bin/javac:${ PORTSDIR } /java/diablo-jdk16
2002-05-03 07:36:11 +02:00
. e n d i f
2000-10-13 14:41:25 +02:00
2007-08-23 16:54:54 +02:00
. i f ! d e f i n e d ( W I T H O U T _ W E B )
2006-07-19 00:50:37 +02:00
USE_GNOME = desktopfileutils
. e n d i f
2003-03-07 00:18:24 +01:00
2005-01-20 09:41:13 +01:00
ONLY_FOR_ARCHS = i386 amd64
2003-03-07 00:18:24 +01:00
USE_GMAKE = YES
2006-01-29 22:24:59 +01:00
USE_ICONV = YES
2007-10-21 16:57:14 +02:00
USE_XORG += x11 xext xi xtst
2008-08-25 05:25:31 +02:00
RESTRICTED = Redistribution of pre-compiled binaries is not permitted
NO_CDROM = Redistribution of pre-compiled binaries is not permitted
2005-01-20 09:41:13 +01:00
2007-06-09 07:14:56 +02:00
MAKE_ENV += ALT_BOOTDIR = " ${ BOOTSTRAPJDKDIR } " \
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
ALT_MOTIF_DIR = " ${ LOCALBASE } " \
2007-08-05 22:39:49 +02:00
ALT_DEVTOOLS_PATH = " ${ LOCALBASE } " \
2007-08-10 00:54:34 +02:00
LANG = "C" \
2007-09-08 22:02:32 +02:00
LC_ALL = "C" \
2003-03-07 00:18:24 +01:00
JAVA_HOME = "" \
2000-11-03 17:06:41 +01:00
CLASSPATH = "" \
2004-08-18 09:06:03 +02:00
LD_LIBRARY_PATH = "" \
2005-01-20 09:41:13 +01:00
MAKEFLAGS = "" \
2007-08-06 19:23:31 +02:00
SKIP_COMPARE_IMAGES = "true" \
SKIP_FASTDEBUG_BUILD = "true" \
2007-08-05 22:39:49 +02:00
PTHREAD_LIBS = " ${ PTHREAD_LIBS } "
2007-08-06 19:23:31 +02:00
. i f d e f i n e d ( W I T H _ D E B U G )
MAKE_ENV += SKIP_DEBUG_BUILD = "false"
. e n d i f
2004-01-28 15:00:27 +01:00
. i f ! d e f i n e d ( W I T H _ I P V 6 )
2005-01-20 09:41:13 +01:00
MAKE_ENV += DONT_ENABLE_IPV6 = "YES"
2004-01-28 15:00:27 +01:00
. e n d i f
2007-08-06 19:23:31 +02:00
2010-09-26 20:40:45 +02:00
. i f ! d e f i n e d ( D I S A B L E _ M A K E _ J O B S )
. i f d e f i n e d ( M A K E _ J O B S _ N U M B E R )
BUILD_JOBS_NUMBER = ${ MAKE_JOBS_NUMBER }
. e l s e
BUILD_JOBS_NUMBER = ` ${ SYSCTL } -n kern.smp.cpus`
2007-08-06 19:23:31 +02:00
. e n d i f
2010-09-26 20:40:45 +02:00
MAKE_ENV += HOTSPOT_BUILD_JOBS = ${ BUILD_JOBS_NUMBER }
2006-02-02 17:27:44 +01:00
. e n d i f
2004-01-28 15:00:27 +01:00
2005-01-20 09:41:13 +01:00
ALL_TARGET = all
2004-01-28 15:00:27 +01:00
2005-03-30 18:51:59 +02:00
PLIST_FILES = jdk${ JDK_VERSION } /jre/.systemPrefs/.system.lock \
2007-08-23 16:54:54 +02:00
jdk${ JDK_VERSION } /jre/.systemPrefs/.systemRootModFile
2006-01-29 22:24:59 +01:00
. i f ! d e f i n e d ( W I T H O U T _ W E B )
2007-08-23 16:54:54 +02:00
PLIST_FILES += share/applications/sun-java16.desktop \
share/applications/sun-javaws16.desktop \
share/applications/sun-jcontrol16.desktop
2006-01-29 22:24:59 +01:00
. e n d i f
2005-03-30 18:51:59 +02:00
PLIST_DIRS = jdk${ JDK_VERSION } /jre/.systemPrefs
2005-01-20 09:41:13 +01:00
. i f (${ARCH} = = amd64)
HOTSPOTARCH = amd64
2003-11-11 17:16:20 +01:00
. e l s e
2005-01-20 09:41:13 +01:00
HOTSPOTARCH = i586
2000-10-13 14:41:25 +02:00
. e n d i f
2005-01-20 09:41:13 +01:00
JDKIMAGEDIR = ${ WRKSRC } /../build/bsd-${ HOTSPOTARCH } /j2sdk-image
JDKIMAGEDIR_G = ${ WRKSRC } /../build/bsd-${ HOTSPOTARCH } /j2sdk-debug-image
2007-08-05 22:39:49 +02:00
LOCAL_FILES = ../../hotspot/make/jprt.config \
2007-08-06 19:23:31 +02:00
../../hotspot/src/os/bsd/vm/os_bsd.cpp \
2006-12-11 18:10:52 +01:00
../../j2se/src/share/classes/com/sun/java/swing/plaf/gtk/Metacity.java \
2007-08-05 22:39:49 +02:00
../../j2se/src/share/classes/sun/net/www/MimeTable.java \
../../j2se/src/share/classes/sun/net/www/protocol/doc/DocURLConnection.java \
../../j2se/src/share/classes/sun/net/www/protocol/doc/Handler.java \
../../j2se/src/solaris/bin/java-rmi.cgi.sh \
../../j2se/src/solaris/bin/java_md.c \
../../j2se/src/solaris/classes/sun/security/smartcardio/PlatformPCSC.java
2007-08-06 19:23:31 +02:00
2007-08-05 22:39:49 +02:00
X11_FILES = ../../j2se/src/share/classes/com/sun/java/swing/plaf/gtk/Metacity.java \
2006-12-11 18:10:52 +01:00
../../j2se/src/solaris/native/sun/awt/fontpath.c
2004-01-28 15:00:27 +01:00
2007-08-06 19:23:31 +02:00
DESKTOP_FILES = ../../deploy/src/desktop/freedesktop/applications/sun-java.desktop \
../../deploy/src/desktop/freedesktop/applications/sun-javaws.desktop \
../../deploy/src/plugin/solaris/controlpanel/sun_java.desktop
2005-12-14 17:52:32 +01:00
# Check for JDK sources and patch file
2007-08-05 22:39:49 +02:00
. i f ! d e f i n e d ( P A C K A G E _ B U I L D I N G ) & & ( ! e x i s t s ( $ { D I S T D I R } / $ { J R L _ S R C F I L E } ) | | ! e x i s t s ( $ { D I S T D I R } / $ { J R L _ B I N F I L E } ) | | ! e x i s t s ( $ { D I S T D I R } / $ { J R L _ M O Z F I L E } ) | | ( d e f i n e d ( W I T H _ P O L I C Y ) & & ! e x i s t s ( $ { D I S T D I R } / $ { P O L I C Y F I L E } ) ) | | ( d e f i n e d ( W I T H _ T Z U P D A T E ) & & ! e x i s t s ( $ { D I S T D I R } / $ { T Z U P D A T E F I L E } ) ) | | ! e x i s t s ( $ { D I S T D I R } / $ { P A T C H S E T F I L E } ) ) #{
2008-08-25 05:25:31 +02:00
DISTFILE_INSTRUCTIONS = \n \
2005-12-14 17:52:32 +01:00
D u e t o l i c e n s i n g r e s t r i c t i o n s , c e r t a i n f i l e s m u s t b e f e t c h e d m a n u a l l y . \ n \ n
2007-08-05 22:39:49 +02:00
. i f ! e x i s t s ( $ { D I S T D I R } / $ { J R L _ S R C F I L E } ) | | ! e x i s t s ( $ { D I S T D I R } / $ { J R L _ B I N F I L E } ) | | ! e x i s t s ( $ { D I S T D I R } / $ { J R L _ M O Z F I L E } ) #{
2009-01-01 20:38:49 +01:00
DISTFILE_INSTRUCTIONS += Please download the
2007-06-09 07:14:56 +02:00
. i f ! e x i s t s ( $ { D I S T D I R } / $ { J R L _ S R C F I L E } ) #{
2009-01-01 20:38:49 +01:00
DISTFILE_INSTRUCTIONS += Update ${ JDK_UPDATE_VERSION } Source from\n \
http://www.java.net/download/jdk6/6u${ JDK_UPDATE_VERSION } /promoted/b${ JDK_BUILD_NUMBER } /${ JRL_SRCFILE } \n
2005-12-14 17:52:32 +01:00
. e n d i f #}
2007-06-09 07:14:56 +02:00
. i f ! e x i s t s ( $ { D I S T D I R } / $ { J R L _ B I N F I L E } ) #{
. i f ! e x i s t s ( $ { D I S T D I R } / $ { J R L _ S R C F I L E } ) #{
2009-01-01 20:38:49 +01:00
DISTFILE_INSTRUCTIONS += and the
2005-12-14 17:52:32 +01:00
. e n d i f #}
2009-01-01 20:38:49 +01:00
DISTFILE_INSTRUCTIONS += Source Binaries from\n \
http://www.java.net/download/jdk6/6u${ JDK_UPDATE_VERSION } /promoted/b${ JDK_BUILD_NUMBER } /${ JRL_BINFILE } \n
2005-12-14 17:52:32 +01:00
. e n d i f #}
2007-08-05 22:39:49 +02:00
. i f ! e x i s t s ( $ { D I S T D I R } / $ { J R L _ M O Z F I L E } ) #{
. i f ! e x i s t s ( $ { D I S T D I R } / $ { J R L _ S R C F I L E } ) | | ! e x i s t s ( $ { D I S T D I R } / $ { J R L _ B I N F I L E } ) #{
2009-01-01 20:38:49 +01:00
DISTFILE_INSTRUCTIONS += and the
2007-08-05 22:39:49 +02:00
. e n d i f #}
2009-01-01 20:38:49 +01:00
DISTFILE_INSTRUCTIONS += Mozilla Headers from\n \
http://www.java.net/download/jdk6/6u${ JDK_UPDATE_VERSION } /promoted/b${ JDK_BUILD_NUMBER } /${ JRL_MOZFILE } \n
2007-08-05 22:39:49 +02:00
. e n d i f #}
2008-08-25 05:25:31 +02:00
DISTFILE_INSTRUCTIONS += .\n \n
2005-12-14 17:52:32 +01:00
. e n d i f #}
2006-07-19 00:50:37 +02:00
. i f d e f i n e d ( W I T H _ P O L I C Y ) & & ! e x i s t s ( $ { D I S T D I R } / $ { P O L I C Y F I L E } ) #{
2008-08-25 05:25:31 +02:00
DISTFILE_INSTRUCTIONS += Please open http://java.sun.com/javase/downloads/index.jsp\n \
2006-07-19 00:50:37 +02:00
i n a w e b b r o w s e r a n d f o l l o w t h e \ " D o w n l o a d \ " l i n k f o r \ n \
2007-08-05 22:39:49 +02:00
\ " O t h e r D o w n l o a d s \ " t o o b t a i n t h e J C E p o l i c y f i l e , $ { P O L I C Y F I L E } . \ n \ n
2006-07-19 00:50:37 +02:00
. e n d i f #}
2007-02-24 16:38:12 +01:00
. i f d e f i n e d ( W I T H _ T Z U P D A T E ) & & ! e x i s t s ( $ { D I S T D I R } / $ { T Z U P D A T E F I L E } ) #{
2008-08-25 05:25:31 +02:00
DISTFILE_INSTRUCTIONS += Please open http://java.sun.com/javase/downloads/index.jsp\n \
2007-02-24 16:38:12 +01:00
i n a w e b b r o w s e r a n d f o l l o w t h e \ " D o w n l o a d \ " l i n k f o r \ n \
\ " J D K U S D S T T i m e z o n e U p d a t e T o o l - $ { T Z U P D A T E _ V E R S I O N } \ " t o o b t a i n t h e \ n \
t i m e z o n e u p d a t e f i l e , $ { T Z U P D A T E F I L E } . \ n \ n
2006-07-19 00:50:37 +02:00
. e n d i f #}
2005-12-14 17:52:32 +01:00
. i f ! e x i s t s ( $ { D I S T D I R } / $ { P A T C H S E T F I L E } ) #{
2008-08-25 05:25:31 +02:00
DISTFILE_INSTRUCTIONS += Please download the patchset, ${ PATCHSETFILE } , from\n \
2007-08-05 22:39:49 +02:00
http : //www .eyesbeyond .com /freebsddom /java /jdk 16.html .\n \n
2005-12-14 17:52:32 +01:00
. e n d i f #}
2008-08-25 05:25:31 +02:00
DISTFILE_INSTRUCTIONS += Please place the downloaded file( s) in ${ DISTDIR }
DISTFILE_INSTRUCTIONS += \n and restart the build.\n \n
2005-12-14 17:52:32 +01:00
. e n d i f #}
2000-10-13 14:41:25 +02:00
2005-01-20 09:41:13 +01:00
pre-fetch :
2003-03-15 10:57:58 +01:00
@${ ECHO_MSG }
2007-08-05 22:39:49 +02:00
@${ ECHO_MSG } "IMPORTANT: To build the JDK 1.6.0 port, you should have at least"
@${ ECHO_MSG } "2.5Gb of free disk space in the build area!"
2003-03-13 12:24:42 +01:00
@${ ECHO_MSG }
2008-08-25 05:25:31 +02:00
. i f d e f i n e d ( D I S T F I L E _ I N S T R U C T I O N S )
@${ PRINTF } " ${ DISTFILE_INSTRUCTIONS } "
@exit 1
. e n d i f
2003-03-13 12:24:42 +01:00
2007-06-09 07:14:56 +02:00
# Get JRL agreement
. i f ! d e f i n e d ( P A C K A G E _ B U I L D I N G )
pre-extract :
2007-08-14 05:36:15 +02:00
${ SH } ${ FILESDIR } /license.sh
2007-06-09 07:14:56 +02:00
. e n d i f
# Extract the files
do-extract :
@${ RM } -rf ${ WRKDIR }
@${ MKDIR } ${ WRKDIR }
@${ CC } ${ CFLAGS } -o ${ WRKDIR } /x_x2zip ${ FILESDIR } /x_x2zip.c
@for file in ${ EXTRACT_ONLY } ; do \
if ! ( cd ${ WRKDIR } && ${ EXTRACT_CMD } ${ EXTRACT_BEFORE_ARGS } " ${ DISTDIR } / $$ file " ${ EXTRACT_AFTER_ARGS } ) ; \
then \
exit 1; \
fi ; \
if [ ` basename $$ file .jar` != $$ file ] ; \
then \
if ! ( cd ${ WRKDIR } && ${ WRKDIR } /x_x2zip 'YES I ACCEPT THE CLICK THROUGH LICENSE. ' X_X && ${ EXTRACT_CMD } ${ EXTRACT_BEFORE_ARGS } ${ WRKDIR } /X_X.zip ${ EXTRACT_AFTER_ARGS } ) ; \
then \
exit 1; \
fi ; \
fi \
done
2007-08-05 22:39:49 +02:00
post-extract :
@${ MV } ${ WRKDIR } /share/plugin ${ WRKDIR } /deploy/src/plugin/share/
@${ RMDIR } ${ WRKDIR } /share
2000-10-13 14:41:25 +02:00
pre-patch :
2001-10-16 14:43:07 +02:00
@cd ${ WRKDIR } && \
2005-01-20 09:41:13 +01:00
${ BZIP2_CMD } -dc ${ DISTDIR } /${ PATCHSETFILE } | ${ TAR } -xf - && \
2002-02-14 17:01:23 +01:00
${ CHMOD } -R u+w * && \
2007-08-05 22:39:49 +02:00
${ PATCH } -p0 < ${ WRKDIR } /jdk16.patches
2003-02-28 18:54:40 +01:00
2004-01-28 15:00:27 +01:00
post-patch :
2006-12-11 18:10:52 +01:00
@for file in ${ LOCAL_FILES } ; do \
2004-01-28 15:00:27 +01:00
${ REINPLACE_CMD } -e " s:%%LOCALBASE%%: ${ LOCALBASE } : " \
${ WRKSRC } /$$ { file} ; \
done
2006-12-11 18:10:52 +01:00
@for file in ${ X11_FILES } ; do \
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
${ REINPLACE_CMD } -e " s:%%LOCALBASE%%: ${ LOCALBASE } : " \
2006-12-11 18:10:52 +01:00
${ WRKSRC } /$$ { file} ; \
done
2007-08-06 19:23:31 +02:00
@for file in ${ DESKTOP_FILES } ; do \
${ REINPLACE_CMD } -e " s:%%PREFIX%%: ${ PREFIX } :g " \
-e " s:%%JDK_VERSION%%: ${ JDK_VERSION } :g " \
${ WRKSRC } /$$ { file} ; \
done
2010-06-09 08:27:20 +02:00
@${ REINPLACE_CMD } -e " s:%%OSVERSION%%: ${ OSVERSION } :g " \
${ WRKSRC } /../../j2se/make/common/Defs-bsd.gmk
2007-08-23 16:54:54 +02:00
. i f d e f i n e d ( W I T H O U T _ W E B )
@${ RM } ${ WRKDIR } /deploy/make/Makefile
. e n d i f
2004-01-28 15:00:27 +01:00
2003-02-28 18:54:40 +01:00
do-build :
# Start of jdk build
@( cd ${ BUILD_WRKSRC } ; ${ SETENV } ${ MAKE_ENV } ${ GMAKE } ${ MAKE_FLAGS } ${ MAKEFILE } ${ MAKE_ARGS } ${ ALL_TARGET } )
2002-03-13 16:06:16 +01:00
post-build :
2003-11-11 17:16:20 +01:00
@# XXX don' t install japanese manpages
@${ RM } -rf ${ JDKIMAGEDIR } /man/ja
@${ RM } -rf ${ JDKIMAGEDIR } /man/ja_JP.eucJP
2007-02-24 16:38:12 +01:00
. i f d e f i n e d ( W I T H _ T Z U P D A T E )
@# Update time zones
@-${ JDKIMAGEDIR } /bin/java -jar \
2008-05-03 17:50:22 +02:00
${ WRKDIR } /tzupdater-${ TZUPDATE_VERSION : S /_/./g } -${ TZUPDATE_TZVERSION } /tzupdater.jar -u -bc
2007-03-06 05:33:14 +01:00
@-${ RM } -rf ${ JDKIMAGEDIR } /jre/lib/zi.tzdata*
2007-02-24 16:38:12 +01:00
. e n d i f
2002-03-13 16:06:16 +01:00
2000-10-13 14:41:25 +02:00
do-install :
${ MKDIR } ${ PREFIX } /jdk${ JDK_VERSION }
2002-06-13 18:01:25 +02:00
cd ${ JDKIMAGEDIR } && ${ FIND } . \
| ${ CPIO } -pdmu -R ${ LIBOWN } :${ LIBGRP } ${ PREFIX } /jdk${ JDK_VERSION }
2007-08-23 16:54:54 +02:00
. i f ! d e f i n e d ( W I T H O U T _ W E B )
2007-08-21 07:53:17 +02:00
${ MKDIR } ${ PREFIX } /share/applications
2007-08-06 19:23:31 +02:00
${ INSTALL_DATA } ${ JDKIMAGEDIR } /jre/lib/desktop/applications/sun-java.desktop \
${ PREFIX } /share/applications/sun-java16.desktop
${ INSTALL_DATA } ${ JDKIMAGEDIR } /jre/lib/desktop/applications/sun-javaws.desktop \
${ PREFIX } /share/applications/sun-javaws16.desktop
${ INSTALL_DATA } ${ JDKIMAGEDIR } /jre/lib/desktop/applications/sun_java.desktop \
${ PREFIX } /share/applications/sun-jcontrol16.desktop
2006-01-29 22:24:59 +01:00
. e n d i f
2005-02-18 18:21:52 +01:00
@${ ECHO_MSG } " @unexec ${ LOCALBASE } /bin/unregistervm ${ PREFIX } /jdk ${ JDK_VERSION } /bin/java " >> ${ TMPPLIST }
2005-01-20 09:41:13 +01:00
@${ FIND } -s ${ JDKIMAGEDIR } -not -type d | \
2005-01-29 13:19:15 +01:00
${ SED } -ne 's#^${JDKIMAGEDIR}#jdk${JDK_VERSION}#p' >> ${ TMPPLIST }
2006-01-29 22:24:59 +01:00
. i f ! d e f i n e d ( W I T H O U T _ W E B )
@${ ECHO_MSG } '@exec ${LOCALBASE}/bin/update-desktop-database > /dev/null || /usr/bin/true' >> ${ TMPPLIST }
. e n d i f
2003-11-11 17:16:20 +01:00
. i f d e f i n e d ( W I T H _ D E B U G )
2002-06-13 18:01:25 +02:00
cd ${ JDKIMAGEDIR_G } && ${ FIND } . \
| ${ CPIO } -pdmu -R ${ LIBOWN } :${ LIBGRP } ${ PREFIX } /jdk${ JDK_VERSION }
2005-01-20 09:41:13 +01:00
@${ FIND } -s ${ JDKIMAGEDIR_G } -not -type d | \
2005-09-20 22:00:08 +02:00
${ SED } -ne 's#^${JDKIMAGEDIR_G}#jdk${JDK_VERSION}#p' >> ${ TMPPLIST }
2000-10-13 14:41:25 +02:00
. e n d i f
2006-02-02 17:27:44 +01:00
${ INSTALL_DATA } ${ FILESDIR } /cacerts \
${ PREFIX } /jdk${ JDK_VERSION } /jre/lib/security/cacerts
2006-07-19 00:50:37 +02:00
. i f d e f i n e d ( W I T H _ P O L I C Y )
${ INSTALL_DATA } ${ WRKDIR } /jce/*.jar ${ PREFIX } /jdk${ JDK_VERSION } /jre/lib/security
. e n d i f
2005-01-20 09:41:13 +01:00
@${ FIND } -s -d ${ PREFIX } /jdk${ JDK_VERSION } -type d | \
2005-01-29 13:19:15 +01:00
${ SED } -ne 's#^${PREFIX}/#@dirrm #p' >> ${ TMPPLIST }
@${ ECHO_MSG } " @exec ${ LOCALBASE } /bin/registervm ${ PREFIX } /jdk ${ JDK_VERSION } /bin/java # FREEBSD-JDK ${ JDK_VERSION } " >> ${ TMPPLIST }
2006-01-29 22:24:59 +01:00
. i f ! d e f i n e d ( W I T H O U T _ W E B )
@${ ECHO_MSG } '@unexec ${LOCALBASE}/bin/update-desktop-database > /dev/null || /usr/bin/true' >> ${ TMPPLIST }
. e n d i f
2000-10-13 14:41:25 +02:00
2005-01-20 09:41:13 +01:00
# XXX: put unregistervm into install script ?
2000-10-13 14:41:25 +02:00
post-install :
2002-03-13 16:06:16 +01:00
@${ LOCALBASE } /bin/registervm " ${ PREFIX } /jdk ${ JDK_VERSION } /bin/java # FREEBSD-JDK ${ JDK_VERSION } "
2006-01-29 22:24:59 +01:00
. i f ! d e f i n e d ( W I T H O U T _ W E B )
@-update-desktop-database
. e n d i f
2003-10-11 07:16:50 +02:00
@${ SETENV } PKG_PREFIX = ${ PREFIX } ${ SH } ${ PKGINSTALL } ${ PKGNAME } POST-INSTALL
2000-10-13 14:41:25 +02:00
. i n c l u d e < b s d . p o r t . p o s t . m k >