summaryrefslogtreecommitdiffstats
path: root/java/jdk13/Makefile
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-08-27 18:58:46 +0000
committersobomax <sobomax@FreeBSD.org>2001-08-27 18:58:46 +0000
commitb24116b507554c5cf522475397234422df0c2906 (patch)
treea4c4441e2ee07ffff38e3fa35b327141d07171c9 /java/jdk13/Makefile
parent9cde815774e3b76673379f45f8983f80c62984ff (diff)
downloadFreeBSD-ports-b24116b507554c5cf522475397234422df0c2906.zip
FreeBSD-ports-b24116b507554c5cf522475397234422df0c2906.tar.gz
Add native port of Sun's Java Devepment Kit, v.1.3.1 (repo-copied from
jdk12-beta). PR: 29949 Submitted by: Greg Lewis <glewis@eyesbeyond.com>
Diffstat (limited to 'java/jdk13/Makefile')
-rw-r--r--java/jdk13/Makefile84
1 files changed, 26 insertions, 58 deletions
diff --git a/java/jdk13/Makefile b/java/jdk13/Makefile
index 43a88e2..4a79c0e 100644
--- a/java/jdk13/Makefile
+++ b/java/jdk13/Makefile
@@ -1,4 +1,4 @@
-# New ports collection makefile for: jdk12
+# New ports collection makefile for: jdk13
# Date created: 10 October 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
@@ -6,54 +6,46 @@
#
PORTNAME= jdk
-PORTVERSION= ${JDK_VERSION}b${JDK_BETALEVEL}
+PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION}
CATEGORIES= java devel
MASTER_SITES= # http://www.sun.com/software/java2/download.html
-# http://www.eyesbeyond.com/freebsddom/java/jdk.html
-DISTFILES= ${PORTNAME}${JDK_VERSION:S/./_/g}-src${EXTRACT_SUFX} \
- freebsd-jdk122-patches-${JDK_BETALEVEL}.tar.gz
+# http://www.eyesbeyond.com/freebsddom/java/jdk13.html
+DISTFILES= j2sdk-${JDK_VERSION:S/./_/g}-src${EXTRACT_SUFX} \
+ bsd-jdk131-patches-${JDK_PATCHSET_VERSION}.tar.gz
MAINTAINER= sobomax@FreeBSD.org
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
zip:${PORTSDIR}/archivers/zip \
- ${JDK11DIR}/bin/javac:${PORTSDIR}/java/jdk \
- ${JDK12DIR}/bin/javac:${PORTSDIR}/java/linux-jdk \
- ${X11BASE}/lib/libMrm.a:${PORTSDIR}/x11-toolkits/open-motif-devel \
- ${NONEXISTENT}:${PORTSDIR}/java/jfc:extract
-LIB_DEPENDS= odbc.1:${PORTSDIR}/databases/unixODBC
-RUN_DEPENDS= ${X11BASE}/lib/X11/fonts/URW/fonts.dir:${PORTSDIR}/x11-fonts/urwfonts \
- javavm:${PORTSDIR}/java/javavmwrapper
+ gtar:${PORTSDIR}/archivers/gtar \
+ ${JDK13DIR}/bin/javac:${PORTSDIR}/java/linux-jdk13 \
+ ${X11BASE}/lib/libMrm.a:${PORTSDIR}/x11-toolkits/open-motif-devel
+RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper
-WRKSRC= ${WRKDIR}/build/freebsd
+WRKSRC= ${WRKDIR}/j2sdk1.3.1/make
-JDK_VERSION= 1.2.2
-JDK_BETALEVEL= 10
+JDK_VERSION= 1.3.1
+JDK_PATCHSET_VERSION= 3
-JDK11DIR?= ${LOCALBASE}/jdk1.1.8
-JFC11DIR?= ${WRKDIRPREFIX}${.CURDIR}/../../java/jfc/work/swing-1.1.1fcs
-JDK12DIR?= ${LOCALBASE}/linux-jdk${JDK_VERSION}
+JDK13DIR?= ${LOCALBASE}/linux-jdk${JDK_VERSION}
ONLY_FOR_ARCHS= i386
USE_GMAKE= yes
RESTRICTED= "Redistribution of pre-compiled binaries isn't permitted"
-MAKEFILE= GNUmakefile
-MAKE_ENV= HAVE_DPS="no" \
- ALT_BOOTDIR="${JDK12DIR}" \
- ALT_ODBCDIR="${LOCALBASE}" \
+MAKE_ENV= ALT_BOOTDIR="${JDK13DIR}" \
ALT_MOTIF_DIR="${X11BASE}" \
OPENWINHOME="${X11BASE}" \
- _JDK11DIR="${JDK11DIR}" \
SYS_CFLAGS="${CFLAGS}" \
CLASSPATH="" \
+ LD_LIBRARY_PATH="" \
JAVA_COMPILER=""
-ALL_TARGET= release-images
-PATCH_CMD= ${PATCH} -p1 -s <
+ALL_TARGET= all images
+TAR= gtar
+BSD_TAR= /usr/bin/tar
PLIST_SUB+= JDK_VERSION=${JDK_VERSION}
-JDKIMAGEDIR= ${WRKSRC}/jdk-image-i386
-JDKIMAGEDIR_G= ${WRKSRC}/jdk-debug-image-i386
-JREIMAGEDIR= ${WRKSRC}/jre-image-i386
+JDKIMAGEDIR= ${WRKSRC}/../build/bsd-i386/jdk-image-i386
+JDKIMAGEDIR_G= ${WRKSRC}/../build/bsd-i386/jdk-debug-image-i386
.if defined(NODEBUG)
PLIST_SUB+= DEBUG:="@comment "
@@ -70,36 +62,12 @@ IGNORE= "You can not legally distribute pre-compiled binaries"
.for file in ${DISTFILES}
.if !exists(${DISTDIR}/${file})
-IGNORE=You must manually fetch the source distribution and FreeBSD patches (${DISTFILES}) from http://www.sun.com/software/java2/download.html and http://www.eyesbeyond.com/freebsddom/java/jdk.html, place it in ${DISTDIR} and then run make again
+IGNORE=You must manually fetch the source distribution and FreeBSD patches (${DISTFILES}) from http://www.sun.com/software/java2/download.html and http://www.eyesbeyond.com/freebsddom/java/jdk13.html, place it in ${DISTDIR} and then run make again
.endif
.endfor
pre-patch:
- @${MKDIR} ${WRKSRC}
-.for dir in build src ext/i18n/build ext/i18n/src ext/iiimp/build
- @cd ${WRKDIR}/${dir} && ${RM} -rf freebsd && ${CP} -R solaris freebsd
-.endfor
- @cd ${WRKSRC} && ${PATCH_CMD} ${WRKDIR}/build.patches && \
- cd ../share && ${PATCH_CMD} ${WRKDIR}/buildshare.patches && \
- cd ../../src/freebsd && ${PATCH_CMD} ${WRKDIR}/src.patches && \
- cd ../share && ${PATCH_CMD} ${WRKDIR}/srcshare.patches && \
- cd ../../ext && ${PATCH_CMD} ${WRKDIR}/ext.patches
- @${MKDIR} ${WRKSRC}/1.1_libs
- @${CP} ${JFC11DIR}/*.jar ${WRKSRC}/1.1_libs
-
-post-build:
- for dir in ${JDKIMAGEDIR} ${JDKIMAGEDIR_G} ${JREIMAGEDIR}; do \
- for file in `find $${dir} -type f -name "*.so"`; do \
- if [ -f $${file}.${JDK_VERSION} ]; then \
- ${RM} $${file}.${JDK_VERSION}; \
- ${LN} -sf `${BASENAME} $${file}` $${file}.${JDK_VERSION}; \
- fi; \
- done; \
- done
- for dir in ${JDKIMAGEDIR} ${JREIMAGEDIR}; do \
- find $${dir} -type f | xargs file | ${GREP} 'not stripped$$' | \
- ${SED} 's|:.*$$||' | xargs strip; \
- done
+ @cd ${WRKDIR} && ${PATCH} < ${WRKDIR}/jdk131.patches
.if !defined(NODEBUG)
pre-install:
@@ -111,11 +79,11 @@ pre-install:
do-install:
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}
- (cd ${JDKIMAGEDIR} && ${TAR} -c -f - .) \
- | (cd ${PREFIX}/jdk${JDK_VERSION} && ${TAR} --unlink -x -f -)
+ (cd ${JDKIMAGEDIR} && ${BSD_TAR} -c -f - .) \
+ | (cd ${PREFIX}/jdk${JDK_VERSION} && ${BSD_TAR} --unlink -x -f -)
.if !defined(NODEBUG)
- (cd ${JDKIMAGEDIR_G} && ${TAR} -c -f - .) \
- | (cd ${PREFIX}/jdk${JDK_VERSION} && ${TAR} --unlink -x -f -)
+ (cd ${JDKIMAGEDIR_G} && ${BSD_TAR} -c -f - .) \
+ | (cd ${PREFIX}/jdk${JDK_VERSION} && ${BSD_TAR} --unlink -x -f -)
.endif
post-install:
OpenPOWER on IntegriCloud