diff options
author | jschauma <jschauma@pkgsrc.org> | 2003-12-12 17:17:19 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2003-12-12 17:17:19 +0000 |
commit | a7972e7bfcc20ca2348f5085b7b7832dc1fe8422 (patch) | |
tree | c83f22bd3cf8102e3b9ad34181d2897ac61c6174 | |
parent | 9600be241a8213b72408ec085ca8710dc6e56be6 (diff) | |
download | pkgsrc-a7972e7bfcc20ca2348f5085b7b7832dc1fe8422.tar.gz |
Don't duplicate the FETCH_MESSAGE, move it to Makefile.common instead.
-rw-r--r-- | lang/sun-jdk14/Makefile | 19 | ||||
-rw-r--r-- | lang/sun-jre14/Makefile | 19 | ||||
-rw-r--r-- | lang/sun-jre14/Makefile.common | 20 |
3 files changed, 25 insertions, 33 deletions
diff --git a/lang/sun-jdk14/Makefile b/lang/sun-jdk14/Makefile index b06e877e756..c159a1fea42 100644 --- a/lang/sun-jdk14/Makefile +++ b/lang/sun-jdk14/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2003/12/12 15:38:16 jschauma Exp $ +# $NetBSD: Makefile,v 1.15 2003/12/12 17:17:19 jschauma Exp $ DISTNAME= j2sdk-1_4_2_03-linux-i586 PKGNAME= sun-jdk14-2.3 @@ -7,6 +7,8 @@ MASTER_SITES= # empty COMMENT= Sun's Java(tm) 2 SDK, Standard Edition 1.4.2 +SHORT= SDK + DEPENDS= sun-jre14>=2.0:../../lang/sun-jre14 # Remove parts that are in common with the JRE @@ -22,21 +24,6 @@ post-extract: done ${LN} -sf . ${WRKSRC}/jre -_FETCH_MESSAGE= \ - ${ECHO} "======================================================================"; \ - ${ECHO} ; \ - ${ECHO} " The file ${DISTNAME}${EXTRACT_SUFX} containing the"; \ - ${ECHO} " Java(tm) 2 SDK, Standard Edition must be fetched"; \ - ${ECHO} " into:"; \ - ${ECHO} " ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}"; \ - ${ECHO} " from:"; \ - ${ECHO} " ${DOWNLOAD} or"; \ - ${ECHO} " ${ARCHIVE}"; \ - ${ECHO} ; \ - ${ECHO} " Choose 'Linux self-extracting file' from the 'SDK' column."; \ - ${ECHO} ; \ - ${ECHO} "======================================================================" - .include "../../lang/sun-jre14/Makefile.common" PREFIX= ${JVM_HOME} diff --git a/lang/sun-jre14/Makefile b/lang/sun-jre14/Makefile index 2bade3fadc0..9864e5e55ce 100644 --- a/lang/sun-jre14/Makefile +++ b/lang/sun-jre14/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2003/12/12 15:38:16 jschauma Exp $ +# $NetBSD: Makefile,v 1.14 2003/12/12 17:17:20 jschauma Exp $ DISTNAME= j2re-1_4_2_03-linux-i586 PKGNAME= sun-jre14-2.3 @@ -7,6 +7,8 @@ MASTER_SITES= # empty COMMENT= Sun's Java(tm) 2 Runtime Environment 1.4.2 +SHORT= JRE + USE_PKGINSTALL= yes OWN_DIRS= ${PREFIX} OWN_DIRS+= ${PREFIX}/lib @@ -32,21 +34,6 @@ do-configure: ${MV} -f $$file $$file.default; \ done -_FETCH_MESSAGE= \ - ${ECHO} "======================================================================"; \ - ${ECHO} ; \ - ${ECHO} " The file ${DISTNAME}${EXTRACT_SUFX} containing the"; \ - ${ECHO} " Java(tm) 2 Runtime Environment, Standard Edition must be fetched"; \ - ${ECHO} " into:"; \ - ${ECHO} " ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}"; \ - ${ECHO} " from:"; \ - ${ECHO} " ${DOWNLOAD} or"; \ - ${ECHO} " ${ARCHIVE}"; \ - ${ECHO} ; \ - ${ECHO} " Choose 'Linux self-extracting file' from the 'JRE' column."; \ - ${ECHO} ; \ - ${ECHO} "======================================================================" - .include "../../lang/sun-jre14/Makefile.common" PREFIX= ${JVM_HOME} diff --git a/lang/sun-jre14/Makefile.common b/lang/sun-jre14/Makefile.common index bce8f21550b..dd3683c2acc 100644 --- a/lang/sun-jre14/Makefile.common +++ b/lang/sun-jre14/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.15 2003/12/12 15:38:16 jschauma Exp $ +# $NetBSD: Makefile.common,v 1.16 2003/12/12 17:17:20 jschauma Exp $ CATEGORIES= lang java EXTRACT_SUFX= .bin @@ -35,6 +35,24 @@ LDD= ${TRUE} ONLY_FOR_PLATFORM= NetBSD-1.6[U-Z]*-i386 ONLY_FOR_PLATFORM+= Linux-*-i[3-6]86 +_FETCH_MESSAGE= \ + ${ECHO} "======================================================================"; \ + ${ECHO} ; \ + ${ECHO} " The file ${DISTNAME}${EXTRACT_SUFX} containing"; \ + ${ECHO} " ${COMMENT} must be fetched"; \ + ${ECHO} " into:"; \ + ${ECHO} " ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}"; \ + ${ECHO} " from:"; \ + ${ECHO} " ${DOWNLOAD} or"; \ + ${ECHO} " ${ARCHIVE}"; \ + ${ECHO} ; \ + ${ECHO} " Choose '32-bit/64-bit for Windows/Linux/Solaris SPARC' from"; \ + ${ECHO} " the '${SHORT}' column, accept the license, then choose 'Linux ";\ + ${ECHO} " self-extracting file'."; \ + ${ECHO} ; \ + ${ECHO} "======================================================================" + + post-fetch: @if [ ! -x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \ ${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}; \ |