summaryrefslogtreecommitdiff
path: root/www/icedtea-web/Makefile
blob: 31813a8b01abe89d3067e31495b722b052854586 (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
# $NetBSD: Makefile,v 1.3 2011/11/01 06:02:46 sbd Exp $
#

DISTNAME=	61e08e67b176
PKGNAME=	icedtea-web-1.2pre
PKGREVISION=	1
CATEGORIES=	www
MASTER_SITES=	http://icedtea.classpath.org/hg/icedtea-web/archive/
EXTRACT_SUFX=	.tar.bz2

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

PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=		yes
USE_LANGUAGES+=		c c++
USE_TOOLS+=		autoconf automake gmake pkg-config zip
WRKSRC=			${WRKDIR}/icedtea-web-${DISTNAME}

CONFIGURE_ARGS+=	 --with-jdk-home=${PREFIX}/java/openjdk7

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

do-build:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${WRKSRC}/plugin/icedteanp/IcedTeaPlugin.so launcher.build/javaws

INSTALLATION_DIRS+=		bin lib/netscape/plugins

do-install:
	${INSTALL_LIB} ${WRKSRC}/plugin/icedteanp/IcedTeaPlugin.so ${DESTDIR}${PREFIX}/lib/netscape/plugins
	${INSTALL_SCRIPT} ${WRKSRC}/launcher.build/javaws ${DESTDIR}${PREFIX}/bin

BUILDLINK_API_DEPENDS.xulrunner+=       xulrunner>=5.0
.include "../../devel/xulrunner/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"