]> git.sesse.net Git - vlc/commitdiff
* patch libtwolame and re-enable x264 as it was fixed upstream. all contribs are...
authorFelix Paul Kühne <fkuehne@videolan.org>
Sat, 6 Jan 2007 16:21:41 +0000 (16:21 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 6 Jan 2007 16:21:41 +0000 (16:21 +0000)
extras/contrib/bootstrap
extras/contrib/src/Makefile
extras/contrib/src/Patches/twolame-osx.patch [new file with mode: 0644]

index 8d0c7656e295298ca8e0bfdca040c5f52237d71b..60480f2adb57d06f1d48df98491f719ac22064b4 100755 (executable)
@@ -57,9 +57,9 @@ fi
 case $HOST in
     ppc-darwin)
 # Mac OS X < 10.4
-           echo "HAVE_DARWIN_OS = 1" >> config.mak
-           EXTRA_CPPFLAGS=" -no-cpp-precomp"
-           echo "PATH = /bin:/usr/bin" >> config.mak
+           echo "Your version of Mac OS X is too old!" >&2
+           echo "Compiling VLC requires 10.4.x or later" >&2
+           exit 1
        ;;
     powerpc-apple-darwin8)
 # Mac OS X 10.4
@@ -134,10 +134,6 @@ case $HOST in
         ;;
 esac
 
-if test `uname -r` = "9.0.0d5"; then
-echo "HAVE_FUTURE_DARWIN_OS = 1" >> config.mak
-fi
-
 echo "BUILD = $BUILD" >> config.mak
 echo "HOST = $HOST" >> config.mak
 
index 769ac32867812b9c49a972449f2b18ed474da5a8..4383519277119b5e4072c6a0158f199929f76f59 100644 (file)
@@ -144,23 +144,13 @@ endif
 # ***************************************************************************
 
 ifdef HAVE_DARWIN_OS
-  ifdef HAVE_FUTURE_DARWIN_OS
-     all: .autoconf .automake .libtool .intl .pkgcfg .freetype .fribidi \
-        .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
-        .FLAC .speex .shout .faad .faac .lame .ebml .matroska .ffmpeg \
-        .dvdcss .dvdnav .dvdread .dvbpsi .live .caca .mod \
-        .png .gpg-error .gcrypt .gnutls .opendaap .cddb .cdio .vcdimager \
-        .SDL_image .glib .libidl .gecko .mpcdec .dirac_encoder .dirac_decoder \
-        .libdca .tag .goom2k4 .aclocal
-  else
-     all: .autoconf .automake .libtool .intl .pkgcfg .freetype .fribidi \
-        .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
-        .FLAC .speex .shout .faad .faac .lame .twolame .ebml .matroska .ffmpeg \
-        .dvdcss .dvdnav .dvdread .dvbpsi .live .caca .mod \
-        .png .gpg-error .gcrypt .gnutls .opendaap .cddb .cdio .vcdimager \
-        .SDL_image .glib .libidl .gecko .mpcdec .dirac_encoder .dirac_decoder \
-        .libdca .tag .x264 .goom2k4 .aclocal
-  endif
+ all: .autoconf .automake .libtool .intl .pkgcfg .freetype .fribidi \
+    .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
+    .FLAC .speex .shout .faad .faac .lame .twolame .ebml .matroska .ffmpeg \
+    .dvdcss .dvdnav .dvdread .dvbpsi .live .caca .mod \
+    .png .gpg-error .gcrypt .gnutls .opendaap .cddb .cdio .vcdimager \
+    .SDL_image .glib .libidl .gecko .mpcdec .dirac_encoder .dirac_decoder \
+    .libdca .tag .x264 .goom2k4 .aclocal
 # .expat .clinkcc don't work with SDK yet
 # .glib .libidl .gecko are required to build the mozilla plugin
 # .mozilla will build an entire mozilla. it can be used if we need to create a new .gecko package
@@ -1458,6 +1448,9 @@ twolame: twolame-$(TWOLAME_VERSION).tar.gz
 ifdef HAVE_BEOS
        patch -p0 < Patches/twolame-BeOS.patch
 endif
+ifdef HAVE_DARWIN_OS
+       patch -p0 < Patches/twolame-osx.patch
+endif
 
 .twolame: twolame
        (cd twolame; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install)
diff --git a/extras/contrib/src/Patches/twolame-osx.patch b/extras/contrib/src/Patches/twolame-osx.patch
new file mode 100644 (file)
index 0000000..c9eecfa
--- /dev/null
@@ -0,0 +1,23 @@
+--- twolame.orig/libtwolame/bitbuffer.c        2006-05-23 19:27:49.000000000 +0200
++++ twolame/libtwolame/bitbuffer.c     2007-01-06 17:04:49.000000000 +0100
+@@ -73,7 +73,7 @@
+ }
+ /*write N bits into the bit stream */
+-inline void buffer_putbits (bit_stream * bs, unsigned int val, int N)
++void buffer_putbits (bit_stream * bs, unsigned int val, int N)
+ {
+       static const int putmask[9] = { 0x0, 0x1, 0x3, 0x7, 0xf, 0x1f, 0x3f, 0x7f, 0xff };
+       register int j = N;
+
+--- twolame.orig/libtwolame/bitbuffer.h        2006-05-23 19:27:49.000000000 +0200
++++ twolame/libtwolame/bitbuffer.h     2007-01-06 17:04:56.000000000 +0100
+@@ -40,7 +40,7 @@
+ void buffer_deinit( bit_stream ** bs );
+ void buffer_put1bit (bit_stream *, int);
+-inline void buffer_putbits (bit_stream *, unsigned int, int);
++void buffer_putbits (bit_stream *, unsigned int, int);
+ unsigned long buffer_sstell (bit_stream *);
+ #endif