pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/firefox Fix packaging under OpenBSD



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6d4022b8ce14
branches:  trunk
changeset: 633967:6d4022b8ce14
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Mon May 05 20:47:14 2014 +0000

description:
Fix packaging under OpenBSD

* It create .so.1.0 libraries instead of .so
* Use bsdtar as tar forcibly under OpenBSD
* Fix tremor/vorbis conditional, but it is not used now

diffstat:

 www/firefox/PLIST             |  16 ++++++++--------
 www/firefox/mozilla-common.mk |  14 +++++++++++---
 2 files changed, 19 insertions(+), 11 deletions(-)

diffs (86 lines):

diff -r d6580f44120e -r 6d4022b8ce14 www/firefox/PLIST
--- a/www/firefox/PLIST Mon May 05 20:15:56 2014 +0000
+++ b/www/firefox/PLIST Mon May 05 20:47:14 2014 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.79 2014/04/30 15:07:17 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.80 2014/05/05 20:47:14 ryoon Exp $
 bin/firefox
 lib/firefox/application.ini
 lib/firefox/browser/blocklist.xml
@@ -835,7 +835,7 @@
 lib/firefox/browser/components/devtools-clhandler.js
 lib/firefox/browser/components/fuelApplication.js
 lib/firefox/browser/components/interfaces.xpt
-lib/firefox/browser/components/libbrowsercomps.so
+lib/firefox/browser/components/libbrowsercomps${DLL_SUFFIX}
 lib/firefox/browser/components/nsBrowserContentHandler.js
 lib/firefox/browser/components/nsBrowserGlue.js
 lib/firefox/browser/components/nsSessionStartup.js
@@ -1797,9 +1797,9 @@
 lib/firefox/components/crypto-SDR.js
 lib/firefox/components/interfaces.xpt
 lib/firefox/components/jsconsole-clhandler.js
-${PLIST.gnome}lib/firefox/components/libdbusservice.so
-lib/firefox/components/libmozgnome.so
-${PLIST.gnome}lib/firefox/components/libnkgnomevfs.so
+${PLIST.gnome}lib/firefox/components/libdbusservice${DLL_SUFFIX}
+lib/firefox/components/libmozgnome${DLL_SUFFIX}
+${PLIST.gnome}lib/firefox/components/libnkgnomevfs${DLL_SUFFIX}
 lib/firefox/components/marionettecomponent.js
 lib/firefox/components/messageWakeupService.js
 lib/firefox/components/nsBlocklistService.js
@@ -1881,9 +1881,9 @@
 lib/firefox/hyphenation/hyph_sv.dic
 lib/firefox/hyphenation/hyph_tr.dic
 lib/firefox/hyphenation/hyph_uk.dic
-lib/firefox/libmozalloc.so
-lib/firefox/libmozjs.so
-lib/firefox/libxul.so
+lib/firefox/libmozalloc${DLL_SUFFIX}
+lib/firefox/libmozjs${DLL_SUFFIX}
+lib/firefox/libxul${DLL_SUFFIX}
 lib/firefox/modules/ActivitiesService.jsm
 lib/firefox/modules/ActivitiesServiceFilter.jsm
 lib/firefox/modules/AddonLogging.jsm
diff -r d6580f44120e -r 6d4022b8ce14 www/firefox/mozilla-common.mk
--- a/www/firefox/mozilla-common.mk     Mon May 05 20:15:56 2014 +0000
+++ b/www/firefox/mozilla-common.mk     Mon May 05 20:47:14 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mozilla-common.mk,v 1.31 2014/05/05 05:04:46 obache Exp $
+# $NetBSD: mozilla-common.mk,v 1.32 2014/05/05 20:47:14 ryoon Exp $
 #
 # common Makefile fragment for mozilla packages based on gecko 2.0.
 #
@@ -13,6 +13,7 @@
 .include "../../mk/bsd.prefs.mk"
 # tar(1) of OpenBSD 5.5 has no --exclude command line option.
 .if ${OPSYS} == "OpenBSD"
+TOOLS_PLATFORM.tar=    ${TOOLS_PREFIX.bsdtar}/bin/bsdtar
 USE_TOOLS+=            bsdtar
 .endif
 # gcc45-4.5.3 of lang/gcc45 does not generate proper binary,
@@ -143,8 +144,7 @@
 PLIST.sps=     yes
 .endif
 
-.if !empty(MACHINE_PLATFORM:MLinux-*-arm*) || ${OPSYS} == "DragonFly" \
-    || ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
+.if !empty(MACHINE_PLATFORM:MLinux-*-arm*)
 PLIST.tremor=  yes
 .else
 PLIST.vorbis=  yes
@@ -179,6 +179,14 @@
 PREFER.bzip2?= pkgsrc
 .endif
 
+.if ${OPSYS} == "OpenBSD"
+PLIST_SUBST+=  DLL_SUFFIX=".so.1.0"
+.elif ${OPSYS} == "Darwin"
+PLIST_SUBST+=  DLL_SUFFIX=".dylib"
+.else
+PLIST_SUBST+=  DLL_SUFFIX=".so"
+.endif
+
 .include "../../archivers/bzip2/buildlink3.mk"
 #.include "../../audio/libopus/buildlink3.mk"
 #.include "../../audio/tremor/buildlink3.mk"



Home | Main Index | Thread Index | Old Index