- Generate distfiles directly from pkg-plist. This list was compiled from running "ktrace -i -tn make" on openjdk6 and openjdk7 ports. - Re-add jre/bin/java to work around a bug in openjdk7 build infrastructure. It is not really necessary but langtools fails to build without it because langtools/make/tools/GenStubs/GenStubs.java executes it based on java.home property, which points to jre subdirectory. Note this problem only exists on recent jdk7 langtools and jdk6 and jdk8 are not affected. Feature safe: yes
60 lines
1.4 KiB
Makefile
60 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= ${JDK_NAME}
|
|
PORTVERSION= ${DISTVERSION_${ARCH}}
|
|
CATEGORIES= java devel
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
|
http://people.freebsd.org/~jkim/
|
|
MASTER_SITE_SUBDIR= jkim
|
|
PKGNAMEPREFIX= bootstrap-
|
|
DISTNAME= ${JDK_PORT}-${ARCH}-${PORTVERSION}
|
|
|
|
MAINTAINER= jkim@FreeBSD.org
|
|
COMMENT= Oracle's Java 6 virtual machine release under the GPL v2
|
|
|
|
LICENSE= GPLv2
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/java/zi:${PORTSDIR}/java/java-zoneinfo
|
|
|
|
ONLY_FOR_ARCH= amd64 i386
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/distinfo.${ARCH}
|
|
DISTVERSION_amd64= r306764
|
|
DISTVERSION_i386= r306764
|
|
|
|
JDK_NAME= openjdk
|
|
JDK_PORT= openjdk6
|
|
JDK_ROOT= bootstrap-${JDK_NAME}
|
|
|
|
NO_BUILD= yes
|
|
PLIST_SUB= ARCH=${ARCH} JDK_NAME=${JDK_NAME} JDK_ROOT=${JDK_ROOT}
|
|
USE_XZ= yes
|
|
WRKSRC= ${WRKDIR}/${JDK_ROOT}
|
|
|
|
INSTALLDIR= ${PREFIX}/${JDK_ROOT}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 800105
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/compat/libz.so.4:${PORTSDIR}/misc/compat7x
|
|
.endif
|
|
|
|
.if ${ARCH} == "i386"
|
|
PLIST_SUB+= CLIENTVM=""
|
|
.else
|
|
PLIST_SUB+= CLIENTVM="@comment "
|
|
.endif
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${INSTALLDIR}
|
|
@${CHOWN} ${BINOWN}:${BINGRP} ${INSTALLDIR}/bin/* ${INSTALLDIR}/jre/bin/*
|
|
@${CHMOD} ${BINMODE} ${INSTALLDIR}/bin/* ${INSTALLDIR}/jre/bin/*
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
update:
|
|
@${MAKE} -f ${.CURDIR}/Makefile.update \
|
|
JDK_NAME=${JDK_NAME} JDK_PORT=${JDK_PORT} JDK_ROOT=${JDK_ROOT}
|
|
|
|
.include <bsd.port.post.mk>
|