[116364] trunk/dports/science/scotch

sean at macports.org sean at macports.org
Thu Jan 23 12:13:51 PST 2014


Revision: 116364
          https://trac.macports.org/changeset/116364
Author:   sean at macports.org
Date:     2014-01-23 12:13:51 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
scotch: build shared libraries

Modified Paths:
--------------
    trunk/dports/science/scotch/Portfile

Added Paths:
-----------
    trunk/dports/science/scotch/files/
    trunk/dports/science/scotch/files/patch-libscotch-shared.diff
    trunk/dports/science/scotch/files/patch-libscotchmetis-shared.diff

Modified: trunk/dports/science/scotch/Portfile
===================================================================
--- trunk/dports/science/scotch/Portfile	2014-01-23 20:13:43 UTC (rev 116363)
+++ trunk/dports/science/scotch/Portfile	2014-01-23 20:13:51 UTC (rev 116364)
@@ -40,6 +40,8 @@
 
 # openmpi is not universal
 universal_variant   no
+patchfiles          patch-libscotch-shared.diff \
+                    patch-libscotchmetis-shared.diff
 
 use_configure       no
 
@@ -120,3 +122,7 @@
 pre-destroot {
     destroot.env-append prefix=${destroot}${prefix}
 }
+
+post-destroot {
+    eval xinstall -m 755 [glob ${worksrcpath}/../lib/*.dylib] ${destroot}${prefix}/lib
+}

Added: trunk/dports/science/scotch/files/patch-libscotch-shared.diff
===================================================================
--- trunk/dports/science/scotch/files/patch-libscotch-shared.diff	                        (rev 0)
+++ trunk/dports/science/scotch/files/patch-libscotch-shared.diff	2014-01-23 20:13:51 UTC (rev 116364)
@@ -0,0 +1,49 @@
+--- libscotch/Makefile.orig	2014-01-12 21:15:13.000000000 -0600
++++ libscotch/Makefile	2014-01-12 21:16:04.000000000 -0600
+@@ -100,9 +100,11 @@
+ 
+ $(libdir)/libscotch$(LIB)	:	libscotch$(LIB)
+ 					-$(CP) libscotch$(LIB) libscotcherr*$(LIB) $(libdir)
++					-$(CP) libscotch.dylib libscotcherr*.dylib $(libdir)
+ 
+ $(libdir)/libptscotch$(LIB)	:	libptscotch$(LIB)
+ 					-$(CP) libptscotch$(LIB) libptscotcherr*$(LIB) $(libdir)
++					-$(CP) libptscotch.dylib libptscotcherr*.dylib $(libdir)
+ 
+ ##
+ ##  Library dependencies.
+@@ -2933,26 +2935,32 @@
+ 					library_pt_f.h
+ 					./ptdummysizes$(EXE) library_pt_f.h ptscotchf.h
+ 
+-libscotch$(LIB)			:	$(LIBSCOTCHDEPS)
++libscotch$(LIB)			:	$(LIBSCOTCHDEPS) libscotcherr$(LIB)
+ 					$(AR) $(ARFLAGS) $(@) $(?)
+ 					-$(RANLIB) $(@)
++					$(CC) $(?) libscotcherr.dylib $(CLFAG) -dynamiclib -install_name $(prefix)/lib/libscotch.dylib -o libscotch.dylib
+ 
+ libscotcherr$(LIB)		:	library_error$(OBJ)
+ 					$(AR) $(ARFLAGS) $(@) $(?)
+ 					-$(RANLIB) $(@)
++					$(CC) $(?) $(CLFAG) -dynamiclib -install_name $(prefix)/lib/libscotcherr.dylib -o libscotcherr.dylib
+ 
+ libscotcherrexit$(LIB)		:	library_error_exit$(OBJ)
+ 					$(AR) $(ARFLAGS) $(@) $(?)
+ 					-$(RANLIB) $(@)
++					$(CC) $(?) $(CLFAG) -dynamiclib -install_name $(prefix)/lib/libscotcherrexit.dylib -o libscotcherrexit.dylib
+ 
+-libptscotch$(LIB)		:	$(LIBPTSCOTCHDEPS)
++libptscotch$(LIB)		:	$(LIBPTSCOTCHDEPS) libscotch$(LIB)
+ 					$(AR) $(ARFLAGS) $(@) $(?)
+ 					-$(RANLIB) $(@)
++					$(CC) $(?) libscotch.dylib libscotcherr.dylib $(CLFAG) -dynamiclib -install_name $(prefix)/lib/libptscotch.dylib -o libptscotch.dylib
+ 
+ libptscotcherr$(LIB)		:	library_error_pt$(OBJ)
+ 					$(AR) $(ARFLAGS) $(@) $(?)
+ 					-$(RANLIB) $(@)
++					$(CC) $(?) $(CLFAG) -dynamiclib -install_name $(prefix)/lib/libptscotcherr.dylib -o libptscotcherr.dylib
+ 
+ libptscotcherrexit$(LIB)	:	library_error_exit_pt$(OBJ)
+ 					$(AR) $(ARFLAGS) $(@) $(?)
+ 					-$(RANLIB) $(@)
++					$(CC) $(?) $(CLFAG) -dynamiclib -install_name $(prefix)/lib/libptscotcherrexit.dylib -o libptscotcherrexit.dylib

Added: trunk/dports/science/scotch/files/patch-libscotchmetis-shared.diff
===================================================================
--- trunk/dports/science/scotch/files/patch-libscotchmetis-shared.diff	                        (rev 0)
+++ trunk/dports/science/scotch/files/patch-libscotchmetis-shared.diff	2014-01-23 20:13:51 UTC (rev 116364)
@@ -0,0 +1,23 @@
+--- libscotchmetis/Makefile.orig	2014-01-12 20:59:29.000000000 -0600
++++ libscotchmetis/Makefile	2014-01-12 21:07:57.000000000 -0600
+@@ -63,6 +63,7 @@
+ install				:	scotch
+ 					-$(CP) metis.h $(includedir)
+ 					-$(CP) libscotchmetis$(LIB) $(libdir)
++					-$(CP) libscotchmetis.dylib $(libdir)
+ 
+ ptinstall			:	ptscotch
+ 					-$(CP) parmetis.h $(includedir)
+@@ -131,6 +132,7 @@
+ 					parmetis_dgraph_part_f$(OBJ)
+ 					$(AR) $(ARFLAGS) $(@) $(^)
+ 					-$(RANLIB) $(@)
++					$(CC) $(^) ../libscotch/libptscotch.dylib ../libscotch/libscotch.dylib ../libscotch/libscotcherr.dylib $(CLFAG) -dynamiclib -install_name $(prefix)/lib/libptscotchparmetis.dylib -o libptscotchparmetis.dylib
+ 
+ libscotchmetis$(LIB)		:	metis_graph_order$(OBJ)			\
+ 					metis_graph_order_f$(OBJ)		\
+@@ -138,3 +140,4 @@
+ 					metis_graph_part_f$(OBJ)
+ 					$(AR) $(ARFLAGS) $(@) $(^)
+ 					-$(RANLIB) $(@)
++					$(CC) $(^) ../libscotch/libscotch.dylib ../libscotch/libscotcherr.dylib $(CLFAG) -dynamiclib -install_name $(prefix)/lib/libscotchmetis.dylib -o libscotchmetis.dylib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/c5048ee3/attachment.html>


More information about the macports-changes mailing list