summaryrefslogtreecommitdiffstats
path: root/java/java-gcj-compat/Makefile
blob: 3e3b767e0d392c352735935125be0ed532ea1a82 (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
# New ports collection makefile for:	java-gcj-compat
# Date created:				29 July 2006
# Whom:					<maho@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	java-gcj-compat
PORTVERSION=	1.0.56 # =< requires gcc-4.2 (HEAD)
PORTREVISION=	3
CATEGORIES=	java devel
MASTER_SITES=	ftp://sources.redhat.com/pub/rhug/

MAINTAINER=	maho@FreeBSD.org
COMMENT=	A collection of wrapper scripts, symlinks and jar files for GCJ

BUILD_DEPENDS+= ${LOCALBASE}/libdata/ldconfig/gcc41-withgcjawt:${PORTSDIR}/lang/gcc41-withgcjawt
BUILD_DEPENDS+= gjdoc:${PORTSDIR}/java/gjdoc
BUILD_DEPENDS+= ecj:${PORTSDIR}/java/ecj-bootstrap

RUN_DEPENDS+= ${LOCALBASE}/libdata/ldconfig/gcc41-withgcjawt:${PORTSDIR}/lang/gcc41-withgcjawt
RUN_DEPENDS+= gjdoc:${PORTSDIR}/java/gjdoc
RUN_DEPENDS+= ecj:${PORTSDIR}/java/ecj-bootstrap

GCJVER=41
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_PYTHON=	yes
PLIST_SUB=	ARCH=${ARCH}
CONFIGURE_ARGS+="-with-origin-name=gcj41" "--with-gcc-suffix=41" \
		"--with-arch-directory=${ARCH}" "--disable-symlinks" \
		"--with-classpath-security=${LOCALBASE}/lib/security/classpath.security" \
		"--with-security-directory=${LOCALBASE}/etc/java/security/security.d"

pre-configure:
	@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e "s|%%GCCSUFFIX%%|${GCJVER}|" ${WRKSRC}/java.c

post-install:
	@${LN} -sf ${PREFIX}/lib/jvm/java-1.4.2-gcj41-1.4.2.0 ${PREFIX}/lib/jvm/java-gcj
	@${LN} -sf ${LOCALBASE}/bin/gcj${GCJVER} ${PREFIX}/lib/jvm/java-gcj/bin/gcj
	@${LN} -sf ${LOCALBASE}/bin/gij${GCJVER} ${PREFIX}/lib/jvm/java-gcj/bin/gij
	@${LN} -sf ${LOCALBASE}/bin/gcj-dbtool${GCJVER} ${PREFIX}/lib/jvm/java-gcj/bin/gcj-dbtool
	@${LN} -sf ${LOCALBASE}/bin/gjdoc ${PREFIX}/lib/jvm/java-gcj/bin/gjdoc

.include <bsd.port.mk>
OpenPOWER on IntegriCloud