summaryrefslogtreecommitdiff
path: root/lang/blackdown-jre13/Makefile.common
blob: 8ae7d62f9ecec6f27dba81728b706a26117bb358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# $NetBSD: Makefile.common,v 1.31 2008/03/04 16:38:11 jlam Exp $
#

RELVERSION=	1.3.1
BLACKDOWN_REL=	FCS-02b
RELNAME=	${RELVERSION}-02b-FCS-linux
EXTNAME=	${BD_BASENAME}-${RELNAME}
CATEGORIES=	lang java
EXTRACT_SUFX=	.bin

BD_SUBDIR=	JDK-${RELVERSION}/${BLACKDOWN_ARCH}/${BLACKDOWN_REL}
MASTER_SITES=	ftp://ftp.tux.org/pub/java/${BD_SUBDIR}/ \
		ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/${BD_SUBDIR}/ \
		ftp://mirror.aarnet.edu.au/pub/java-linux/${BD_SUBDIR}/ \
		ftp://ftp.informatik.hu-berlin.de/pub/Java/Linux/${BD_SUBDIR}/

EMUL_PLATFORMS+=	linux-i386 linux-powerpc linux-sparc
EMUL_MODULES.linux+=	base
EMUL_REQD=		suse>=7.3

PKG_DESTDIR_SUPPORT=	user-destdir

.include "../../mk/bsd.prefs.mk"

BLACKDOWN_ARCH.${EMUL_ARCH}=	${EMUL_ARCH}
BLACKDOWN_ARCH.powerpc=		ppc
BLACKDOWN_ARCH=			${BLACKDOWN_ARCH.${EMUL_ARCH}}

MAINTAINER=		tech-pkg@NetBSD.org
HOMEPAGE=		http://www.blackdown.org/

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}

WRKSRC=			${WRKDIR}/${BD_BASENAME}${RELVERSION}
BUILD_DIRS=		# empty

JVM_HOME=		${PREFIX}/java/blackdown-${RELVERSION}
USE_TOOLS+=		gunzip

PLIST_SUBST+=		BLACKDOWN_ARCH=${BLACKDOWN_ARCH:Q}

.if ${EXTRACT_SUFX} == ".bin"
EXTRACT_OPTS_BIN=	--nox11
post-fetch:
	@if [ ! -x ${DISTDIR}/${DISTFILES} ]; then			\
		${CHMOD} +x ${DISTDIR}/${DISTFILES};			\
	fi
.endif

post-build:
	${FIND} ${WRKSRC} -name '*.orig' -print | ${XARGS} ${RM} -f
	${FIND} ${WRKSRC} -name '*.1.gz' -print | ${XARGS} ${GUNZIP_CMD}

do-install:
	${INSTALL_PROGRAM_DIR} ${DESTDIR}${JVM_HOME}
	cd ${WRKSRC} && ${PAX} -rw . ${DESTDIR}${JVM_HOME}