pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/spidermonkey Use correct share library suffix und...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/287d36ab2a9e
branches:  trunk
changeset: 517305:287d36ab2a9e
user:      tron <tron%pkgsrc.org@localhost>
date:      Tue Aug 08 09:50:33 2006 +0000

description:
Use correct share library suffix under Mac OS X (".dylib" instead of
".so") so that linking with the "libjs" shared library actually works.
Bump package revision because of this fix.

diffstat:

 lang/spidermonkey/Makefile         |  13 ++++++++++---
 lang/spidermonkey/PLIST            |   4 ++--
 lang/spidermonkey/distinfo         |   4 ++--
 lang/spidermonkey/patches/patch-aa |  18 +++++++++++++++---
 4 files changed, 29 insertions(+), 10 deletions(-)

diffs (95 lines):

diff -r cfca74a4aa6a -r 287d36ab2a9e lang/spidermonkey/Makefile
--- a/lang/spidermonkey/Makefile        Tue Aug 08 09:49:57 2006 +0000
+++ b/lang/spidermonkey/Makefile        Tue Aug 08 09:50:33 2006 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2006/08/04 13:22:11 tron Exp $
+# $NetBSD: Makefile,v 1.6 2006/08/08 09:50:33 tron Exp $
 
 DISTNAME=      js-1.5
 PKGNAME=       ${DISTNAME:S/js/spidermonkey/}
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    lang
 MASTER_SITES=  http://ftp.mozilla.org/pub/mozilla.org/js/
 
@@ -30,13 +30,20 @@
 BUILDDIRPREFIX=        ${OPSYS}
 .endif
 
+.if ${OPSYS} == "Darwin"
+SO_SUFFIX=dylib
+.else
+SO_SUFFIX=so
+.endif
+PLIST_SUBST+=  SO_SUFFIX=${SO_SUFFIX}
+
 post-extract:
        ${CP} ${FILESDIR}/pkgsrc.mk ${WRKSRC}/config
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/${BUILDDIRPREFIX}_DBG.OBJ/js \
          ${PREFIX}/bin
-       ${INSTALL_LIB} ${WRKSRC}/${BUILDDIRPREFIX}_DBG.OBJ/libjs.so \
+       ${INSTALL_LIB} ${WRKSRC}/${BUILDDIRPREFIX}_DBG.OBJ/libjs.${SO_SUFFIX} \
          ${PREFIX}/lib
        ${CP} ${WRKSRC}/${BUILDDIRPREFIX}_DBG.OBJ/jsautocfg.h ${WRKSRC}
 .for f in ${DIST_HEADERS}
diff -r cfca74a4aa6a -r 287d36ab2a9e lang/spidermonkey/PLIST
--- a/lang/spidermonkey/PLIST   Tue Aug 08 09:49:57 2006 +0000
+++ b/lang/spidermonkey/PLIST   Tue Aug 08 09:50:33 2006 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2006/01/27 19:47:21 xtraeme Exp $
+@comment $NetBSD: PLIST,v 1.2 2006/08/08 09:50:33 tron Exp $
 bin/js
 include/jsapi.h
 include/jsautocfg.h
@@ -8,4 +8,4 @@
 include/jsotypes.h
 include/jspubtd.h
 include/jstypes.h
-lib/libjs.so
+lib/libjs.${SO_SUFFIX}
diff -r cfca74a4aa6a -r 287d36ab2a9e lang/spidermonkey/distinfo
--- a/lang/spidermonkey/distinfo        Tue Aug 08 09:49:57 2006 +0000
+++ b/lang/spidermonkey/distinfo        Tue Aug 08 09:50:33 2006 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.3 2006/08/04 13:22:11 tron Exp $
+$NetBSD: distinfo,v 1.4 2006/08/08 09:50:33 tron Exp $
 
 SHA1 (js-1.5.tar.gz) = 707755be3a94207d5d10ccd1011ca00babe0a689
 RMD160 (js-1.5.tar.gz) = a1f23d53c259a9fa354f29eecdc1c56472f4f626
 Size (js-1.5.tar.gz) = 958135 bytes
-SHA1 (patch-aa) = 06627df12b3e39a33164257beecff7d8bf89ed6f
+SHA1 (patch-aa) = 25de332b3ec78da45727cedf33f695caee416519
 SHA1 (patch-ab) = 9f78175b240add7ed2dc3d49c90367c9fa5d16ea
 SHA1 (patch-ac) = 2a9a4834dcc82dbab04d1bfc9a58c3e2b41f17dc
diff -r cfca74a4aa6a -r 287d36ab2a9e lang/spidermonkey/patches/patch-aa
--- a/lang/spidermonkey/patches/patch-aa        Tue Aug 08 09:49:57 2006 +0000
+++ b/lang/spidermonkey/patches/patch-aa        Tue Aug 08 09:50:33 2006 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.2 2006/02/26 20:36:58 joerg Exp $
+$NetBSD: patch-aa,v 1.3 2006/08/08 09:50:33 tron Exp $
 
---- config.mk.orig     2003-11-15 01:10:55.000000000 +0100
-+++ config.mk  2006-01-27 20:42:30.000000000 +0100
+--- config.mk.orig     2003-11-15 00:10:55.000000000 +0000
++++ config.mk  2006-08-08 10:35:24.000000000 +0100
 @@ -96,10 +96,26 @@
  ifeq ($(OS_ARCH),Darwin)
  OS_CONFIG      := Darwin
@@ -29,3 +29,15 @@
  
  ASFLAGS         =
  DEFINES         =
+@@ -126,7 +142,11 @@
+ OBJDIR_TAG = _DBG
+ endif
+ 
++ifeq ($(OS_ARCH),Darwin)
++SO_SUFFIX = dylib
++else
+ SO_SUFFIX = so
++endif
+ 
+ NS_USE_NATIVE = 1
+ 



Home | Main Index | Thread Index | Old Index