diff options
author | tsutsui <tsutsui@pkgsrc.org> | 2010-08-10 06:20:59 +0000 |
---|---|---|
committer | tsutsui <tsutsui@pkgsrc.org> | 2010-08-10 06:20:59 +0000 |
commit | 9bbc48294788f90d7a4234839d35be5783bc6946 (patch) | |
tree | 451521e6ba5bf830e38816b33298962c3d1d1117 /multimedia/smpeg | |
parent | d4a74fefe147eae7ced9acff862e3078b40d9b7e (diff) | |
download | pkgsrc-9bbc48294788f90d7a4234839d35be5783bc6946.tar.gz |
Fix build failure "#error Unknown endianism of architecture"
on NetBSD/arm (and other minor MACHINE_ARCHs).
Diffstat (limited to 'multimedia/smpeg')
-rw-r--r-- | multimedia/smpeg/distinfo | 4 | ||||
-rw-r--r-- | multimedia/smpeg/patches/patch-ac | 32 |
2 files changed, 31 insertions, 5 deletions
diff --git a/multimedia/smpeg/distinfo b/multimedia/smpeg/distinfo index 3ef2fd44960..01af6e5d2e4 100644 --- a/multimedia/smpeg/distinfo +++ b/multimedia/smpeg/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.5 2006/06/19 00:13:57 christos Exp $ +$NetBSD: distinfo,v 1.6 2010/08/10 06:20:59 tsutsui Exp $ SHA1 (smpeg-0.4.4.tar.gz) = 6d7f4449472e6270ab435b2224f3fad951c35259 RMD160 (smpeg-0.4.4.tar.gz) = d55249ad53417fa0df3d925aed0e83d2204e28b7 Size (smpeg-0.4.4.tar.gz) = 315054 bytes SHA1 (patch-aa) = 0a691663e1966dbd5d37225b11b6f5f6d9ad0bf0 SHA1 (patch-ab) = f0c168dc631149f14c92d2cd6cb5462af9869461 -SHA1 (patch-ac) = 60a8cd16216f4d2ec64b2727fa020d18dda7bec7 +SHA1 (patch-ac) = 6f0cdeb9864db4db6730c8137287a073172a09ab SHA1 (patch-ad) = 021ffc5024723173c8a6cda04ae6f70add974faa SHA1 (patch-ae) = 0c7646ec3ce331b6991d59d96efa1ba07fbb91e5 diff --git a/multimedia/smpeg/patches/patch-ac b/multimedia/smpeg/patches/patch-ac index 7af7271bd57..227bbd53657 100644 --- a/multimedia/smpeg/patches/patch-ac +++ b/multimedia/smpeg/patches/patch-ac @@ -1,7 +1,7 @@ -$NetBSD: patch-ac,v 1.1 2004/06/26 09:16:10 grant Exp $ +$NetBSD: patch-ac,v 1.2 2010/08/10 06:20:59 tsutsui Exp $ ---- video/video.h.orig 2004-03-01 02:14:39.000000000 +0100 -+++ video/video.h 2004-03-01 02:16:02.000000000 +0100 +--- video/video.h.orig 2001-02-10 07:36:42.000000000 +0000 ++++ video/video.h 2010-08-07 22:45:45.000000000 +0000 @@ -413,7 +413,7 @@ #define __SCO__ 1 #endif @@ -11,3 +11,29 @@ $NetBSD: patch-ac,v 1.1 2004/06/26 09:16:10 grant Exp $ #undef BIG_ENDIAN_ARCHITECTURE #define LITTLE_ENDIAN_ARCHITECTURE 1 #endif +@@ -424,6 +424,17 @@ + #endif + + #if !defined(LITTLE_ENDIAN_ARCHITECTURE) && !defined(BIG_ENDIAN_ARCHITECTURE) ++#if defined(__NetBSD__) ++#include <sys/endian.h> ++#if _BYTE_ORDER == _LITTLE_ENDIAN ++#undef BIG_ENDIAN_ARCHITECTURE ++#define LITTLE_ENDIAN_ARCHITECTURE 1 ++#endif ++#if _BYTE_ORDER == _BIG_ENDIAN ++#undef LITTLE_ENDIAN_ARCHITECTURE ++#define BIG_ENDIAN_ARCHITECTURE 1 ++#endif ++#else + #ifdef WIN32 + #undef BIG_ENDIAN_ARCHITECTURE + #define LITTLE_ENDIAN_ARCHITECTURE +@@ -444,6 +455,7 @@ + #endif + #endif + #endif ++#endif + + #if !defined(LITTLE_ENDIAN_ARCHITECTURE) && !defined(BIG_ENDIAN_ARCHITECTURE) + #error Unknown endianism of architecture |