[23095] trunk/dports/www/neon/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sat Mar 24 15:25:38 PDT 2007


Revision: 23095
          http://trac.macosforge.org/projects/macports/changeset/23095
Author:   pipping at macports.org
Date:     2007-03-24 15:25:38 -0700 (Sat, 24 Mar 2007)

Log Message:
-----------
 * add modified variant universal, originally submitted by ryandesign@ (#11606)

Modified Paths:
--------------
    trunk/dports/www/neon/Portfile

Modified: trunk/dports/www/neon/Portfile
===================================================================
--- trunk/dports/www/neon/Portfile	2007-03-24 21:59:42 UTC (rev 23094)
+++ trunk/dports/www/neon/Portfile	2007-03-24 22:25:38 UTC (rev 23095)
@@ -29,6 +29,24 @@
                 --with-expat \
                 --mandir=\\\${prefix}/share/man
 
+if {[llength [info commands configure.universal_ldflags-append]] > 0} {
+    configure.universal_ldflags-append  -L$prefix/lib
+    if {[variant_isset universal]} {
+        post-destroot {
+            cd ${destroot}${prefix}/bin
+            set nc neon-config
+            reinplace "s|-arch i386 -arch ppc ||g" ${nc}
+            reinplace "s|-isysroot /Developer/SDKs/MacOSX10.4u.sdk ||g" ${nc}
+        }
+    }
+} else {
+	variant universal {
+		return -code error "You need to be running MacPorts 1.4.0 or higher to \
+		use this variant (universal)."
+	}
+}
+
+
 destroot.destdir    prefix=${destroot}${prefix}
 
 test.env    DYLD_LIBRARY_PATH=`find ${worksrcpath} -type d -name .libs | xargs echo | sed -e 's/ /:/g'`

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070324/b5123688/attachment.html


More information about the macports-changes mailing list