aboutsummaryrefslogtreecommitdiffstats
path: root/java/linux-jdk14
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>2001-06-18 02:08:03 +0800
committersteve <steve@FreeBSD.org>2001-06-18 02:08:03 +0800
commite71709a9089a80f4bc1c8b088603f546d69eaf9c (patch)
treeab46aef6157c4553521d6f0f17e8d0b3ecee5824 /java/linux-jdk14
parente446a1d8219aef142713768eee034973a879d6f0 (diff)
downloadfreebsd-ports-graphics-e71709a9089a80f4bc1c8b088603f546d69eaf9c.tar.gz
freebsd-ports-graphics-e71709a9089a80f4bc1c8b088603f546d69eaf9c.tar.zst
freebsd-ports-graphics-e71709a9089a80f4bc1c8b088603f546d69eaf9c.zip
Cleanups from maintainer and fix the URL from which to retrieve the
distfile. PR: 28137 Submitted by: maintainer, Dave Glowacki <dglo@ssec.wisc.edu>
Diffstat (limited to 'java/linux-jdk14')
-rw-r--r--java/linux-jdk14/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/java/linux-jdk14/Makefile b/java/linux-jdk14/Makefile
index 410517ef23d..16f1b5862aa 100644
--- a/java/linux-jdk14/Makefile
+++ b/java/linux-jdk14/Makefile
@@ -6,11 +6,12 @@
#
PORTNAME= jdk
-PORTVERSION= ${JDK_VERSION:S/-//g}
+PORTVERSION= ${INSTALL_JDK_VERSION}
CATEGORIES= java devel
MASTER_SITES= #
PKGNAMEPREFIX= linux-
-DISTFILES= j2sdk-${JDK_VERSION:S/./_/g}-linux-i386.bin
+DISTNAME= j2sdk-${DL_JDK_VERSION:S/./_/g}-linux-i386
+EXTRACT_SUFX= .bin
MAINTAINER= ernst@jollem.com
@@ -28,21 +29,22 @@ EXTRACT_BEFORE_ARGS= # empty
EXTRACT_AFTER_ARGS= # empty
WRKSRC= ${WRKDIR}/j2sdk1.4.0
-PLIST_SUB+= TARGET_PREFIX=${TARGET_PREFIX:S/^${PREFIX}\///}
+PLIST_SUB+= TARGET_PREFIX=${TARGET_DIR:S/^${PREFIX}\///}
NO_BUILD= yes
USE_LINUX= yes
-JDK_VERSION= 1.4.0-beta
+DL_JDK_VERSION= 1.4.0-beta
+INSTALL_JDK_VERSION= 1.4.0b1
ONLY_FOR_ARCHS= i386
-TARGET_PREFIX?= ${PREFIX}/${PKGBASE}${PORTVERSION}
+TARGET_DIR?= ${PREFIX}/${PKGBASE}${PORTVERSION}
+DOWNLOAD_URL?= http://java.sun.com/j2se/1.4/#linux
+PORTTITLE= Java 2 Development Kit ${INSTALL_JDK_VERSION} for Linux
.include <bsd.port.pre.mk>
-.for file in ${DISTFILES}
-.if !exists(${DISTDIR}/${file})
-IGNORE=You must manually fetch the Java 2 Development Kit ${JDK_VERSION} for Linux archive (${DISTFILES}) from http://java.sun.com/j2se/1.3/download-linux.html, place it in ${DISTDIR} and then run make again
+.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
+IGNORE=You must manually fetch the ${PORTTITLE} archive (${DISTNAME}${EXTRACT_SUFX}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
.endif
-.endfor
post-fetch:
@${CHMOD} +x ${DISTDIR}/${DISTFILES}
@@ -53,6 +55,6 @@ post-patch:
do-install:
${MKDIR} ${PREFIX}/${PKGNAMEPREFIX}jdk${PORTVERSION}
${TAR} -C ${WRKSRC} -cf- . | ${TAR} -C ${PREFIX}/${PKGNAMEPREFIX}jdk${PORTVERSION} -xpf-
- ${LOCALBASE}/bin/registervm "${PREFIX}/linux-jdk${PORTVERSION}/bin/java # Linux-JDK${PORTVERSION}"
+ ${LOCALBASE}/bin/registervm "${TARGET_DIR}/bin/java # Linux-Sun-JDK${PORTVERSION}"
.include <bsd.port.post.mk>