mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
d4f0d0048a
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}. - Bump PORTREVISION for ports intalling files in ${X11BASE}.
49 lines
1.9 KiB
Makefile
49 lines
1.9 KiB
Makefile
# 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= 5
|
|
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+= javavm:${PORTSDIR}/java/javavmwrapper
|
|
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=gcj${GCJVER}" "--with-gcc-suffix=${GCJVER}" \
|
|
"--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-gcj${GCJVER}-1.4.2.0 ${PREFIX}/lib/jvm/java-gcj${GCJVER}
|
|
@${LN} -sf ${LOCALBASE}/bin/gcj${GCJVER} ${PREFIX}/lib/jvm/java-gcj${GCJVER}/bin/gcj
|
|
@${LN} -sf ${LOCALBASE}/bin/gij${GCJVER} ${PREFIX}/lib/jvm/java-gcj${GCJVER}/bin/gij
|
|
@${LN} -sf ${LOCALBASE}/bin/gcj-dbtool${GCJVER} ${PREFIX}/lib/jvm/java-gcj${GCJVER}/bin/gcj-dbtool
|
|
@${LN} -sf ${LOCALBASE}/bin/gjdoc ${PREFIX}/lib/jvm/java-gcj${GCJVER}/bin/gjdoc
|
|
@${LOCALBASE}/bin/registervm "${PREFIX}/lib/jvm/java-1.4.2-gcj${GCJVER}-1.4.2.0/bin/java # GCJ${GCJVER}"
|
|
|
|
.include <bsd.port.mk>
|