summaryrefslogtreecommitdiff
path: root/lang/jbuilder-jit/Makefile
blob: 7f0f9f3d4956335ac895492c84648fbf937544fc (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
# $NetBSD: Makefile,v 1.17 2003/12/30 17:27:31 cjep Exp $
#

DISTNAME=	unix_jb35foundation
PKGNAME=	jbuilder-jit-1.2.15
PKGREVISION=	1
WRKSRC=		${WRKDIR}/javacomp-1.2.15
CATEGORIES=     lang java
MASTER_SITES=	http://ftp.cdut.edu.cn/pub2/linux/develop/jbuilder/ \
		http://python.planetmirror.com/ftp/jbuilder/foundation/3.5/linux/ \
		http://planetmirror.com.au/ftp/jbuilder/foundation/3.5/linux/ \
		http://www.au.horde.org/pub/jbuilder/foundation/3.5/linux/

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://www.borland.com/
COMMENT=	Just-In-Time compiler for Linux Java Virtual Machine

USE_JAVA=	run
USE_JAVA2=	yes
PLIST_SUBST+=	JAVADIR=${PKG_JAVA_HOME:C|${PREFIX}/||}

ONLY_FOR_PLATFORM=	NetBSD-*-i386

EXTRACT_ELEMENTS=	LinuxJIT/javacomp-1.2.15.tar.gz

LICENSE=		single-user-license
RESTRICTED=		"Redistribution of binaries not permitted"
NO_BIN_ON_CDROM=	${RESTRICTED}
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}
NO_SRC_ON_FTP=		${RESTRICTED}

NO_BUILD=		yes

post-extract:
	@cd ${WRKDIR} && ${GTAR} -xzf ${EXTRACT_ELEMENTS}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/libjavacomp.so ${WRKSRC}/libjavacomp_g.so \
		${PKG_JAVA_HOME}/lib/i386/
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jbuilder-jit
	${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/jbuilder-jit/README.javacomp
	${INSTALL_DATA} ${WRKSRC}/LICENSE.TXT ${PREFIX}/share/doc/jbuilder-jit/LICENSE.javacomp

.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"