Some changes to make this work well on Linux:

- For this package i[3-6]86 can be set equal with i386, allowing us to specify
  the download site using MACHINE_ARCH.
- Enable for platform Linux-*-i[3-6]86
- Don't display MESSAGE about requiring COMPAT_LINUX when on linux:
   => move MESSAGE to MESSAGE.NetBSD
This commit is contained in:
jschauma 2002-09-03 21:44:08 +00:00
parent 144e45523e
commit f3ac7a5e3e
3 changed files with 13 additions and 4 deletions

View file

@ -1,5 +1,5 @@
==============================================================================
$NetBSD: MESSAGE,v 1.2 2002/07/27 22:45:08 jschauma Exp $
$NetBSD: MESSAGE.NetBSD,v 1.1 2002/09/03 21:44:09 jschauma Exp $
The Blackdown JDK requires COMPAT_LINUX in your kernel.

View file

@ -1,5 +1,5 @@
==============================================================================
$NetBSD: MESSAGE,v 1.1.1.1 2002/07/27 22:39:50 jschauma Exp $
$NetBSD: MESSAGE.NetBSD,v 1.1 2002/09/03 21:44:11 jschauma Exp $
The Blackdown JRE requires COMPAT_LINUX in your kernel.

View file

@ -1,10 +1,15 @@
# $NetBSD: Makefile.common,v 1.2 2002/07/28 12:31:35 schmonz Exp $
# $NetBSD: Makefile.common,v 1.3 2002/09/03 21:44:12 jschauma Exp $
#
RELVERSION= 1.3.1
RELNAME= ${RELVERSION}-02b-FCS-linux
EXTNAME= ${BASENAME}-${RELNAME}
EXTRACT_SUFX= .bin
.if ${MACHINE_ARCH:Mi[3-6]86} != ""
MACHINE_ARCH=i386
.endif
.if ${MACHINE_ARCH} == "arm"
MASTER_SITES= \
ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/JDK-1.3.1/arm/rc1/ \
@ -53,7 +58,7 @@ NO_MTREE= yes
PLIST_SUBST+= RELVERSION=${RELVERSION}
ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-powerpc NetBSD-*-sparc \
Linux-*-i386 Linux-*-powerpc Linux-*-sparc
Linux-*-i[3-6]86 Linux-*-powerpc Linux-*-sparc
.if ${MACHINE_ARCH} != "arm"
EXTRACT_CMD= ${ECHO} yes | ${DISTDIR}/${DISTFILES} --nox11 > /dev/null
@ -61,6 +66,10 @@ post-fetch:
@${CHMOD} +x ${DISTDIR}/${DISTFILES}
.endif
.if ${OPSYS} == "NetBSD"
MESSAGE_SRC= ${PKGDIR}/MESSAGE.${OPSYS}
.endif
post-patch:
@${FIND} ${WRKSRC} -name '*.orig' -print | ${XARGS} ${RM} -f
@${FIND} ${WRKSRC} -name '*.1.gz' -print | ${XARGS} ${GUNZIP_CMD}