Ticket #51645: patch.txt

File patch.txt, 1.3 KB (added by aszostak-partner-eso-org, 8 years ago)

Patch to fix setting of library versions.

Line 
1Index: Portfile
2===================================================================
3--- Portfile    (revision 150068)
4+++ Portfile    (working copy)
5@@ -6,6 +6,7 @@
6 
7 name                cfitsio
8 version             3.390
9+revision            1
10 categories          science
11 license             zlib MIT {LGPL Noncommercial}
12 platforms           darwin
13Index: files/patch-configure.diff
14===================================================================
15--- files/patch-configure.diff  (revision 150068)
16+++ files/patch-configure.diff  (working copy)
17@@ -1,5 +1,5 @@
18 --- configure.orig     2016-04-29 08:11:26.000000000 -0500
19-+++ configure  2016-04-29 08:21:19.000000000 -0500
20++++ configure  2016-07-11 03:45:18.000000000 -0700
21 @@ -4486,10 +4486,10 @@
22          # Build for i386 & x86_64 architectures on Darwin 10.x or newer:
23 
24@@ -23,7 +23,7 @@
25 -            ;;
26 -        *)
27 +         *)
28-+             SHLIB_LD="$CC -dynamiclib -install_name @@MPORTS_PREFIX@@/lib/libcfitsio.dylib"
29++             SHLIB_LD="$CC -dynamiclib -install_name @@MPORTS_PREFIX@@/lib/libcfitsio.dylib -compatibility_version \${CFITSIO_SONAME} -current_version \${CFITSIO_SONAME}.\${CFITSIO_MAJOR}.\${CFITSIO_MINOR}"
30 +             ;;
31 +         idontthinkso)
32              # Build for i386 & x86_64 architectures on Darwin 10.x or newer: