pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/ffmpeg Switch to a more portable endiannes ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c0d351f3a161
branches:  trunk
changeset: 394631:c0d351f3a161
user:      ahoka <ahoka%pkgsrc.org@localhost>
date:      Sun Jun 14 11:27:00 2009 +0000

description:
Switch to a more portable endiannes check in the configure script.
Fixes build on NetBSD 4.0 and possibly many more platforms.

diffstat:

 multimedia/ffmpeg/distinfo                |   4 ++--
 multimedia/ffmpeg/patches/patch-configure |  23 ++++++++++++++++++++---
 2 files changed, 22 insertions(+), 5 deletions(-)

diffs (48 lines):

diff -r e660acb8842f -r c0d351f3a161 multimedia/ffmpeg/distinfo
--- a/multimedia/ffmpeg/distinfo        Sun Jun 14 11:06:38 2009 +0000
+++ b/multimedia/ffmpeg/distinfo        Sun Jun 14 11:27:00 2009 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.24 2009/06/14 01:04:44 hasso Exp $
+$NetBSD: distinfo,v 1.25 2009/06/14 11:27:00 ahoka Exp $
 
 SHA1 (ffmpeg-20090611.tar.bz2) = 04e67497f70c64b7a26534d4b67e3a46cdb4b219
 RMD160 (ffmpeg-20090611.tar.bz2) = 447a72cd1a416f926100c61299d9012535909d9a
 Size (ffmpeg-20090611.tar.bz2) = 2799194 bytes
 SHA1 (patch-bktr) = dadd96835ffbf3a95a5de75647a72edb53171b6f
-SHA1 (patch-configure) = 13ca14bbcb544e7f5168517a0e2a6c6dc9826847
+SHA1 (patch-configure) = c4f5cbe0cecac291547a9fd652f3e6c3c92fde2c
diff -r e660acb8842f -r c0d351f3a161 multimedia/ffmpeg/patches/patch-configure
--- a/multimedia/ffmpeg/patches/patch-configure Sun Jun 14 11:06:38 2009 +0000
+++ b/multimedia/ffmpeg/patches/patch-configure Sun Jun 14 11:27:00 2009 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-configure,v 1.5 2009/06/14 01:04:44 hasso Exp $
+$NetBSD: patch-configure,v 1.6 2009/06/14 11:27:01 ahoka Exp $
 
---- configure.orig     2009-06-14 03:13:44 +0300
-+++ configure  2009-06-14 03:20:42 +0300
+--- configure.orig     2009-06-10 22:50:53.000000000 +0200
++++ configure
 @@ -1632,6 +1632,8 @@ case $target_os in
      freebsd)
          disable need_memalign
@@ -11,3 +11,20 @@
      bsd/os)
          osextralibs="-lpoll -lgnugetopt"
          strip="strip -d"
+@@ -1996,10 +1998,13 @@ enabled vis && add_cflags -mcpu=ultraspa
+ 
+ # ---
+ # big/little-endian test
+-check_cc <<EOF || die "endian test failed"
+-unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
++check_exec <<EOF || enable bigendian
++int main()
++{
++ long one = 1;
++ return !(*((char *)(&one)));
++}
+ EOF
+-od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
+ 
+ # ---
+ # check availability of some header files



Home | Main Index | Thread Index | Old Index