2005-05-10 03:55:39 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.24 2005/05/10 01:55:39 jschauma Exp $
|
2002-07-27 23:54:30 +02:00
|
|
|
|
|
|
|
# MASTER_SITES is very special, and must end in "=":
|
2003-08-23 17:13:56 +02:00
|
|
|
CATEGORIES= lang java
|
2002-07-27 23:54:30 +02:00
|
|
|
EXTRACT_SUFX= .bin
|
|
|
|
|
2003-07-17 23:41:05 +02:00
|
|
|
MAINTAINER= jschauma@NetBSD.org
|
2002-07-27 23:54:30 +02:00
|
|
|
HOMEPAGE= http://java.sun.com/
|
2003-01-29 12:10:19 +01:00
|
|
|
DOWNLOAD= http://java.sun.com/j2se/1.3/download.html
|
2004-01-10 20:12:51 +01:00
|
|
|
ARCHIVE= http://java.sun.com/products/archive/index.html
|
2002-07-27 23:54:30 +02:00
|
|
|
|
|
|
|
EXTRACT_CMD= ${ECHO} yes | ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} >/dev/null
|
|
|
|
|
|
|
|
LICENSE= jdk13-license
|
|
|
|
RESTRICTED= "Redistribution of repackaged binaries not permitted"
|
|
|
|
NO_SRC_ON_CDROM=${RESTRICTED}
|
|
|
|
NO_SRC_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_CDROM=${RESTRICTED}
|
|
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
|
|
|
2003-02-05 04:37:44 +01:00
|
|
|
INTERACTIVE_STAGE= fetch
|
|
|
|
|
2002-07-27 23:54:30 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2002-07-28 15:16:46 +02:00
|
|
|
.if ${OPSYS} == "Darwin"
|
2004-05-22 23:22:59 +02:00
|
|
|
JAVA_HOME= /usr
|
2002-07-28 15:16:46 +02:00
|
|
|
.else
|
2004-05-22 23:22:59 +02:00
|
|
|
JAVA_HOME= ${LOCALBASE}/java/sun-1.3.1
|
|
|
|
JAVA_NAME= sun13
|
2002-07-28 15:16:46 +02:00
|
|
|
.endif
|
2002-07-27 23:54:30 +02:00
|
|
|
|
|
|
|
.if ${OPSYS} == "Darwin"
|
2002-07-28 13:57:41 +02:00
|
|
|
DISTFILES= # empty
|
2003-01-29 12:10:19 +01:00
|
|
|
NO_PATCH= yes
|
|
|
|
NO_CONFIGURE= yes
|
|
|
|
NO_BUILD= yes
|
2002-07-28 13:57:41 +02:00
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST.Darwin
|
2002-07-27 23:54:30 +02:00
|
|
|
.endif
|
|
|
|
|
2002-10-13 09:45:30 +02:00
|
|
|
.if ${OPSYS} == "Linux"
|
2003-01-29 12:10:19 +01:00
|
|
|
NO_PATCH= yes # no need for patches on Linux
|
2002-10-13 09:45:30 +02:00
|
|
|
.endif
|
2002-07-27 23:54:30 +02:00
|
|
|
|
2003-01-29 12:10:19 +01:00
|
|
|
NO_MTREE= yes # since we change PREFIX
|
2002-10-13 09:45:30 +02:00
|
|
|
LDD= ${TRUE}
|
|
|
|
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i[3-6]86 Darwin-*-*
|
2002-07-27 23:54:30 +02:00
|
|
|
|
2004-01-02 17:56:01 +01:00
|
|
|
_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:"; \
|
2004-06-15 14:00:09 +02:00
|
|
|
${ECHO} " ${DOWNLOAD}"; \
|
|
|
|
${ECHO} " or ${ARCHIVE}"; \
|
2004-01-02 17:56:01 +01:00
|
|
|
${ECHO} ; \
|
|
|
|
${ECHO} " Choose 'Windows/Linux/Solaris SPARC/Solaris x86' from"; \
|
|
|
|
${ECHO} " the '${SHORT}' column, accept the license, then choose 'Linux ";\
|
2004-01-11 20:41:39 +01:00
|
|
|
${ECHO} " self-extracting file'."; \
|
2004-01-02 17:56:01 +01:00
|
|
|
${ECHO} ; \
|
|
|
|
${ECHO} "======================================================================"
|
|
|
|
|
|
|
|
|
2002-10-13 09:45:30 +02:00
|
|
|
.if ${OPSYS} != "Darwin"
|
2002-07-27 23:54:30 +02:00
|
|
|
post-fetch:
|
2002-11-07 01:22:54 +01:00
|
|
|
@if [ ! -x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
|
|
|
|
${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}; \
|
|
|
|
fi
|
2002-10-13 09:45:30 +02:00
|
|
|
.endif
|
|
|
|
|
2003-01-29 12:10:19 +01:00
|
|
|
do-build: # nothing
|
|
|
|
|
2002-10-13 09:45:30 +02:00
|
|
|
post-build:
|
|
|
|
${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
|
2002-07-27 23:54:30 +02:00
|
|
|
|
2002-10-13 09:45:30 +02:00
|
|
|
.if ${OPSYS} == "Darwin"
|
|
|
|
do-install:
|
|
|
|
@${ECHO_MSG} "Darwin ships with a JRE/JDK based on Sun's 1.3.1 release."
|
|
|
|
.else
|
2002-07-27 23:54:30 +02:00
|
|
|
do-install:
|
2004-05-22 23:22:59 +02:00
|
|
|
${INSTALL_PROGRAM_DIR} ${JAVA_HOME}
|
|
|
|
cd ${WRKSRC} && ${PAX} -rwp ma . ${JAVA_HOME}
|
2002-07-27 23:54:30 +02:00
|
|
|
.endif
|
|
|
|
|
2003-03-26 05:05:37 +01:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
2002-10-13 09:45:30 +02:00
|
|
|
. include "../../emulators/suse_linux/Makefile.application"
|
2005-05-10 03:55:39 +02:00
|
|
|
. if ${SUSE_DIR_PREFIX} == "suse91"
|
|
|
|
DEPENDS+= suse_locale-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_locale
|
|
|
|
. endif
|
|
|
|
DEPENDS+= suse_compat-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_compat
|
|
|
|
DEPENDS+= suse_x11-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_x11
|
2002-09-03 21:26:41 +02:00
|
|
|
.endif
|
|
|
|
|
2004-05-22 23:22:59 +02:00
|
|
|
.include "../../mk/java-env.mk"
|
2003-03-26 05:05:37 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|