From owner-freebsd-gnome@FreeBSD.ORG Sun Mar 1 19:59:37 2009 Return-Path: Delivered-To: gnome@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E06DD1065679 for ; Sun, 1 Mar 2009 19:59:37 +0000 (UTC) (envelope-from lioux@uol.com.br) Received: from goat.gigo.com (ipv6.gigo.com [IPv6:2001:470:1:18::2]) by mx1.freebsd.org (Postfix) with ESMTP id C3E4B8FC12 for ; Sun, 1 Mar 2009 19:59:37 +0000 (UTC) (envelope-from lioux@uol.com.br) Received: from localhost (localhost [127.0.0.1]) by goat.gigo.com (Postfix) with ESMTP id BD09F8F54 for ; Sun, 1 Mar 2009 11:59:37 -0800 (PST) Received: from goat.gigo.com ([127.0.0.1]) by localhost (vette.gigo.com [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id tfoY3jFsHygw for ; Sun, 1 Mar 2009 11:59:37 -0800 (PST) Received: from 189.74.32.106 (201-88-36-118.bsace702.dsl.brasiltelecom.net.br [201.88.36.118]) by goat.gigo.com (Postfix) with ESMTPA id 704E57360 for ; Sun, 1 Mar 2009 11:59:36 -0800 (PST) Received: (qmail 23837 invoked by uid 1001); 1 Mar 2009 16:59:18 -0300 Date: 1 Mar 2009 16:59:18 -0300 Message-ID: <20090301195918.23826.qmail@exxodus.fedaykin.here> To: FreeBSD-gnats-submit@freebsd.org From: Mario Sergio Fujikawa Ferreira X-send-pr-version: 3.113 X-GNATS-Notify: Cc: gnome@FreeBSD.org Subject: [PATCH] www/firefox: Add option to build with Profile-Guided Optimization X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2009 19:59:46 -0000 >Submitter-Id: current-users >Originator: Mario Sergio Fujikawa Ferreira >Organization: >Confidential: no >Synopsis: [PATCH] www/firefox: Add option to build with Profile-Guided Optimization >Severity: non-critical >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 7.1-STABLE i386 >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 @@ -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 ---