ac6a7d3a2b
pathnames in there. + Treat libXm separately from the rest of the libs, since (a) it needs a separate "intermediate" symlink as well, even for ELF libs, and (b) it uses a completely different version number from the rest of the libs, for obvious reasons
74 lines
1.8 KiB
Makefile
74 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.23 2001/02/09 17:48:39 agc Exp $
|
|
#
|
|
|
|
VERSION= 1.1.8
|
|
PKGNAME= jdk-${VERSION}
|
|
CATEGORIES= lang
|
|
MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/java/i386/${VERSION}/ \
|
|
ftp://ftp.de.netbsd.org/pub/NetBSD/misc/java/i386/${VERSION}/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= jwise@netbsd.org
|
|
HOMEPAGE= http://www.quick.com.au/java/
|
|
|
|
CONFLICTS= blackdown-j* sun-j*
|
|
|
|
LICENSE= jdk-license
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !defined(JDK_HOME)
|
|
JDK_HOME:= ${LOCALBASE}/java
|
|
.endif
|
|
MESSAGE_SUBST+= JDK_HOME=${JDK_HOME}
|
|
|
|
.if ${OBJECT_FMT} == "ELF"
|
|
DISTNAME= jdk${VERSION}-rc1-elf
|
|
WRKSRC= ${WRKDIR}/jdk${VERSION}-elf
|
|
PLIST_SRC= ${PKGDIR}/PLIST-elf
|
|
.else
|
|
DISTNAME= jdk${VERSION}-rc1
|
|
WRKSRC= ${WRKDIR}/jdk${VERSION}
|
|
PLIST_SRC= ${PKGDIR}/PLIST-aout
|
|
.endif
|
|
PLIST_SRC+= ${PKGDIR}/PLIST
|
|
|
|
CHECK_SHLIBS= no
|
|
NO_BUILD= yes
|
|
# since we change PREFIX:
|
|
NO_MTREE= yes
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386
|
|
RESTRICTED= "No redistribution of the Java(tm) Development Kit"
|
|
NO_SRC_ON_CDROM= ${RESTRICTED}
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
|
NO_SRC_ON_FTP= ${RESTRICTED}
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
|
|
.if ${OBJECT_FMT} == "ELF"
|
|
# This gross hack normalizes the shlib names so that automatic
|
|
# shared library handling will work.
|
|
pre-install:
|
|
@(cd ${WRKSRC}/lib/i386/green_threads; \
|
|
${LN} -s libXm.so libXm.so.2; \
|
|
for X in lib*.so ;do \
|
|
if [ "$X" = "libXm.so" ]; then continue; fi; \
|
|
if [ -f $$X.* ] ;then \
|
|
${MV} $$X $$X.* ; \
|
|
${LN} -s $$X.* $$X; \
|
|
elif [ -f "$$X" ] ;then \
|
|
${MV} $$X $$X.${VERSION} ; \
|
|
${LN} -s $$X.${VERSION} $$X; \
|
|
fi ; \
|
|
done)
|
|
.endif
|
|
|
|
do-install:
|
|
${RM} -f ${WRKSRC}/*.orig
|
|
${MKDIR} ${JDK_HOME}
|
|
cd ${WRKSRC} ; ${GTAR} pcf - . | ( cd ${JDK_HOME} ; ${GTAR} pvxf - )
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
# This needs to be after bsd.pkg.mk
|
|
PREFIX:= ${JDK_HOME}
|