2005-01-20 09:41:13 +01:00
|
|
|
# New ports collection makefile for: jdk15
|
|
|
|
# Date created: 12 January 2005
|
2003-03-07 00:18:24 +01:00
|
|
|
# Whom: Alexey Zelkin <phantom@FreeBSD.org>
|
2000-10-13 14:41:25 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= jdk
|
2001-08-27 20:58:46 +02:00
|
|
|
PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION}
|
2005-07-28 15:36:16 +02:00
|
|
|
PORTREVISION= 3
|
2000-10-13 14:41:25 +02:00
|
|
|
CATEGORIES= java devel
|
2005-07-28 15:36:16 +02:00
|
|
|
MASTER_SITES= http://www.kde.org.ua/data/java/:koi8u
|
|
|
|
# http://www.sun.com/software/java2/download.html
|
2005-01-20 09:41:13 +01:00
|
|
|
# http://www.eyesbeyond.com/freebsddom/java/jdk15.html
|
|
|
|
SCSL_SRCFILE= jdk-${JDK_VERSION:S/./_/g}-src-scsl.zip
|
|
|
|
SCSL_BINFILE= jdk-${JDK_VERSION:S/./_/g}-bin-scsl.zip
|
|
|
|
PATCHSETFILE= bsd-jdk15-patches-${JDK_PATCHSET_VERSION}.tar.bz2
|
2005-07-28 15:36:16 +02:00
|
|
|
ENCODINGS= java_koi8u.tgz:koi8u
|
|
|
|
DISTFILES= ${SCSL_SRCFILE} ${SCSL_BINFILE} ${PATCHSETFILE} ${ENCODINGS}
|
2000-10-13 14:41:25 +02:00
|
|
|
|
2003-03-07 00:18:24 +01:00
|
|
|
MAINTAINER= phantom@FreeBSD.org
|
2005-01-20 09:41:13 +01:00
|
|
|
COMMENT= Java Development Kit 1.5.0
|
2000-10-13 14:41:25 +02:00
|
|
|
|
2005-01-20 09:41:13 +01:00
|
|
|
# XXX: iconv dependency?
|
2003-11-11 17:16:20 +01:00
|
|
|
EXTRACT_DEPENDS=zip:${PORTSDIR}/archivers/zip
|
2000-10-13 14:41:25 +02:00
|
|
|
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
|
|
|
|
zip:${PORTSDIR}/archivers/zip \
|
2005-01-20 09:41:13 +01:00
|
|
|
${X11BASE}/lib/libXm.so:${PORTSDIR}/x11-toolkits/open-motif
|
2004-01-28 15:00:27 +01:00
|
|
|
RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper
|
2005-01-20 09:41:13 +01:00
|
|
|
|
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
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
|
|
|
|
2005-01-20 09:41:13 +01:00
|
|
|
JDK_VERSION= 1.5.0
|
|
|
|
JDK_PATCHSET_VERSION= 1
|
|
|
|
LATEST_LINK= jdk15
|
2000-10-13 14:41:25 +02:00
|
|
|
|
2003-12-16 07:50:59 +01:00
|
|
|
SUN_LINUX_JDK_VERSION= 1.4.2
|
2003-11-12 13:38:03 +01:00
|
|
|
|
2003-11-11 17:16:20 +01:00
|
|
|
.if !defined(WITH_LINUX_BOOTSTRAP)
|
|
|
|
NATIVE_BOOTSTRAP_JDKS= ${LOCALBASE}/jdk1.4.2 \
|
2005-01-20 09:41:13 +01:00
|
|
|
${LOCALBASE}/jdk1.5.0
|
2003-11-11 17:16:20 +01:00
|
|
|
.endif
|
2003-07-21 09:31:05 +02:00
|
|
|
|
2005-01-20 09:41:13 +01:00
|
|
|
LINUX_BOOTSTRAP_JDKS= ${LOCALBASE}/linux-sun-jdk1.4.2
|
2003-11-11 17:16:20 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-11-12 13:38:03 +01:00
|
|
|
# do we have valid native jdk installed?
|
2003-11-11 17:16:20 +01:00
|
|
|
.if !defined(WITH_LINUX_BOOTSTRAP)
|
|
|
|
.for CJDK in ${NATIVE_BOOTSTRAP_JDKS}
|
|
|
|
. if !defined(JDK14DIR) && exists(${CJDK}/bin/javac)
|
|
|
|
JDK14DIR= ${CJDK}
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2003-11-12 13:38:03 +01:00
|
|
|
# do we have valid linux jdk installed?
|
2003-11-11 17:16:20 +01:00
|
|
|
.if !defined(JDK14DIR)
|
|
|
|
.for CJDK in ${LINUX_BOOTSTRAP_JDKS}
|
|
|
|
. if !defined(JDK14DIR) && exists(${CJDK}/bin/javac)
|
|
|
|
JDK14DIR= ${CJDK}
|
|
|
|
WITH_LINUX_BOOTSTRAP= YES
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2003-11-12 13:38:03 +01:00
|
|
|
# if no valid jdk found, set dependency
|
|
|
|
.if !defined(JDK14DIR)
|
|
|
|
JDK14DIR?= ${LOCALBASE}/linux-sun-jdk${SUN_LINUX_JDK_VERSION}
|
2002-05-03 07:36:11 +02:00
|
|
|
.endif
|
2000-10-13 14:41:25 +02:00
|
|
|
|
2003-11-12 13:38:03 +01:00
|
|
|
BUILD_DEPENDS+= ${JDK14DIR}/bin/javac:${PORTSDIR}/java/linux-sun-jdk14
|
|
|
|
|
2005-01-20 09:41:13 +01:00
|
|
|
# workaround to handle both 'zip' and 'tar.bz2' distfiles
|
2003-03-07 00:18:24 +01:00
|
|
|
USE_ZIP= YES
|
2003-11-11 17:16:20 +01:00
|
|
|
EXTRACT_ONLY= ${SCSL_SRCFILE} ${SCSL_BINFILE}
|
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
|
2004-01-28 15:00:27 +01:00
|
|
|
USE_REINPLACE= YES
|
2002-10-10 10:38:39 +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
|
|
|
|
2003-03-07 00:18:24 +01:00
|
|
|
MAKE_ENV= ALT_BOOTDIR="${JDK14DIR}" \
|
2000-10-13 14:41:25 +02:00
|
|
|
ALT_MOTIF_DIR="${X11BASE}" \
|
2000-11-03 17:06:41 +01:00
|
|
|
SYS_CFLAGS="${CFLAGS}" \
|
2003-03-07 00:18:24 +01:00
|
|
|
LANG="C" \
|
|
|
|
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="" \
|
|
|
|
SKIP_COMPARE_IMAGES="YES" \
|
|
|
|
DONT_BUILD_DOCS="YES" \
|
|
|
|
DONT_BUILD_DEPLOY="YES" \
|
|
|
|
DONT_BUILD_INSTALL="YES"
|
2004-01-28 15:00:27 +01:00
|
|
|
.if !defined(WITH_IPV6)
|
2005-01-20 09:41:13 +01:00
|
|
|
MAKE_ENV+= DONT_ENABLE_IPV6="YES"
|
2004-01-28 15:00:27 +01:00
|
|
|
.endif
|
|
|
|
|
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 \
|
2005-09-04 16:31:32 +02:00
|
|
|
jdk${JDK_VERSION}/jre/.systemPrefs/.systemRootModFile \
|
|
|
|
jdk${JDK_VERSION}/jre/lib/${ARCH}/client/classes.jsa
|
2005-03-30 18:51:59 +02:00
|
|
|
PLIST_DIRS= jdk${JDK_VERSION}/jre/.systemPrefs
|
|
|
|
|
2005-01-20 09:41:13 +01:00
|
|
|
.if (${ARCH} == amd64)
|
|
|
|
HOTSPOTARCH=amd64
|
2003-11-11 17:16:20 +01:00
|
|
|
.else
|
2005-01-20 09:41:13 +01:00
|
|
|
HOTSPOTARCH=i586
|
2000-10-13 14:41:25 +02:00
|
|
|
.endif
|
|
|
|
|
2005-01-20 09:41:13 +01:00
|
|
|
JDKIMAGEDIR= ${WRKSRC}/../build/bsd-${HOTSPOTARCH}/j2sdk-image
|
|
|
|
JDKIMAGEDIR_G= ${WRKSRC}/../build/bsd-${HOTSPOTARCH}/j2sdk-debug-image
|
|
|
|
|
2004-01-28 15:00:27 +01:00
|
|
|
PTHREAD_FILES= ../../hotspot/build/bsd/makefiles/vm.make \
|
2005-01-20 09:41:13 +01:00
|
|
|
../../j2se/make/com/sun/java/pack/Makefile \
|
|
|
|
../../j2se/make/common/Defs.gmk \
|
2004-01-28 15:00:27 +01:00
|
|
|
../../j2se/make/common/Defs-bsd.gmk \
|
2005-01-20 09:41:13 +01:00
|
|
|
../../j2se/make/common/Program.gmk \
|
2004-01-28 15:00:27 +01:00
|
|
|
../../j2se/make/java/hpi/native/Makefile \
|
|
|
|
../../j2se/make/java/net/Makefile \
|
2005-01-20 09:41:13 +01:00
|
|
|
../../j2se/make/java/nio/Makefile \
|
|
|
|
../../j2se/make/jpda/transport/socket/Makefile \
|
|
|
|
../../j2se/make/sun/cmm/Makefile \
|
|
|
|
../../j2se/make/sun/xawt/Makefile
|
2004-01-28 15:00:27 +01:00
|
|
|
|
|
|
|
LD_LIBRARY_PATH_FILES= ../../hotspot/src/os/bsd/vm/os_bsd.cpp
|
|
|
|
|
2002-10-17 18:30:53 +02:00
|
|
|
# Check for JDK sources
|
2003-11-11 17:16:20 +01:00
|
|
|
.if !exists(${DISTDIR}/${SCSL_SRCFILE}) && !defined(PACKAGE_BUILDING)
|
2002-10-17 18:30:53 +02:00
|
|
|
ECHO_MSG=/usr/bin/printf
|
|
|
|
IGNORE= :\n\
|
|
|
|
Because of licensing restrictions, you must fetch the source distribution\n\
|
|
|
|
manually. Please access http://www.sun.com/software/java2/download.html\n\
|
|
|
|
with a web browser and follow the \"Download\" link for the\n\
|
|
|
|
\"Java(TM) SDK ${JDK_VERSION}\". You will be required to log in and register,\n\
|
|
|
|
but you can create an account on this page. After registration and\n\
|
|
|
|
accepting the Sun Community Source License, select \"J2SESDK\" and\n\
|
2003-11-11 17:16:20 +01:00
|
|
|
download the source file, ${SCSL_SRCFILE}. Please place this file in\n\
|
|
|
|
${DISTDIR}.\n
|
|
|
|
.endif
|
|
|
|
.if !exists(${DISTDIR}/${SCSL_BINFILE}) && !defined(PACKAGE_BUILDING)
|
|
|
|
ECHO_MSG=/usr/bin/printf
|
|
|
|
IGNORE= :\n\
|
|
|
|
Because of licensing restrictions, you must fetch the source distribution\n\
|
|
|
|
manually. Please access http://www.sun.com/software/java2/download.html\n\
|
|
|
|
with a web browser and follow the \"Download\" link for the\n\
|
|
|
|
\"Java(TM) SDK ${JDK_VERSION}\". You will be required to log in and register,\n\
|
|
|
|
but you can create an account on this page. After registration and\n\
|
|
|
|
accepting the Sun Community Source License, select \"J2SESDK\" and\n\
|
|
|
|
download the source file, ${SCSL_BINFILE}. Please place this file in\n\
|
2002-10-29 06:16:16 +01:00
|
|
|
${DISTDIR}.\n
|
2002-10-17 18:30:53 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# Check for patchset
|
2003-03-04 04:07:17 +01:00
|
|
|
.if !exists(${DISTDIR}/${PATCHSETFILE}) && !defined(PACKAGE_BUILDING)
|
2002-10-17 18:30:53 +02:00
|
|
|
ECHO_MSG=/usr/bin/printf
|
|
|
|
IGNORE= :\n\
|
|
|
|
The source distribution exists on your system, but due to\n\
|
|
|
|
licensing restrictions you still need to download the\n\
|
|
|
|
patchset, ${PATCHSETFILE}, from\n\
|
2005-01-20 09:41:13 +01:00
|
|
|
http://www.eyesbeyond.com/freebsddom/java/jdk15.html.\n\
|
2002-10-29 06:16:16 +01:00
|
|
|
Please place the patchset in ${DISTDIR}.\n
|
2000-10-13 14:41:25 +02:00
|
|
|
.endif
|
|
|
|
|
2005-01-20 09:41:13 +01:00
|
|
|
pre-fetch:
|
2003-03-15 10:57:58 +01:00
|
|
|
@${ECHO_MSG}
|
2005-01-20 09:41:13 +01:00
|
|
|
@${ECHO_MSG} "IMPORTANT: To build JDK 1.5.0 port, you should have at least"
|
2003-11-11 17:16:20 +01:00
|
|
|
@${ECHO_MSG} "1.7Gb of free disk space in build area!"
|
2003-03-13 12:24:42 +01:00
|
|
|
@${ECHO_MSG}
|
2003-11-11 17:16:20 +01:00
|
|
|
.if defined(WITH_LINUX_BOOTSTRAP)
|
2005-01-20 09:41:13 +01:00
|
|
|
@${ECHO_MSG} "IMPORTANT: To build JDK 1.5.0 port, you should have linux emulation"
|
2003-08-04 10:53:42 +02:00
|
|
|
@${ECHO_MSG} "enabled in the kernel and linux procfs (linprocfs) filesystem"
|
|
|
|
@${ECHO_MSG} "mounted."
|
|
|
|
@${ECHO_MSG}
|
2003-11-11 17:16:20 +01:00
|
|
|
.endif
|
2004-01-28 15:00:27 +01:00
|
|
|
@${ECHO_MSG} "Following port compile time options are available:"
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} " WITH_DEBUG - install JDK binaries and libraries"
|
|
|
|
@${ECHO_MSG} " with debuging support"
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} " WITH_IPV6 - enable JDK IPv6 support"
|
2003-03-13 12:24:42 +01:00
|
|
|
@${ECHO_MSG}
|
|
|
|
|
2005-01-20 09:41:13 +01:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "WARNING: "
|
|
|
|
@${ECHO_MSG} "WARNING: This is ALPHA quality software, and suitable for testing ONLY!"
|
|
|
|
@${ECHO_MSG} "WARNING: "
|
|
|
|
@${ECHO_MSG}
|
|
|
|
|
2005-07-28 15:36:16 +02:00
|
|
|
post-extract:
|
|
|
|
${TAR} -C ${WRKSRC:H:H}/j2se/src/share/classes/sun/io/ -xzvpf ${DISTDIR}/java_koi8u.tgz '*.java'
|
|
|
|
${LN} -s ${FILESDIR}/KOI8_U.java ${WRKSRC:H:H}/j2se/src/share/classes/sun/nio/cs/
|
|
|
|
|
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 * && \
|
2005-01-20 09:41:13 +01:00
|
|
|
${PATCH} -p0 < ${WRKDIR}/jdk15.patches
|
2003-02-28 18:54:40 +01:00
|
|
|
|
2004-01-28 15:00:27 +01:00
|
|
|
post-patch:
|
|
|
|
@for file in ${LD_LIBRARY_PATH_FILES}; do \
|
|
|
|
${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" \
|
|
|
|
${WRKSRC}/$${file}; \
|
|
|
|
done
|
|
|
|
@for file in ${PTHREAD_FILES}; do \
|
2005-01-20 09:41:13 +01:00
|
|
|
${REINPLACE_CMD} -e "s:-pthread:${PTHREAD_LIBS}:g" \
|
2004-01-28 15:00:27 +01:00
|
|
|
${WRKSRC}/$${file}; \
|
|
|
|
done
|
|
|
|
|
2003-11-11 17:16:20 +01:00
|
|
|
.if defined(WITH_LINUX_BOOTSTRAP)
|
2002-06-27 07:34:39 +02:00
|
|
|
pre-build:
|
|
|
|
@if [ "$${WRKDIRPREFIX}" -a \
|
|
|
|
-L "/compat/linux/$${WRKDIRPREFIX}" -a \
|
2004-01-23 06:28:50 +01:00
|
|
|
x`${LS} -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \
|
2002-06-27 07:34:39 +02:00
|
|
|
then \
|
2002-10-25 07:54:09 +02:00
|
|
|
${ECHO_MSG} "Please set WRKDIRPREFIX to something which doesn't"; \
|
|
|
|
${ECHO_MSG} "have a matching symbolic link in /compat/linux."; \
|
|
|
|
${ECHO_MSG} "This is known to cause problems during bootstrapping."; \
|
2002-06-27 07:34:39 +02:00
|
|
|
exit 1; \
|
|
|
|
fi
|
2003-01-30 09:23:53 +01:00
|
|
|
@if [ `/sbin/sysctl -n compat.linux.osname` != "Linux" ]; \
|
2002-08-06 18:36:21 +02:00
|
|
|
then \
|
2002-10-25 07:54:09 +02:00
|
|
|
${ECHO_MSG} "Please set the value of the sysctl compat.linux.osname"; \
|
|
|
|
${ECHO_MSG} "to 'Linux' with the command:"; \
|
2003-01-30 12:10:10 +01:00
|
|
|
${ECHO_MSG} " /sbin/sysctl compat.linux.osname=Linux"; \
|
2002-10-25 07:54:09 +02:00
|
|
|
${ECHO_MSG} "Having it set to other values, such as 'FreeBSD',"; \
|
|
|
|
${ECHO_MSG} "is known to cause problems during bootstrapping."; \
|
2002-08-06 18:36:21 +02:00
|
|
|
exit 1; \
|
|
|
|
fi
|
2003-08-04 10:53:42 +02:00
|
|
|
@if [ "`/sbin/mount | grep ^linprocfs`" = "" ]; \
|
|
|
|
then \
|
2005-04-08 17:33:00 +02:00
|
|
|
${ECHO_MSG} "ERROR: You must have LINPROCFS mounted before" ; \
|
|
|
|
${ECHO_MSG} "starting to build the native JDK 1.5.0." ; \
|
2003-08-04 10:53:42 +02:00
|
|
|
${ECHO_MSG} "" ; \
|
2005-04-08 17:33:00 +02:00
|
|
|
${ECHO_MSG} "You may do it with the following commands:" ; \
|
2003-08-04 10:53:42 +02:00
|
|
|
${ECHO_MSG} "" ; \
|
|
|
|
${ECHO_MSG} "# kldload linprocfs" ; \
|
|
|
|
${ECHO_MSG} "" ; \
|
|
|
|
${ECHO_MSG} "and" ; \
|
|
|
|
${ECHO_MSG} "" ; \
|
|
|
|
${ECHO_MSG} "# mount -t linprocfs linprocfs /compat/linux/proc" ; \
|
|
|
|
${ECHO_MSG} "" ; \
|
|
|
|
exit 1 ; \
|
|
|
|
fi
|
2002-06-27 07:34:39 +02:00
|
|
|
.endif
|
|
|
|
|
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
|
2002-03-13 16:06:16 +01:00
|
|
|
|
2000-10-13 14:41:25 +02:00
|
|
|
pre-install:
|
2004-01-28 15:00:27 +01:00
|
|
|
.if !defined(WITH_DEBUG)
|
2000-10-13 14:41:25 +02:00
|
|
|
@${ECHO_MSG}
|
2003-11-11 17:16:20 +01:00
|
|
|
@${ECHO_MSG} "Please use \`make -DWITH_DEBUG' if you want to install libraries and binaries"
|
2000-10-13 14:41:25 +02:00
|
|
|
@${ECHO_MSG} "with debugging support."
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
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}
|
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}
|
2003-11-11 17:16:20 +01:00
|
|
|
.if defined(WITH_DEBUG)
|
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-01-29 13:19:15 +01:00
|
|
|
${SED} -ne 's#^${JDKIMAGEDIR}#jdk${JDK_VERSION}#p' >> ${TMPPLIST}
|
2000-10-13 14:41:25 +02:00
|
|
|
.endif
|
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}
|
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}"
|
2003-10-11 07:16:50 +02:00
|
|
|
@${SED} -e "s:%%JRE_HOME%%:${PREFIX}/jdk${JDK_VERSION}/jre:g" \
|
|
|
|
< ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
|
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2000-10-13 14:41:25 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|