[44267] trunk/dports/devel/cfitsio

ram at macports.org ram at macports.org
Wed Dec 24 04:20:01 PST 2008


Revision: 44267
          http://trac.macports.org/changeset/44267
Author:   ram at macports.org
Date:     2008-12-24 04:19:59 -0800 (Wed, 24 Dec 2008)
Log Message:
-----------
devel/cfitsio: ensure install name is correctly set

Modified Paths:
--------------
    trunk/dports/devel/cfitsio/Portfile

Added Paths:
-----------
    trunk/dports/devel/cfitsio/files/patch-configure.diff

Modified: trunk/dports/devel/cfitsio/Portfile
===================================================================
--- trunk/dports/devel/cfitsio/Portfile	2008-12-24 11:52:12 UTC (rev 44266)
+++ trunk/dports/devel/cfitsio/Portfile	2008-12-24 12:19:59 UTC (rev 44267)
@@ -4,7 +4,7 @@
 
 name              cfitsio
 version           3.100
-revision          2
+revision          3
 categories        devel
 platforms         darwin
 maintainers       ram openmaintainer
@@ -29,7 +29,8 @@
                   sha1 a0586a5411e2882165d55c46e66473f555142e07 \
                   rmd160 cd2d944ad73c74053ecd4c78b7efe5195cc8d43b
 
-patchfiles        patch-cfitsio.pc.in.diff
+patchfiles        patch-cfitsio.pc.in.diff \
+                  patch-configure.diff
 
 # turn off FORTRAN compiler wrappers by removing FORTRAN from the path
 configure.fc      ${prefix}/bin/no-possible-compiler
@@ -37,6 +38,10 @@
 
 build.target      all shared
 
+post-patch {
+  reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/configure
+}
+
 post-destroot {
   system "ranlib ${destroot}${prefix}/lib/libcfitsio.a"
   set docdir ${destroot}${prefix}/share/doc/${name}-${version}

Added: trunk/dports/devel/cfitsio/files/patch-configure.diff
===================================================================
--- trunk/dports/devel/cfitsio/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/devel/cfitsio/files/patch-configure.diff	2008-12-24 12:19:59 UTC (rev 44267)
@@ -0,0 +1,11 @@
+--- configure	2008-12-24 11:22:33.000000000 +0000
++++ configure	2008-12-24 11:22:48.000000000 +0000
+@@ -3388,7 +3388,7 @@
+     SHLIB_SUFFIX=".dll"
+     ;;
+   darwin)
+-    SHLIB_LD="$CC -dynamiclib"
++    SHLIB_LD="$CC -dynamiclib -install_name @@MPORTS_PREFIX@@/lib/libcfitsio.dylib"
+     SHLIB_SUFFIX=".dylib"
+     lhea_shlib_cflags="-fPIC -fno-common"
+     ;;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081224/6887de14/attachment.html>


More information about the macports-changes mailing list