diff options
author | bapt <bapt@FreeBSD.org> | 2014-04-07 06:48:52 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-04-07 06:48:52 +0800 |
commit | 756efb5678f66392181a0bc0a25ea766a9c4c657 (patch) | |
tree | 6e6c1a9b87f5284b07d334b53c2d4f9da5f4ed13 /java/openjdk7 | |
parent | 411254efe8a2ac0647d20ae4184a4efff9f3b06a (diff) | |
download | freebsd-ports-gnome-756efb5678f66392181a0bc0a25ea766a9c4c657.tar.gz freebsd-ports-gnome-756efb5678f66392181a0bc0a25ea766a9c4c657.tar.zst freebsd-ports-gnome-756efb5678f66392181a0bc0a25ea766a9c4c657.zip |
Support stage
Use options helpers
Modernise LIB_DEPENDS
use pax instead of copytree_share to install, this allows preserving the modes and thus avoid playing with ${CHMOD}
Diffstat (limited to 'java/openjdk7')
-rw-r--r-- | java/openjdk7/Makefile | 55 |
1 files changed, 15 insertions, 40 deletions
diff --git a/java/openjdk7/Makefile b/java/openjdk7/Makefile index b7ea454d72cb..721d7f516a80 100644 --- a/java/openjdk7/Makefile +++ b/java/openjdk7/Makefile @@ -26,7 +26,7 @@ LICENSE= GPLv2 WRKSRC= ${WRKDIR}/${PORTNAME} -USES= iconv gmake zip +USES= dos2unix iconv gmake zip USE_XORG+= x11 xext xi xrender xt xtst MAKE_ARGS= CC=${CC} CXX=${CXX} HOST_CC=${CC} MAKE_JOBS_UNSAFE= yes @@ -52,15 +52,15 @@ ANT_DISTFILE= apache-ant-${ANT_VERSION}-bin LATEST_LINK= openjdk7 -LIB_DEPENDS+= freetype:${PORTSDIR}/print/freetype2 \ - asound:${PORTSDIR}/audio/alsa-lib +LIB_DEPENDS+= libfreetype.so:${PORTSDIR}/print/freetype2 \ + libasound.so:${PORTSDIR}/audio/alsa-lib BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip \ ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip \ ${LOCALBASE}/include/cups/cups.h:${PORTSDIR}/print/cups-client RUN_DEPENDS+= javavm:${PORTSDIR}/java/javavmwrapper \ ${LOCALBASE}/lib/X11/fonts/dejavu:${PORTSDIR}/x11-fonts/dejavu -USE_DOS2UNIX= jdk/src/share/classes/com/sun/org/apache/xml/internal/security/resource/xmlsecurity_en.properties +DOS2UNIX_FILES= jdk/src/share/classes/com/sun/org/apache/xml/internal/security/resource/xmlsecurity_en.properties OPENJDK_OSARCH= bsd-${ARCH:S/i386/i586/} INSTALLDIR= ${PREFIX}/${PORTNAME}${JDK_MAJOR_VERSION} @@ -103,22 +103,12 @@ BOOTSTRAP_JDKS= ${LOCALBASE}/openjdk7 \ ${LOCALBASE}/openjdk6 \ ${LOCALBASE}/bootstrap-openjdk -NO_STAGE= yes +DEBUG_MAKE_ENV= ALT_OBJCOPY="/nonexistent" +POLICY_MAKE_ENV= UNLIMITED_CRYPTO=1 +TZUPDATE_RUN_DEPENDS= ${LOCALBASE}/share/java/zi:${PORTSDIR}/java/java-zoneinfo .include <bsd.port.options.mk> -.if empty(PORT_OPTIONS:MDEBUG) -MAKE_ENV+= ALT_OBJCOPY="/nonexistent" -.endif - -.if ${PORT_OPTIONS:MPOLICY} -MAKE_ENV+= UNLIMITED_CRYPTO=1 -.endif - -.if ${PORT_OPTIONS:MTZUPDATE} -RUN_DEPENDS+= ${LOCALBASE}/share/java/zi:${PORTSDIR}/java/java-zoneinfo -.endif - # do we have valid native jdk installed? .for BJDK in ${BOOTSTRAP_JDKS} . if !defined(BOOTSTRAPJDKDIR) && exists(${BJDK}/bin/javac) @@ -132,11 +122,6 @@ BOOTSTRAPJDKDIR?= ${LOCALBASE}/bootstrap-openjdk BUILD_DEPENDS+= ${BOOTSTRAPJDKDIR}/bin/javac:${PORTSDIR}/java/bootstrap-openjdk .endif -.if ${OSVERSION} < 800000 -PATCH_DEPENDS+= gpatch:${PORTSDIR}/devel/patch -PATCH= gpatch -.endif - .include <bsd.port.pre.mk> .if empty(ICONV_LIB) @@ -163,26 +148,16 @@ pre-install: .endif do-install: - @${MKDIR} ${INSTALLDIR} + @${MKDIR} ${STAGEDIR}${INSTALLDIR} @cd ${WRKSRC}/build/${OPENJDK_OSARCH}/j2sdk-image && \ - ${COPYTREE_SHARE} . ${INSTALLDIR} - @${INSTALL_DATA} ${WRKSRC}/build/${OPENJDK_OSARCH}/btjars/compilefontconfig.jar ${WRKSRC}/build/${OPENJDK_OSARCH}/btjars/javazic.jar ${INSTALLDIR}/jre/lib/ - @for dir in `${FIND} ${INSTALLDIR} -name bin -type d`; do \ - ${CHOWN} -h -R ${BINOWN}:${BINGRP} $$dir; \ - ${FIND} $$dir -type f -exec ${CHMOD} ${BINMODE} "{}" \; ; \ - done - @${CHOWN} ${BINOWN}:${BINGRP} ${INSTALLDIR}/jre/lib/${ARCH}/jexec - @${CHMOD} ${BINMODE} ${INSTALLDIR}/jre/lib/${ARCH}/jexec - @${INSTALL_DATA} ${FILESDIR}/cacerts ${INSTALLDIR}/jre/lib/security/cacerts + ${PAX} -rw . ${STAGEDIR}${INSTALLDIR} + @${INSTALL_DATA} ${WRKSRC}/build/${OPENJDK_OSARCH}/btjars/compilefontconfig.jar ${WRKSRC}/build/${OPENJDK_OSARCH}/btjars/javazic.jar ${STAGEDIR}${INSTALLDIR}/jre/lib/ + @${INSTALL_DATA} ${FILESDIR}/cacerts ${STAGEDIR}${INSTALLDIR}/jre/lib/security/cacerts @${ECHO} "@unexec ${LOCALBASE}/bin/unregistervm ${INSTALLDIR}/bin/java" >> ${TMPPLIST} - @${FIND} -s ${INSTALLDIR} -not -type d | ${SORT} | \ - ${SED} -e 's#^${PREFIX}/##' >> ${TMPPLIST} - @${FIND} ${INSTALLDIR} -type d | ${SORT} -r | \ - ${SED} -e 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST} + @${FIND} -s ${STAGEDIR}${INSTALLDIR} -not -type d | ${SORT} | \ + ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST} + @${FIND} ${STAGEDIR}${INSTALLDIR} -type d | ${SORT} -r | \ + ${SED} -e 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST} @${ECHO} "@exec ${LOCALBASE}/bin/registervm '${INSTALLDIR}/bin/java # OpenJDK${JDK_MAJOR_VERSION}'" >> ${TMPPLIST} -post-install: - # Register the VM - "${LOCALBASE}/bin/registervm" "${INSTALLDIR}/bin/java # OpenJDK${JDK_MAJOR_VERSION}" - .include <bsd.port.post.mk> |