ports/146231: [feature request] www/firefox: use port libs
Anonymous
swell.k at gmail.com
Sun May 2 10:20:10 UTC 2010
>Number: 146231
>Category: ports
>Synopsis: [feature request] www/firefox: use port libs
>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 May 02 10:20:09 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Anonymous
>Release: FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
I'd like that there is an option to use png, jpeg, nss, sqlite3, et
al. dynamically linked from system. These libs are usually newer than
bundled with firefox.
>How-To-Repeat:
>Fix:
USE_MOZILLA doesn't like being under bsd.port.pre.mk section. So,
smth like this, but done less crudely.
--- a.diff begins here ---
Index: www/firefox/Makefile
===================================================================
RCS file: /a/.cvsup/ports/www/firefox/Makefile,v
retrieving revision 1.223
diff -u -p -r1.223 Makefile
--- www/firefox/Makefile 6 Apr 2010 08:14:01 -0000 1.223
+++ www/firefox/Makefile 2 May 2010 10:01:20 -0000
@@ -56,6 +56,11 @@ OPTIONS= DBUS "Enable D-BUS support" on
NEWTAB "Open external links in a new tab" on \
SMB "Enable smb:// URI support using gnomevfs" off
+.if defined(WITH_PORT_LIBS)
+USE_MOZILLA= -dbm -xft
+MOZ_OPTIONS+= --enable-system-sqlite
+.endif
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 700000
Index: www/firefox/files/patch-modules-libpr0n-encoders-png-nsPNGEncoder.cpp
===================================================================
RCS file: www/firefox/files/patch-modules-libpr0n-encoders-png-nsPNGEncoder.cpp
diff -N www/firefox/files/patch-modules-libpr0n-encoders-png-nsPNGEncoder.cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ www/firefox/files/patch-modules-libpr0n-encoders-png-nsPNGEncoder.cpp 2 May 2010 09:39:02 -0000
@@ -0,0 +1,11 @@
+--- modules/libpr0n/encoders/png/nsPNGEncoder.cpp~
++++ modules/libpr0n/encoders/png/nsPNGEncoder.cpp
+@@ -135,7 +135,7 @@ NS_IMETHODIMP nsPNGEncoder::StartImageEn
+
+ // initialize
+ mPNG = png_create_write_struct(PNG_LIBPNG_VER_STRING,
+- png_voidp_NULL,
++ 0,
+ ErrorCallback,
+ ErrorCallback);
+ if (! mPNG)
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list