[42762] trunk/dports/audio/libsndfile

toby at macports.org toby at macports.org
Sun Nov 30 08:57:34 PST 2008


Revision: 42762
          http://trac.macports.org/changeset/42762
Author:   toby at macports.org
Date:     2008-11-30 08:57:34 -0800 (Sun, 30 Nov 2008)
Log Message:
-----------
correct configure checks for universal build, fixes #17088

Modified Paths:
--------------
    trunk/dports/audio/libsndfile/Portfile

Added Paths:
-----------
    trunk/dports/audio/libsndfile/files/
    trunk/dports/audio/libsndfile/files/src__config.h.ed

Modified: trunk/dports/audio/libsndfile/Portfile
===================================================================
--- trunk/dports/audio/libsndfile/Portfile	2008-11-30 16:57:19 UTC (rev 42761)
+++ trunk/dports/audio/libsndfile/Portfile	2008-11-30 16:57:34 UTC (rev 42762)
@@ -18,6 +18,10 @@
 checksums	md5 2d126c35448503f6dbe33934d9581f6b
 configure.args	--mandir=${prefix}/share/man --disable-flac
 
+post-configure {
+	system "ed - ${worksrcpath}/src/config.h < ${filespath}/src__config.h.ed"
+}
+
 variant flac {
 	ui_error	"The libsndfile port is not compatible with the current version of flac."
 #	depends_lib	port:flac

Added: trunk/dports/audio/libsndfile/files/src__config.h.ed
===================================================================
--- trunk/dports/audio/libsndfile/files/src__config.h.ed	                        (rev 0)
+++ trunk/dports/audio/libsndfile/files/src__config.h.ed	2008-11-30 16:57:34 UTC (rev 42762)
@@ -0,0 +1,57 @@
+/CPU_CLIPS_NEGATIVE/c
+#ifdef __LP64__
+#define CPU_CLIPS_NEGATIVE 0
+#else
+#define CPU_CLIPS_NEGATIVE 1
+#endif
+.
+/CPU_CLIPS_POSITIVE/c
+#ifdef __LP64__
+#define CPU_CLIPS_POSITIVE 0
+#else
+#define CPU_CLIPS_POSITIVE 1
+#endif
+.
+/CPU_IS_BIG_ENDIAN/c
+#ifdef __BIG_ENDIAN__
+#define CPU_IS_BIG_ENDIAN 1
+#else
+#define CPU_IS_BIG_ENDIAN 0
+#endif
+.
+/CPU_IS_LITTLE_ENDIAN/c
+#ifdef __BIG_ENDIAN__
+#define CPU_IS_LITTLE_ENDIAN 0
+#else
+#define CPU_IS_LITTLE_ENDIAN 1
+#endif
+.
+/SIZEOF_LONG/c
+#ifdef __LP64__
+#define SIZEOF_LONG 8
+#else
+#define SIZEOF_LONG 4
+#endif
+.
+/SIZEOF_SIZE_T/c
+#ifdef __LP64__
+#define SIZEOF_SIZE_T 8
+#else
+#define SIZEOF_SIZE_T 4
+#endif
+.
+/SIZEOF_SSIZE_T/c
+#ifdef __LP64__
+#define SIZEOF_SSIZE_T 8
+#else
+#define SIZEOF_SSIZE_T 4
+#endif
+.
+/SIZEOF_VOIDP/c
+#ifdef __LP64__
+#define SIZEOF_VOIDP 8
+#else
+#define SIZEOF_VOIDP 4
+#endif
+.
+w
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081130/0573619a/attachment.html>


More information about the macports-changes mailing list