Revision
94837
Author
cal@macports.org
Date
2012-07-01 05:03:55 -0700 (Sun, 01 Jul 2012)

Log Message

metis: Enable building dynamic library (with correct id loadcommand), closes #35041

Modified Paths

Added Paths

Diff

Modified: trunk/dports/math/metis/Portfile (94836 => 94837)


--- trunk/dports/math/metis/Portfile	2012-07-01 08:30:50 UTC (rev 94836)
+++ trunk/dports/math/metis/Portfile	2012-07-01 12:03:55 UTC (rev 94837)
@@ -5,6 +5,7 @@
 
 name                metis
 version             5.0.2
+revision            1
 categories          math
 platforms           darwin
 maintainers         nomaintainer
@@ -28,6 +29,8 @@
 checksums           rmd160  737bac9b1c50ea0cf950d16c44ef8f7f9fa0b8f8 \
                     sha256  f79790676ca2ce3dfa9d5e2d74801e91d92415664ede2c2fc18fc49d4a161981
 
+patchfiles          patch-Makefile-add-install-name-dir.diff
+
 # Metis uses a GNU make file to fire off a cmake command.
 # Used for configure, build, and install.
 depends_build       port:cmake
@@ -36,7 +39,8 @@
 configure.universal_args
 configure.pre_args
 configure.args      config \
-                    prefix=${prefix}
+                    prefix=${prefix} \
+                    shared=1 \
 
 # "-w" which MacPorts base now adds to these by default causes problems here
 build.pre_args      ${build.target}

Added: trunk/dports/math/metis/files/patch-Makefile-add-install-name-dir.diff (0 => 94837)


--- trunk/dports/math/metis/files/patch-Makefile-add-install-name-dir.diff	                        (rev 0)
+++ trunk/dports/math/metis/files/patch-Makefile-add-install-name-dir.diff	2012-07-01 12:03:55 UTC (rev 94837)
@@ -0,0 +1,10 @@
+--- Makefile.orig	2012-07-01 14:00:37.000000000 +0200
++++ Makefile	2012-07-01 14:01:14.000000000 +0200
+@@ -44,6 +44,7 @@
+ endif
+ ifneq ($(prefix), not-set)
+     CONFIG_FLAGS += -DCMAKE_INSTALL_PREFIX=$(prefix)
++    CONFIG_FLAGS += -DCMAKE_INSTALL_NAME_DIR=$(prefix)/lib
+ endif
+ ifneq ($(shared), not-set)
+     CONFIG_FLAGS += -DSHARED=1