summaryrefslogtreecommitdiff
path: root/www/icedtea-web/Makefile
blob: 35b61e76154c9806811adffd36da7b0fe5d83698 (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
# $NetBSD: Makefile,v 1.26 2013/09/02 19:51:29 adam Exp $
#

DISTNAME=	icedtea-web-9e1f7dc48c20
PKGNAME=	icedtea-web-1.5pre
PKGREVISION=	4
CATEGORIES=	www
MASTER_SITES=	-http://icedtea.classpath.org/hg/icedtea-web/archive/9e1f7dc48c20.tar.bz2
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://icedtea.classpath.org/
COMMENT=	Java browser plugin and Web Start launcher
#LICENSE=	# GPL2 + Classpath exception

GNU_CONFIGURE=		yes
USE_LANGUAGES+=		c c++
USE_TOOLS+=		autoconf automake gmake gsed perl pkg-config zip

REPLACE_PERL=		javac.in

CONFIGURE_ARGS+=	--with-jdk-home=${PREFIX}/java/openjdk7
CONFIGURE_ARGS+=	--with-rhino=${PREFIX}/java/openjdk7/jre/lib/rhino.jar
CONFIGURE_ARGS+=	--disable-docs

MAKE_ENV+=		BOOT_DIR=${PREFIX}/java/openjdk7

pre-configure:
	cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} autoreconf -if


INSTALLATION_DIRS+=		lib/netscape/plugins

post-install:
	cd ${DESTDIR}/${PREFIX}/lib/netscape/plugins && \
		${LN} -s ../../IcedTeaPlugin.so IcedTeaPlugin.so
	${RM} -r ${DESTDIR}/${PREFIX}/bin ${DESTDIR}/${PREFIX}/man

BUILDLINK_API_DEPENDS.xulrunner17+=       xulrunner17>=17.0.6nb1
.include "../../devel/xulrunner17/buildlink3.mk"
BUILDLINK_API_DEPENDS.openjdk7+=       openjdk7>=1.7.0.147
.include "../../lang/openjdk7/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"