[84387] trunk/dports/devel/nettle
ryandesign at macports.org
ryandesign at macports.org
Sat Sep 24 20:29:04 PDT 2011
Revision: 84387
http://trac.macports.org/changeset/84387
Author: ryandesign at macports.org
Date: 2011-09-24 20:29:01 -0700 (Sat, 24 Sep 2011)
Log Message:
-----------
nettle: update to 2.4; also build/install the shared/dynamic library (patch configure so this works properly); patch configure so it doesn't look for libraries in a ton of undesirable directories; indicate license
Modified Paths:
--------------
trunk/dports/devel/nettle/Portfile
Added Paths:
-----------
trunk/dports/devel/nettle/files/
trunk/dports/devel/nettle/files/patch-configure.diff
Modified: trunk/dports/devel/nettle/Portfile
===================================================================
--- trunk/dports/devel/nettle/Portfile 2011-09-25 03:17:21 UTC (rev 84386)
+++ trunk/dports/devel/nettle/Portfile 2011-09-25 03:29:01 UTC (rev 84387)
@@ -4,10 +4,11 @@
PortSystem 1.0
name nettle
-version 2.1
+version 2.4
categories devel crypto
platforms darwin
maintainers gmx.de:exodusd uni-paderborn.de:nicke openmaintainer
+license LGPL-2.1+
description low-level cryptographic library
@@ -26,12 +27,15 @@
homepage http://www.lysator.liu.se/~nisse/nettle/
master_sites gnu
-checksums md5 2bfaf16234a5d8deb96cd23f53a682bb \
- sha1 15f660ef6cfd62c1c3302f68055f194913de0dfb \
- rmd160 56bd66654e8320abb12812d0fa1b79733bc62094
+checksums rmd160 8480e10ce718db1a280d57a808a78a4cfa940d1c \
+ sha256 a6009208df6881f75aa1a87081ccfb2ccac1884da10670c53d7b76596f649c3f
depends_lib port:gmp
+patchfiles patch-configure.diff
+
+configure.args --enable-shared
+
if {"x86_64" == ${configure.build_arch}} {
configure.args-append --disable-assembler
}
Added: trunk/dports/devel/nettle/files/patch-configure.diff
===================================================================
--- trunk/dports/devel/nettle/files/patch-configure.diff (rev 0)
+++ trunk/dports/devel/nettle/files/patch-configure.diff 2011-09-25 03:29:01 UTC (rev 84387)
@@ -0,0 +1,37 @@
+--- configure.orig 2011-09-03 07:51:07.000000000 -0500
++++ configure 2011-09-23 19:35:53.000000000 -0500
+@@ -2642,8 +2642,7 @@
+
+ for d in `echo $with_lib_path | sed 's/:/ /g'` \
+ `echo $exec_prefix | sed "s@^NONE@$prefix/lib at g" | sed "s@^NONE@$ac_default_prefix/lib at g"` \
+- /usr/local/lib /sw/local/lib /sw/lib \
+- /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib /usr/pkg/lib ; do
++ ; do
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking $d" >&5
+ $as_echo_n "checking $d... " >&6; }
+ ac_exists=no
+@@ -4535,16 +4534,16 @@
+ ;;
+ darwin*)
+ LIBNETTLE_FORLINK=libnettle.dylib
+- LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
+- LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
+- LIBNETTLE_LINK='$(CC) -dynamiclib $(LDFLAGS)'
+- LIBNETTLE_LIBS=''
++ LIBNETTLE_SONAME='libnettle.$(LIBNETTLE_MAJOR).dylib'
++ LIBNETTLE_FILE='libnettle.$(LIBNETTLE_MAJOR).$(LIBNETTLE_MINOR).dylib'
++ LIBNETTLE_LINK='$(CC) -dynamiclib $(LDFLAGS) -install_name ${libdir}/$(LIBNETTLE_FORLINK) -compatibility_version $(LIBNETTLE_MAJOR) -current_version $(LIBNETTLE_MAJOR).$(LIBNETTLE_MINOR)'
++ LIBNETTLE_LIBS='$(LIBS)'
+
+ LIBHOGWEED_FORLINK=libhogweed.dylib
+- LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
+- LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
+- LIBHOGWEED_LINK='$(CC) -dynamiclib $(LDFLAGS)'
+- LIBHOGWEED_LIBS=''
++ LIBHOGWEED_SONAME='libhogweed.$(LIBHOGWEED_MAJOR).dylib'
++ LIBHOGWEED_FILE='libhogweed.$(LIBHOGWEED_MAJOR).$(LIBHOGWEED_MINOR).dylib'
++ LIBHOGWEED_LINK='$(CC) -dynamiclib $(LDFLAGS) -L. -install_name ${libdir}/$(LIBHOGWEED_FORLINK) -compatibility_version $(LIBHOGWEED_MAJOR) -current_version $(LIBHOGWEED_MAJOR).$(LIBHOGWEED_MINOR)'
++ LIBHOGWEED_LIBS='$(LIBS) -lnettle -gmp'
+ ;;
+ solaris*)
+ # Sun's ld uses -h to set the soname, and this option is passed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110924/674d23c8/attachment.html>
More information about the macports-changes
mailing list