From owner-svn-ports-head@FreeBSD.ORG Sun Apr 6 22:48:52 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AD064D54; Sun, 6 Apr 2014 22:48:52 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 992AD6B0; Sun, 6 Apr 2014 22:48:52 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s36MmqBJ085895; Sun, 6 Apr 2014 22:48:52 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s36MmqLn085894; Sun, 6 Apr 2014 22:48:52 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201404062248.s36MmqLn085894@svn.freebsd.org> From: Baptiste Daroussin Date: Sun, 6 Apr 2014 22:48:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r350419 - head/java/openjdk7 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2014 22:48:52 -0000 Author: bapt Date: Sun Apr 6 22:48:52 2014 New Revision: 350419 URL: http://svnweb.freebsd.org/changeset/ports/350419 QAT: https://qat.redports.org/buildarchive/r350419/ Log: 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} Modified: head/java/openjdk7/Makefile Modified: head/java/openjdk7/Makefile ============================================================================== --- head/java/openjdk7/Makefile Sun Apr 6 22:35:28 2014 (r350418) +++ head/java/openjdk7/Makefile Sun Apr 6 22:48:52 2014 (r350419) @@ -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} 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 -.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 BUILD_DEPENDS+= ${BOOTSTRAPJDKDIR}/bin/javac:${PORTSDIR}/java/bootstrap-openjdk .endif -.if ${OSVERSION} < 800000 -PATCH_DEPENDS+= gpatch:${PORTSDIR}/devel/patch -PATCH= gpatch -.endif - .include .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