52164fc27e
The Java 2 SDK software includes tools useful for developing and testing programs written in the Java programming language and running on the Java platform. i386-only for now. Requires manual registration/fetch of distfile from Sun due to their restrictions. From maintainer Kurt Miller <truk@optonline.net>
133 lines
3.9 KiB
Makefile
133 lines
3.9 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2004/01/29 22:02:18 pvalchev Exp $
|
|
# $FreeBSD: ports/java/jdk12/Makefile,v 1.11 2002/08/19 20:47:04 glewis Exp $
|
|
|
|
# Requires existing JDK 1.3 to build
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
COMMENT= "Java2(TM) Standard Edition Dev Kit v${V}"
|
|
COMMENT-jre= "Java2(TM) Standard Edition Runtime Environment v${V}"
|
|
V= 1.3.1
|
|
DISTNAME= j2sdk-1_3_1-src
|
|
PKGNAME= jdk-${V}
|
|
PKGNAME-jre= jre-${V}
|
|
|
|
CATEGORIES= devel/jdk java
|
|
|
|
MULTI_PACKAGES= -jre
|
|
|
|
# wwws is not a typo in the following:
|
|
HOMEPAGE= http://wwws.sun.com/software/communitysource/j2se/java2/index.html
|
|
|
|
MAINTAINER= Kurt Miller <truk@optonline.net>
|
|
|
|
DISTFILES= j2sdk-1_3_1-src.tar.gz
|
|
DISTFILES+= bsd-jdk131-patches-9.tar.gz
|
|
|
|
# Sun Community Source License
|
|
# http://www.sun.com/981208/scsl/principles.html
|
|
PERMIT_PACKAGE_CDROM= "SCSL"
|
|
PERMIT_PACKAGE_FTP= "SCSL"
|
|
PERMIT_DISTFILES_CDROM= "SCSL"
|
|
PERMIT_DISTFILES_FTP= "SCSL"
|
|
|
|
# TCK (Technology Compatibility Kit) covered by yet another license...
|
|
NO_REGRESS= yes
|
|
|
|
VMEM_WARNING= Yes
|
|
BUILD_DEPENDS= :gtar-*:archivers/gtar \
|
|
:zip-*:archivers/zip
|
|
RUN_DEPENDS= :zip-*:archivers/zip \
|
|
:ghostscript-fonts-*:print/ghostscript/gnu-fonts
|
|
USE_MOTIF= openmotif
|
|
|
|
USE_GMAKE= Yes
|
|
TAR= ${LOCALBASE}/bin/gtar
|
|
|
|
MAKE_ENV= ALT_MOTIF_DIR="${LOCALBASE}" \
|
|
OPENWINHOME="${X11BASE}" \
|
|
OTHER_CFLAGS="${CFLAGS}" \
|
|
HAVE_DPS="yes"
|
|
|
|
FLAVORS= no_plugin
|
|
PSEUDO_FLAVORS= native_bootstrap
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Mnative_bootstrap}
|
|
BUILD_DEPENDS+= :jdk-1.3*:devel/jdk/1.3
|
|
MAKE_ENV+= ALT_BOOTDIR="${LOCALBASE}/${JDKHOME}" \
|
|
EMUL_CHECK="no"
|
|
.else
|
|
BUILD_DEPENDS+= :jdk-linux-1.3.1*:devel/jdk/1.3-linux
|
|
MAKE_ENV+= ALT_BOOTDIR="${LOCALBASE}/jdk1.3.1-linux" \
|
|
EMUL_CHECK="yes"
|
|
.endif
|
|
|
|
.if !${FLAVOR:L:Mno_plugin}
|
|
LIB_DEPENDS= glib.1::devel/glib \
|
|
gtk.1.2::x11/gtk+ \
|
|
nspr4.1::devel/nspr
|
|
|
|
MAKE_ENV+= LIBG_HDRS="${LOCALBASE}/include/glib-1.2" \
|
|
GTK_HDRS="${LOCALBASE}/include/gtk-1.2" \
|
|
LIBIDL_HDRS= \
|
|
INTL_DIR="${LOCALBASE}" \
|
|
BUILD_NUMBER="`whoami`-`date '+%Y-%m-%d-%H:%M'`"
|
|
|
|
ALL_TARGET= all plugin images
|
|
.else
|
|
#no plugin - no messages
|
|
MESSAGE= /dev/null
|
|
|
|
MAKE_ENV+= BUILD_NUMBER="`whoami`-`date '+%Y-%m-%d-%H:%M'`-no_plugin"
|
|
|
|
ALL_TARGET= all images
|
|
.endif
|
|
|
|
# Error message for distfile.
|
|
FETCH_MANUALLY= "You must manually fetch the source distribution"
|
|
FETCH_MANUALLY+="and BSD patches:"
|
|
.for file in ${DISTFILES}
|
|
FETCH_MANUALLY+=" ${file}"
|
|
.endfor
|
|
FETCH_MANUALLY+="from http://www.sun.com/software/java2/download.html"
|
|
FETCH_MANUALLY+="and http://www.eyesbeyond.com/freebsddom/java/jdk.html,"
|
|
FETCH_MANUALLY+="place it in ${FULLDISTDIR} and then run make again."
|
|
|
|
JDKHOME= jdk-${V}
|
|
JREHOME= jre-${V}
|
|
|
|
SUBST_VARS= JDKHOME JREHOME
|
|
|
|
# Deal with Sun's internal build structure
|
|
WRKDIST= ${WRKDIR}
|
|
WRKSRC= ${WRKDIR}/j2sdk1.3.1/make
|
|
JDKIMAGEDIR= ${WRKDIR}/j2sdk1.3.1/build/bsd-${ARCH}/jdk-image-${ARCH}
|
|
JDKIMAGEDIR_G= ${WRKDIR}/j2sdk1.3.1/build/bsd-${ARCH}/jdk-debug-image-${ARCH}
|
|
JREIMAGEDIR= ${WRKDIR}/j2sdk1.3.1/build/bsd-${ARCH}/jre-image-${ARCH}
|
|
CACERTSDIR= ${WRKDIR}/j2sdk1.3.1/src/share/lib/security
|
|
MANPAGEDIR= ${JDKIMAGEDIR}/man/man1
|
|
|
|
MANPAGES= appletviewer.1 extcheck.1 jar.1 jarsigner.1 java.1 javac.1 \
|
|
javadoc.1 javah.1 javap.1 jdb.1 keytool.1 native2ascii.1 \
|
|
rmic.1 rmid.1 rmiregistry.1 serialver.1 tnameserv.1
|
|
|
|
pre-patch:
|
|
@cp -f ${FILESDIR}/cacerts ${CACERTSDIR}
|
|
@cd ${WRKDIR} && \
|
|
${CHMOD} -R u+w * && \
|
|
${PATCH} -p0 < ${WRKDIR}/jdk131.patches
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${JDKHOME}
|
|
cd ${JDKIMAGEDIR} && tar -cf - * | tar -C ${PREFIX}/${JDKHOME} -xf -
|
|
cd ${JDKIMAGEDIR_G} && tar -cf - * | tar -C ${PREFIX}/${JDKHOME} -xf -
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${JREHOME}
|
|
cd ${JREIMAGEDIR} && tar -cf - * | tar -C ${PREFIX}/${JREHOME} -xf -
|
|
cd ${PREFIX}/${JDKHOME}/include && ln -s openbsd/* .
|
|
cd ${PREFIX}/${JDKHOME}/include-old && ln -s openbsd/* .
|
|
.for i in ${MANPAGES}
|
|
${INSTALL_MAN} ${MANPAGEDIR}/$i ${PREFIX}/man/man1/${i:T:R}.1
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|