[92935] trunk/dports/databases/postgresql91/Portfile

vince at macports.org vince at macports.org
Fri May 11 05:37:06 PDT 2012


Revision: 92935
          https://trac.macports.org/changeset/92935
Author:   vince at macports.org
Date:     2012-05-11 05:37:03 -0700 (Fri, 11 May 2012)
Log Message:
-----------
This update closes ticket #33907. It strips any -arch flag from pgxs/Makefile.global and changes CFLAGS = and LDFLAGS = into CFLAGS += and LDFLAGS +=. Bump revision accordingly, since it affects the way PostGIS will be built.

Modified Paths:
--------------
    trunk/dports/databases/postgresql91/Portfile

Modified: trunk/dports/databases/postgresql91/Portfile
===================================================================
--- trunk/dports/databases/postgresql91/Portfile	2012-05-11 11:17:20 UTC (rev 92934)
+++ trunk/dports/databases/postgresql91/Portfile	2012-05-11 12:37:03 UTC (rev 92935)
@@ -6,13 +6,13 @@
 
 name			postgresql91
 version			9.1.3
-revision                1
+revision        2
 
 categories		databases
 platforms		darwin
 maintainers		mww jwa
 license			Permissive
-description		The most advanced open-source database available anywhere. ALPHA release!
+description		The most advanced open-source database available anywhere.
 long_description PostgreSQL is Object-Relational Database Management System. \
 				It supports almost all SQL constructs, including transactions, \
 				subselects, and user-defined types and functions. Write-ahead \
@@ -103,6 +103,15 @@
 	system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql91"
 	file delete -force ${destroot}${prefix}/share/doc/postgresql \
 		${destroot}${prefix}/share/man
+		
+	reinplace -E "s#-arch\[\[:space:\]\]+\[\[:alnum:\]_\]+##g" \
+	    ${destroot}${prefix}/lib/postgresql91/pgxs/src/Makefile.global
+	
+	reinplace -E "s#^CFLAGS =#CFLAGS +=#g" \
+	    ${destroot}${prefix}/lib/postgresql91/pgxs/src/Makefile.global
+	    
+	reinplace -E "s#^(\[\[:space:\]\]+)LDFLAGS =#\\1LDFLAGS +=#g" \
+	    ${destroot}${prefix}/lib/postgresql91/pgxs/src/Makefile.global
 }
 
 select.group    postgresql
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120511/87d88ed2/attachment.html>


More information about the macports-changes mailing list