[48572] trunk/dports/www/neon

dluke at macports.org dluke at macports.org
Wed Mar 25 07:18:16 PDT 2009


Revision: 48572
          http://trac.macports.org/changeset/48572
Author:   dluke at macports.org
Date:     2009-03-25 07:18:14 -0700 (Wed, 25 Mar 2009)
Log Message:
-----------
neon +universal fixes (fixes #18927)

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

Added Paths:
-----------
    trunk/dports/www/neon/files/
    trunk/dports/www/neon/files/config.h.ed

Modified: trunk/dports/www/neon/Portfile
===================================================================
--- trunk/dports/www/neon/Portfile	2009-03-25 11:52:18 UTC (rev 48571)
+++ trunk/dports/www/neon/Portfile	2009-03-25 14:18:14 UTC (rev 48572)
@@ -4,6 +4,7 @@
 
 name            neon
 version         0.28.3
+revision	1
 categories      www
 maintainers     dluke at geeklair.net
 description     An HTTP and WebDAV client library with a C interface
@@ -48,6 +49,23 @@
 	test.env-append DYLD_LIBRARY_PATH=[join ${x} ":"]
 }
 
+post-configure { 
+	if {[variant_isset universal]} { 
+		system "cd ${worksrcpath} && ed - config.h < ${filespath}/config.h.ed && touch stamp-h1" 
+	} 
+}
+
+post-destroot { 
+	if {[variant_isset universal]} { 
+		reinplace "s|${configure.universal_cppflags}||g" \ 
+			${destroot}${prefix}/bin/neon-config \ 
+			${destroot}${prefix}/lib/pkgconfig/neon.pc 
+		reinplace "s|${configure.universal_ldflags}||g" \ 
+			${destroot}${prefix}/bin/neon-config \ 
+			${destroot}${prefix}/lib/pkgconfig/neon.pc 
+	}
+} 
+
 test.run    yes
 test.target check
 

Added: trunk/dports/www/neon/files/config.h.ed
===================================================================
--- trunk/dports/www/neon/files/config.h.ed	                        (rev 0)
+++ trunk/dports/www/neon/files/config.h.ed	2009-03-25 14:18:14 UTC (rev 48572)
@@ -0,0 +1,36 @@
+/#define SIZEOF_LONG/c
+#ifdef __LP64__
+#define SIZEOF_LONG 8
+#else
+#define SIZEOF_LONG 4
+#endif
+.
+/#define SIZEOF_SIZE_T/c
+#ifdef __LP64__
+#define SIZEOF_SIZE_T 8
+#else
+#define SIZEOF_SIZE_T 4
+#endif
+.
+/#define SIZEOF_SSIZE_T/c
+#ifdef __LP64__
+#define SIZEOF_SSIZE_T 8
+#else
+#define SIZEOF_SSIZE_T 4
+#endif
+.
+/#define SIZEOF_TIME_T/c
+#ifdef __LP64__
+#define SIZEOF_TIME_T 8
+#else
+#define SIZEOF_TIME_T 4
+#endif
+.
+/#define SIZEOF_XML_SIZE/c
+#ifdef __LP64__
+#define SIZEOF_XML_SIZE 8
+#else
+#define SIZEOF_XML_SIZE 4
+#endif
+.
+w
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090325/a0553feb/attachment.html>


More information about the macports-changes mailing list