pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/libmpeg3 Fixes the build under Darwin x86. ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d9467abc5fe1
branches:  trunk
changeset: 553548:d9467abc5fe1
user:      tonio <tonio%pkgsrc.org@localhost>
date:      Sat Jan 24 12:29:51 2009 +0000

description:
Fixes the build under Darwin x86. This should also fixes build on MacOSX 10.5.2 PPC

Should Fix PR pkg/38721

diffstat:

 multimedia/libmpeg3/Makefile         |   4 ++--
 multimedia/libmpeg3/distinfo         |   4 ++--
 multimedia/libmpeg3/patches/patch-ae |  14 ++++++++------
 3 files changed, 12 insertions(+), 10 deletions(-)

diffs (83 lines):

diff -r e832118be5a2 -r d9467abc5fe1 multimedia/libmpeg3/Makefile
--- a/multimedia/libmpeg3/Makefile      Sat Jan 24 12:13:21 2009 +0000
+++ b/multimedia/libmpeg3/Makefile      Sat Jan 24 12:29:51 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2008/04/03 09:41:25 joerg Exp $
+# $NetBSD: Makefile,v 1.13 2009/01/24 12:29:51 tonio Exp $
 #
 
 DISTNAME=      libmpeg3-1.7-src
@@ -16,7 +16,7 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if (${MACHINE_ARCH} == "i386")
+.if (${MACHINE_ARCH} == "i386" && ${OPSYS} != "Darwin")
 MAKE_ENV+=     USE_MMX=1
 MAKE_ENV+=     USE_CSS=1
 BUILD_DEPENDS+=        nasm-[0-9]*:../../devel/nasm
diff -r e832118be5a2 -r d9467abc5fe1 multimedia/libmpeg3/distinfo
--- a/multimedia/libmpeg3/distinfo      Sat Jan 24 12:13:21 2009 +0000
+++ b/multimedia/libmpeg3/distinfo      Sat Jan 24 12:29:51 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.16 2008/06/21 11:45:55 drochner Exp $
+$NetBSD: distinfo,v 1.17 2009/01/24 12:29:51 tonio Exp $
 
 SHA1 (libmpeg3-1.7-src.tar.bz2) = 577da1ddf77f1e1fcd1deb69829eec3567daed36
 RMD160 (libmpeg3-1.7-src.tar.bz2) = f1989c4b52d97ee29833edc79efd731b6219f126
@@ -6,7 +6,7 @@
 SHA1 (patch-aa) = c05dfda5b2b43593044af2328244858453add46c
 SHA1 (patch-ac) = f83af5e90c93f7d02395923d2f93fb916057c434
 SHA1 (patch-ad) = 86edf9af264370bf89050b02e956b5bacc86881e
-SHA1 (patch-ae) = 4228069c44de3240f91765d952991812fcf340d7
+SHA1 (patch-ae) = ccd6908e29c779a83df9ef1e3b5cf785cfa1dcef
 SHA1 (patch-ag) = bf321ac689b82889ca1a2bb8a96cb6e387280f32
 SHA1 (patch-ah) = d39f80c08cc0b624486389893c8e8ac061953fa2
 SHA1 (patch-ai) = 859735f677cb469b782e27da2a14bacd3fd02003
diff -r e832118be5a2 -r d9467abc5fe1 multimedia/libmpeg3/patches/patch-ae
--- a/multimedia/libmpeg3/patches/patch-ae      Sat Jan 24 12:13:21 2009 +0000
+++ b/multimedia/libmpeg3/patches/patch-ae      Sat Jan 24 12:29:51 2009 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ae,v 1.11 2008/06/21 11:45:56 drochner Exp $
+$NetBSD: patch-ae,v 1.12 2009/01/24 12:29:51 tonio Exp $
 
 --- mpeg3io.c.orig     2005-05-01 07:57:56.000000000 +0200
-+++ mpeg3io.c  2008-02-19 19:25:09.000000000 +0100
-@@ -1,11 +1,32 @@
++++ mpeg3io.c
+@@ -1,11 +1,34 @@
  #include "mpeg3private.h"
  #include "mpeg3protos.h"
  
@@ -19,10 +19,12 @@
 +# if defined(__APPLE__) && defined(__MACH__)
 +#include <sys/cdefs.h>
 +# endif
-+# if (defined(__NetBSD__) && __NetBSD_Version__ >= 299000900 /* 2.99.9 */) || defined(__DragonFly__) || (defined(__APPLE__) && defined(__MACH__) && !defined(__DARWIN_64_BIT_INO_T) /* MacOSX < 10.5 
*/)
++# if (defined(__NetBSD__) && __NetBSD_Version__ >= 299000900 /* 2.99.9 */) || defined(__DragonFly__) || (defined(__APPLE__) && defined(__MACH__))
 +#  define fopen64 fopen
 +#  define fseeko64 fseek
++#  if (defined(__APPLE__) && defined(__MACH__) && !defined(__DARWIN_64_BIT_INO_T) /* MacOSX < 10.5 */)
 +#  define stat64 stat
++#  endif
 +# endif
 +# if defined(__NetBSD__) && __NetBSD_Version__ >= 299000900 /* 2.99.9 */
 +#  define statfs statvfs
@@ -37,7 +39,7 @@
  
  mpeg3_fs_t* mpeg3_new_fs(char *path)
  {
-@@ -215,16 +231,26 @@
+@@ -215,16 +238,26 @@ void mpeg3io_complete_path(char *complet
  
  int mpeg3io_device(char *path, char *device)
  {
@@ -64,7 +66,7 @@
        fp = setmntent(MOUNTED, "r");
      while(fp && (mnt = getmntent(fp)))
        {
-@@ -236,6 +262,7 @@
+@@ -236,6 +269,7 @@ int mpeg3io_device(char *path, char *dev
                }
        }
        endmntent(fp);



Home | Main Index | Thread Index | Old Index