Date: 1 Mar 2009 16:59:18 -0300 From: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: gnome@FreeBSD.org Subject: ports/132231: [PATCH] www/firefox: Add option to build with Profile-Guided Optimization Message-ID: <20090301195918.23826.qmail@exxodus.fedaykin.here> Resent-Message-ID: <200903012000.n21K05LI014917@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 132231 >Category: ports >Synopsis: [PATCH] www/firefox: Add option to build with Profile-Guided Optimization >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Mar 01 20:00:05 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Mario Sergio Fujikawa Ferreira >Release: FreeBSD 7.1-STABLE i386 >Organization: >Environment: System: FreeBSD exxodus.fedaykin.here 7.1-STABLE FreeBSD 7.1-STABLE #57: Tue Feb 24 03:51:58 BRT 2009 >Description: - Add WITH_PGO to build with Profile-Guided Optimization Added file(s): - files/mozconfig-profile_guided_optimization.in Port maintainer (gnome@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- firefox-3.0.6,1.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/www/firefox3/Makefile,v retrieving revision 1.12 diff -d -u -u -r1.12 Makefile --- Makefile 11 Feb 2009 14:48:35 -0000 1.12 +++ Makefile 1 Mar 2009 19:57:43 -0000 @@ -53,6 +53,7 @@ OPTIONS= DBUS "Enable D-BUS support" on \ NEWTAB "Open external links in a new tab" on \ + PGO "Enable Profile-Guided Optimization" off \ SMB "Enable smb:// URI support using gnomevfs" off .include <bsd.port.pre.mk> @@ -72,6 +73,14 @@ LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib .endif +.if defined(WITH_PGO) +USE_PYTHON_BUILD= yes +.include "${PORTSDIR}/Mk/bsd.python.mk" + +MAKEFILE=client.mk +ALL_TARGET=profiledbuild +.endif + .if ${ARCH} == "sparc64" BROKEN= Does not compile on sparc64 .endif @@ -100,6 +109,13 @@ ${LN} -s xptcinvoke_asm_sparc64_openbsd.s xptcinvoke_asm_sparc64_freebsd.s) .endif +pre-build: +.if defined(WITH_PGO) + @${SED} -e 's|@PYTHON@|${PYTHON_CMD}|' \ + <${FILESDIR}/mozconfig-profile_guided_optimization.in \ + >> ${BUILD_WRKSRC}/.mozconfig +.endif + port-pre-install: # ${SED} -e 's|1.9a7|0|' ${WRKSRC}/dist/bin/application.ini ${FAKEDIR}/lib ${ECHO_CMD} 'share/applications/${MOZILLA}.desktop' >> ${PLISTF} Index: files/mozconfig-profile_guided_optimization.in =================================================================== RCS file: files/mozconfig-profile_guided_optimization.in diff -N files/mozconfig-profile_guided_optimization.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/mozconfig-profile_guided_optimization.in 1 Mar 2009 19:57:43 -0000 @@ -0,0 +1 @@ +mk_add_options PROFILE_GEN_SCRIPT='@PYTHON@ $(OBJDIR)/_profile/pgo/profileserver.py' --- firefox-3.0.6,1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090301195918.23826.qmail>