summaryrefslogtreecommitdiff
path: root/java/linux-blackdown-jdk14/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'java/linux-blackdown-jdk14/Makefile')
-rw-r--r--java/linux-blackdown-jdk14/Makefile65
1 files changed, 65 insertions, 0 deletions
diff --git a/java/linux-blackdown-jdk14/Makefile b/java/linux-blackdown-jdk14/Makefile
new file mode 100644
index 000000000000..f786b5d7ce12
--- /dev/null
+++ b/java/linux-blackdown-jdk14/Makefile
@@ -0,0 +1,65 @@
+# New ports collection makefile for: linux-blackdown-jdk14
+# Date created: 12 August 2002
+# Whom: Ernst de Haan <znerd@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= jdk
+PORTVERSION= ${JDK_VERSION}
+CATEGORIES= java
+MASTER_SITES= ftp://ftp.nluug.nl/pub/os/Linux/java/jdk/${DOWNLOAD_DIR}/ \
+ ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/${DOWNLOAD_DIR}/ \
+ ftp://ftp.tux.org/pub/java/${DOWNLOAD_DIR}/
+PKGNAMEPREFIX= linux-blackdown-
+DISTNAME= j2sdk-${JDK_VERSION}${JDK_VER_SUFFIX}-linux-i586
+EXTRACT_SUFX= .bin
+
+MAINTAINER= znerd@FreeBSD.org
+
+BUILD_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper
+RUN_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper
+
+EXTRACT_CMD= # empty
+EXTRACT_BEFORE_ARGS= # empty
+EXTRACT_AFTER_ARGS= # empty
+
+WRKSRC= ${WRKDIR}/j2sdk${PORTVERSION}
+PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///}
+
+NO_BUILD= yes
+USE_LINUX= yes
+JDK_VERSION= 1.4.1
+JDK_VER_SUFFIX= -beta
+DOWNLOAD_DIR= ${PORTNAME:U}-${JDK_VERSION}/${ARCH}/beta
+ONLY_FOR_ARCHS= i386
+
+NO_CDROM= "License doesn\'t allow distribution with fee"
+NO_PACKAGE= "License doesn\'t allow binary distributions"
+
+APP_HOME= ${PREFIX}/${PKGNAMEPREFIX}${PORTNAME}${JDK_VERSION}
+
+.include <bsd.port.pre.mk>
+
+post-fetch:
+ @${CHMOD} +x ${DISTDIR}/${DISTFILES}
+
+post-patch:
+ @${ECHO} -n ">> Removing unneeded files..."
+ @${FIND} ${WRKSRC} -name '*.orig' -print | ${XARGS} ${RM} -f
+ @${ECHO} " [ DONE ]"
+
+do-install:
+ @${ECHO} -n ">> Creating destination directory ${APP_HOME}..."
+ @${MKDIR} ${APP_HOME}
+ @${ECHO} " [ DONE ]"
+
+ @${ECHO} -n ">> Copying files..."
+ @${CP} -R ${WRKSRC}/* ${APP_HOME}
+ @${ECHO} " [ DONE ]"
+
+ @${ECHO} -n ">> Registering with javavm..."
+ @${LOCALBASE}/bin/registervm "${APP_HOME}/bin/java # Linux-Blackdown-JDK${PORTVERSION}_${PORTREVISION}"
+ @${ECHO} " [ DONE ]"
+
+.include <bsd.port.post.mk>