[31067] trunk/dports/net
source_changes at macosforge.org
source_changes at macosforge.org
Thu Nov 15 00:26:50 PST 2007
Revision: 31067
http://trac.macosforge.org/projects/macports/changeset/31067
Author: saispo at macports.org
Date: 2007-11-15 00:26:49 -0800 (Thu, 15 Nov 2007)
Log Message:
-----------
Add nss from track tickets #13311
Added Paths:
-----------
trunk/dports/net/nss/
trunk/dports/net/nss/Portfile
trunk/dports/net/nss/files/
trunk/dports/net/nss/files/patch-Darwin.mk.diff
trunk/dports/net/nss/files/patch-UNIX.mk.diff
trunk/dports/net/nss/files/patch-config.mk.diff
Added: trunk/dports/net/nss/Portfile
===================================================================
--- trunk/dports/net/nss/Portfile (rev 0)
+++ trunk/dports/net/nss/Portfile 2007-11-15 08:26:49 UTC (rev 31067)
@@ -0,0 +1,43 @@
+# $Id$
+PortSystem 1.0
+name nss
+version 3.11.7
+categories net
+maintainers rsync at reifferscheid.org
+description Network Security Service libraries.
+depends_lib port:nspr
+
+long_description ${description}
+configure { }
+homepage http://www.mozilla.org/projects/security/pki/nss/
+master_sites ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_11_7_RTM/src/ \
+ http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_11_7_RTM/src/
+checksums nss-3.11.7.tar.gz md5 82594a0773cedd7bb7aa25009a25f5a3 \
+ patch-Unix.mk.diff md5 9adba605169d66fe845445eb7fcf86ea \
+ patch-Darwin.mk.diff md5 d9f3f354106b78b645744204f1d111b1 \
+ patch-config.mk.diff md5 fb9bbd51b04e44fbcdd403c4153bbdfe
+
+worksrcdir ${worksrcpath}
+patchfiles patch-Darwin.mk.diff \
+ patch-Unix.mk.diff \
+ patch-config.mk.diff
+
+post-patch {
+ reinplace "s|@executable_path|${prefix}/lib|g" \
+ mozilla/security/coreconf/Darwin.mk \
+ mozilla/security/nss/cmd/platlibs.mk \
+ mozilla/security/nss/lib/smime/config.mk \
+ mozilla/security/nss/lib/ssl/config.mk
+}
+
+build {system "cd ${worksrcdir} && make -C mozilla/security/coreconf/nsinstall && make -C mozilla/security/dbm && make -C mozilla/security/nss"}
+
+destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/include/nss
+ eval xinstall -m 755 [glob ${worksrcpath}/mozilla/dist/public/nss/*] ${destroot}${prefix}/include/nss
+ eval xinstall -m 755 [glob ${worksrcpath}/mozilla/dist/public/dbm/*] ${destroot}${prefix}/include/nss
+ xinstall -m 755 -d ${destroot}${prefix}/bin
+ eval xinstall -m 755 [glob ${worksrcpath}/mozilla/dist/Darwin*/bin/*] ${destroot}${prefix}/bin
+ xinstall -m 755 -d ${destroot}${prefix}/lib
+ eval xinstall -m 755 [glob ${worksrcpath}/mozilla/dist/Darwin*/lib/*.dylib] ${destroot}${prefix}/lib
+}
Added: trunk/dports/net/nss/files/patch-Darwin.mk.diff
===================================================================
--- trunk/dports/net/nss/files/patch-Darwin.mk.diff (rev 0)
+++ trunk/dports/net/nss/files/patch-Darwin.mk.diff 2007-11-15 08:26:49 UTC (rev 31067)
@@ -0,0 +1,11 @@
+--- mozilla/security/coreconf/Darwin.mk.orig 2007-11-14 19:41:02.000000000 +0100
++++ mozilla/security/coreconf/Darwin.mk 2007-11-14 19:41:20.000000000 +0100
+@@ -111,7 +111,7 @@
+
+ DSO_CFLAGS = -fPIC
+ # May override this with -bundle to create a loadable module.
+-DSO_LDOPTS = -dynamiclib -compatibility_version 1 -current_version 1 -install_name @executable_path/$(notdir $@) -headerpad_max_install_names
++DSO_LDOPTS = -dynamiclib -compatibility_version 1 -current_version 1 -install_name @executable_path/$(notdir $@) -headerpad_max_install_names -L/opt/local/lib
+
+ MKSHLIB = $(CC) $(DSO_LDOPTS) $(DARWIN_SDK_SHLIBFLAGS)
+ DLL_SUFFIX = dylib
Added: trunk/dports/net/nss/files/patch-UNIX.mk.diff
===================================================================
--- trunk/dports/net/nss/files/patch-UNIX.mk.diff (rev 0)
+++ trunk/dports/net/nss/files/patch-UNIX.mk.diff 2007-11-15 08:26:49 UTC (rev 31067)
@@ -0,0 +1,11 @@
+--- mozilla/security/coreconf/UNIX.mk.orig 2007-11-14 19:41:08.000000000 +0100
++++ mozilla/security/coreconf/UNIX.mk 2007-11-14 19:41:24.000000000 +0100
+@@ -46,7 +46,7 @@
+ DEFINES += -UDEBUG -DNDEBUG
+ else
+ OPTIMIZER += -g
+- DEFINES += -DDEBUG -UNDEBUG -DDEBUG_$(shell whoami)
++ DEFINES += -DDEBUG -UNDEBUG -DDEBUG_$(shell whoami) -I/opt//local/include/nspr/ -L/opt/local/lib
+ endif
+
+ ifdef BUILD_TREE
Added: trunk/dports/net/nss/files/patch-config.mk.diff
===================================================================
--- trunk/dports/net/nss/files/patch-config.mk.diff (rev 0)
+++ trunk/dports/net/nss/files/patch-config.mk.diff 2007-11-15 08:26:49 UTC (rev 31067)
@@ -0,0 +1,11 @@
+--- mozilla/security/nss/lib/ckfw/builtins/config.mk.orig 2007-11-14 19:51:59.000000000 +0100
++++ mozilla/security/nss/lib/ckfw/builtins/config.mk 2007-11-14 19:52:38.000000000 +0100
+@@ -60,7 +60,7 @@
+ # To create a loadable module on Darwin, we must use -bundle.
+ #
+ ifeq ($(OS_TARGET),Darwin)
+-DSO_LDOPTS = -bundle
++DSO_LDOPTS = -bundle -L/opt/local/lib
+ endif
+
+ ifeq ($(OS_TARGET),SunOS)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071115/6fc6fcf7/attachment.html
More information about the macports-changes
mailing list