65 lines
2.1 KiB
Makefile
65 lines
2.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.34 2007/09/16 02:52:59 merdely Exp $
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
COMMENT= Java Development Kit for Java 2 Standard Edition 1.3
|
|
VERSION= 1.3.1_19
|
|
|
|
DISTNAME= jdk${VERSION}
|
|
PKGNAME= jdk-linux-${VERSION}
|
|
CATEGORIES= devel java
|
|
|
|
HOMEPAGE= http://java.sun.com/j2se/
|
|
MAINTAINER= Christian Edward Gruber <cgruber@israfil.net>
|
|
|
|
RUN_DEPENDS= :fedora_base->=4.0p2:emulators/fedora/base
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
DISTFILES= j2sdk-${VERSION:S/./_/g}-linux-i586.bin
|
|
EXTRACT_CASES+= *.bin) \
|
|
perl -p0777 -e "s/.*?exit 0\n//s" ${FULLDISTDIR}/$$archive > ${WRKDIR}/$$archive && \
|
|
chmod u+x ${WRKDIR}/$$archive && \
|
|
${WRKDIR}/$$archive -q ;; \
|
|
|
|
PERMIT_PACKAGE_CDROM= Redistribution not permitted
|
|
PERMIT_PACKAGE_FTP= Redistribution not permitted
|
|
PERMIT_DISTFILES_CDROM= Redistribution not permitted
|
|
PERMIT_DISTFILES_FTP= Redistribution not permitted
|
|
|
|
NO_BUILD= Yes
|
|
NO_REGRESS= Yes
|
|
|
|
FETCH_MANUALLY = " You must fetch the distfile for this port manually"
|
|
FETCH_MANUALLY+= " after agreeing to the license agreement at"
|
|
FETCH_MANUALLY+= ""
|
|
FETCH_MANUALLY+= " http://java.sun.com/j2se/1.3/download.html or"
|
|
FETCH_MANUALLY+= " http://java.sun.com/products/archive/"
|
|
FETCH_MANUALLY+= ""
|
|
FETCH_MANUALLY+= " Choose the '* Linux self-extracting file' option and place"
|
|
FETCH_MANUALLY+= " ${DISTFILES} into ${FULLDISTDIR}."
|
|
|
|
JDK_HOME= ${PREFIX}/jdk1.3.1-linux
|
|
SYSCTL= ${SUDO} sysctl -w kern.emul.linux
|
|
SYSTRACE_SUBST_VARS=WRKSRC
|
|
|
|
pre-extract:
|
|
@sysctl -n kern.emul.linux > ${WRKDIR}/.emul_linux
|
|
@${SYSCTL}=1
|
|
|
|
# Add OpenBSD resource bundle for javah
|
|
post-patch:
|
|
@mkdir -p ${WRKSRC}/lib/com/sun/tools/javah/resources
|
|
@touch ${WRKSRC}/lib/com/sun/tools/javah/resources/OpenBSD_i386.properties
|
|
@${WRKSRC}/bin/jar -0uvf ${WRKSRC}/lib/tools.jar -C ${WRKSRC}/lib \
|
|
com/sun/tools/javah/resources/OpenBSD_i386.properties
|
|
@${SYSCTL}=`cat ${WRKDIR}/.emul_linux`
|
|
|
|
pre-install:
|
|
@${INSTALL_DATA_DIR} ${JDK_HOME}
|
|
|
|
do-install:
|
|
@cp -Rp ${WRKDIST}/* ${JDK_HOME}
|
|
@chown -R ${BINOWN}:${BINGRP} ${JDK_HOME}
|
|
@find ${JDK_HOME} -type l | xargs chown -h ${BINOWN}:${BINGRP}
|
|
|
|
.include <bsd.port.mk>
|