[143402] trunk/dports/devel/libcryptopp
raphael at macports.org
raphael at macports.org
Sat Dec 12 09:50:04 PST 2015
Revision: 143402
https://trac.macports.org/changeset/143402
Author: raphael at macports.org
Date: 2015-12-12 00:12:57 -0800 (Sat, 12 Dec 2015)
Log Message:
-----------
libcryptopp: use correct install name (#49987)
Modified Paths:
--------------
trunk/dports/devel/libcryptopp/Portfile
Added Paths:
-----------
trunk/dports/devel/libcryptopp/patch-GNUmakefile.diff
Modified: trunk/dports/devel/libcryptopp/Portfile
===================================================================
--- trunk/dports/devel/libcryptopp/Portfile 2015-12-12 02:01:17 UTC (rev 143401)
+++ trunk/dports/devel/libcryptopp/Portfile 2015-12-12 08:12:57 UTC (rev 143402)
@@ -5,6 +5,7 @@
name libcryptopp
version 5.6.3
+revision 1
categories devel security
platforms darwin
maintainers raphael openmaintainer
@@ -25,7 +26,8 @@
use_zip yes
extract.mkdir yes
-patchfiles patch-config.h.diff
+patchfiles patch-config.h.diff \
+ patch-GNUmakefile.diff
use_configure no
@@ -41,7 +43,7 @@
build.type gnu
build.target dynamic static cryptest.exe
build.env-append CXXFLAGS="[get_canonical_archflags cxx] -DNDEBUG [_get_cryptopp_init_priority_flag ${configure.compiler}]"
-build.args-append CXX=${configure.cxx}
+build.args-append CXX=${configure.cxx} PREFIX=${prefix}
test.run yes
test.cmd ./cryptest.exe
Added: trunk/dports/devel/libcryptopp/patch-GNUmakefile.diff
===================================================================
--- trunk/dports/devel/libcryptopp/patch-GNUmakefile.diff (rev 0)
+++ trunk/dports/devel/libcryptopp/patch-GNUmakefile.diff 2015-12-12 08:12:57 UTC (rev 143402)
@@ -0,0 +1,11 @@
+--- GNUmakefile.orig 2015-12-12 08:57:51.000000000 +0100
++++ GNUmakefile 2015-12-12 08:59:55.000000000 +0100
+@@ -378,7 +378,7 @@
+ $(CXX) -shared -o $@ $(CXXFLAGS) $(GOLD_OPTION) $(LIBOBJS) $(LDLIBS)
+
+ libcryptopp.dylib: $(LIBOBJS)
+- $(CXX) -dynamiclib -o $@ $(CXXFLAGS) -install_name "$@" -current_version "$(LIB_MAJOR).$(LIB_MINOR).$(LIB_PATCH)" -compatibility_version "$(LIB_MAJOR).$(LIB_MINOR)" $(LIBOBJS)
++ $(CXX) -dynamiclib -o $@ $(CXXFLAGS) -install_name "$(PREFIX)/lib/$@" -current_version "$(LIB_MAJOR).$(LIB_MINOR).$(LIB_PATCH)" -compatibility_version "$(LIB_MAJOR).$(LIB_MINOR)" $(LIBOBJS)
+
+ cryptest.exe: public_service | libcryptopp.a $(TESTOBJS)
+ $(CXX) -o $@ $(CXXFLAGS) $(TESTOBJS) ./libcryptopp.a $(LDFLAGS) $(GOLD_OPTION) $(LDLIBS)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/87b43ac1/attachment-0001.html>
More information about the macports-changes
mailing list