summaryrefslogtreecommitdiff
path: root/www/icedtea-web/Makefile
blob: 2ab3adbdac70787e4806909ae20d927aac45c4b0 (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
# $NetBSD: Makefile,v 1.45 2016/08/03 10:23:32 adam Exp $

# Keep icedtea-web distfile in sync with lang/openjdk7/icedtea-extras.mk
DISTNAME=	icedtea-web-1.5.2
PKGREVISION=	7
CATEGORIES=	www
MASTER_SITES=	http://icedtea.wildebeest.org/download/source/

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

EXTRACT_USING=	gtar

GNU_CONFIGURE=		yes
USE_LANGUAGES=		c c++
USE_TOOLS+=		autoconf automake bash:run gmake gsed perl pkg-config zip
LICENSE=		gnu-gpl-v2

REPLACE_PERL=		javac.in
REPLACE_BASH=		launcher/launchers.in

CONFIGURE_ENV+=		ac_cv_path_BIN_BASH=${BASH:Q}

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

.if !empty(PKG_JVM:Mopenjdk8)
MAKE_ENV+=		BOOT_DIR=${PREFIX}/java/openjdk8
CONFIGURE_ARGS+=	--with-jdk-home=${PREFIX}/java/openjdk8
# XXX openjdk8 has nashorn instead of rhino. Do we need to ship a local copy of rhino here?
#CONFIGURE_ARGS+=	--with-rhino=${PREFIX}/java/openjdk8/jre/lib/rhino.jar
BUILDLINK_API_DEPENDS.openjdk8+=	openjdk8-[0-9]*
.include "../../lang/openjdk8/buildlink3.mk"
.else
MAKE_ENV+=		BOOT_DIR=${PREFIX}/java/openjdk7
CONFIGURE_ARGS+=	--with-jdk-home=${PREFIX}/java/openjdk7
CONFIGURE_ARGS+=	--with-rhino=${PREFIX}/java/openjdk7/jre/lib/rhino.jar
BUILDLINK_API_DEPENDS.openjdk7+=openjdk7>=1.7.76nb3
.include "../../lang/openjdk7/buildlink3.mk"
.endif
CONFIGURE_ARGS+=	--disable-docs

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

.include "../../devel/xulrunner45/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"