]> git.sesse.net Git - vlc/blobdiff - extras/contrib/src/Makefile
* use the ffmpeg-cvs-trunk from 09/27 and not the current one. This snap compiles...
[vlc] / extras / contrib / src / Makefile
index bfc0e65f5d515e81255cc4c5bac32d2120f69130..24ad859b6d4bd80d24415f7bcdbe9821dd3a967f 100644 (file)
@@ -6,6 +6,8 @@
 #
 # Authors: Christophe Massiot <massiot@via.ecp.fr>
 #          Derk-Jan Hartman <hartman at videolan dot org>
+#          Eric Petit <titer@m0k.org>
+#          Felix Kühne <fkuehne@users.sourceforge.net>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -48,7 +50,7 @@ export PATH = $(PREFIX)/bin:.:/boot/home/config/bin:/bin:/boot/apps:/boot/prefer
 export LIBRARY_PATH = $(PREFIX)/lib:%A/lib:/boot/home/config/lib:/boot/beos/system/lib
 else
 # Cross compiling from Linux
-export PATH = $(PREFIX)/bin:/opt/cross-tools/bin:/usr/bin:/bin
+export PATH = $(PREFIX)/bin:/opt/beos-tools/bin:/opt/cross-tools/bin:/usr/bin:/bin
 endif
 endif
 
@@ -76,25 +78,28 @@ else
 # Building natively
 RANLIB=ranlib
 endif
+ifeq ($(HOST),i586-pc-beos)
+FFMPEGCONF+=--cpu=x86
+endif
 
 # ***************************************************************************
 # Standard rules
 # ***************************************************************************
 
 ifdef HAVE_DARWIN_OS
- all: .autoconf .libtool .automake .iconv .intl .pkgcfg .freetype .fribidi \
+ all: .autoconf .automake .libtool .iconv .intl .pkgcfg .freetype .fribidi \
        .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .x264 .theora \
-       .FLAC .speex .faad .faac .lame .twolame .ebml .matroska .ffmpeg .openslp \
+       .FLAC .speex .shout .faad .faac .lame .twolame .ebml .matroska .ffmpeg .openslp \
        .dvdcss .dvdread .dvdnav .dvbpsi .live .goom2k4 .caca .mod \
-       .png .gpg-error .gcrypt .gnutls .daap .cddb .cdio .vcdimager .SDL_image \
-       .aclocal
-# mozilla support? add before .aclocal:  .glib .libidl .mozilla
+       .png .gpg-error .gcrypt .gnutls .opendaap .cddb .cdio .vcdimager .SDL_image \
+       .glib .libidl .gecko .aclocal
+# .mozilla will build an entire mozilla. it can be used if we need to create a new .gecko package
 else
 
  ifeq ($(HOST),i586-pc-beos)
   ifeq ($(HOST),$(BUILD))
 # Native build: we need perl, autoconf, etc first
-   all: .perl .autoconf .libtool .automake .iconv .intl .freetype .fribidi \
+   all: .perl .autoconf .automake .libtool .iconv .intl .freetype .fribidi \
        .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
        .FLAC .speex .faad .faac .lame .ebml .matroska .ffmpeg .dvdcss \
        .dvdread .dvdnav .dvbpsi .aclocal
@@ -109,9 +114,9 @@ else
  else
 # Standard Linux or other UNIX-like systems
    all: .iconv .intl .freetype .fribidi \
-       .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
+       .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .x264 .theora \
        .FLAC .speex .faad .faac .lame .ebml .matroska .ffmpeg .dvdcss \
-       .dvdread .dvdnav .dvbpsi .aclocal
+       .dvdread .dvdnav .dvbpsi .live .aclocal
  endif
 endif
 
@@ -228,6 +233,10 @@ ifdef HAVE_DARWIN_OS
        if test -x /usr/bin/glibtoolize; then \
                ln -sf /usr/bin/glibtoolize $(PREFIX)/bin/libtoolize ; \
        fi
+       if test -f /usr/share/aclocal/libtool.m4; then \
+               mkdir -p $(PREFIX)/share/aclocal ; \
+               ln -sf /usr/share/aclocal/libtool.m4 $(PREFIX)/share/aclocal ; \
+       fi
        touch $@
 endif
 
@@ -477,6 +486,7 @@ libogg-$(OGG_VERSION).tar.gz:
 
 libogg: libogg-$(OGG_VERSION).tar.gz
        $(EXTRACT_GZ)
+       patch -p 0 < Patches/ogg.patch
 
 .ogg: libogg
        (cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install)
@@ -505,11 +515,9 @@ libvorbis: libvorbis-$(VORBIS_VERSION).tar.gz
        $(EXTRACT_GZ)
 
 .vorbis: libvorbis .ogg
-# libvorbis' configure doesn't handle --host
-# FIXME: shared libs disabled for now because configure thinks we should
-# link the .so to -lc when cross-compiling to BeOS (-> fails)
-#   -- titer 2005/02/12
-       (cd $<; $(HOSTCC) ./configure --prefix=$(PREFIX) --disable-shared && make && make install)
+# FIXME: shared libs disabled for now because of linking errors
+#   -- titer 2005/09/16
+       (cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-shared && make && make install)
 #      $(INSTALL_NAME)
        touch $@
 
@@ -530,10 +538,10 @@ libtheora-$(THEORA_VERSION).tar.bz2:
 
 libtheora: libtheora-$(THEORA_VERSION).tar.bz2
        $(EXTRACT_BZ2)
-       patch -p 0 < Patches/theora.patch
+       patch -p0 < Patches/theora.patch
 
-.theora: libtheora
-       (cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install)
+.theora: libtheora .ogg
+       (cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-sdltest --disable-oggtest --disable-vorbistest && make && make install)
        $(INSTALL_NAME)
        touch $@
 
@@ -541,6 +549,25 @@ CLEAN_FILE += .theora
 CLEAN_PKG += libtheora
 DISTCLEAN_PKG += libtheora-$(THEORA_VERSION).tar.bz2
 
+# ***************************************************************************
+# shout
+# ***************************************************************************
+
+libshout-$(SHOUT_VERSION).tar.gz:
+       $(WGET) $(SHOUT_URL)
+
+libshout: libshout-$(SHOUT_VERSION).tar.gz
+       $(EXTRACT_GZ)
+
+.shout: libshout .theora .ogg
+       (cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install)
+       $(INSTALL_NAME)
+       touch $@
+
+CLEAN_FILE += .shout
+CLEAN_PKG += libshout
+DISTCLEAN_PKG += libshout-$(SHOUT_VERSION).tar.gz
+
 # ***************************************************************************
 # flac
 # ***************************************************************************
@@ -569,7 +596,7 @@ speex-$(SPEEX_VERSION).tar.gz:
 
 speex: speex-$(SPEEX_VERSION).tar.gz
        $(EXTRACT_GZ)
-       patch -p 0 < Patches/speex.patch
+       patch -p0 < Patches/speex.patch
 
 .speex: speex
        (cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) --enable-ogg=no && make && make install)
@@ -695,12 +722,13 @@ DISTCLEAN_PKG += libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
 # ffmpeg
 # ***************************************************************************
 
-# Note: at present, we check out the tree from 2005-08-01 because of 
-# compilation issues. We will use the latest version again, when our
-# ffmpeg-module is fixed properly --Meuuh
+# Note: we are using this cvs-snapshot of ffmpeg now, because this one 
+# compiles finely on 10.2 and is used in the win32-port as well, so we
+# experience the same bugs in both ports ;)
+
 ffmpeg:
        echo $(FFMPEG_CVSROOT) A > ./ffmpeg.cvs
-       CVS_PASSFILE=./ffmpeg.cvs cvs -z3 -d $(FFMPEG_CVSROOT) co -D "2005-08-01 20:02:00 +0000" ffmpeg
+       CVS_PASSFILE=./ffmpeg.cvs cvs -z3 -d $(FFMPEG_CVSROOT) co -D "2005-09-27" ffmpeg
        patch -p 0 < Patches/ffmpeg.patch.cvs
 #      (cd $@; ./bootstrap)
 
@@ -712,7 +740,7 @@ ffmpeg-$(FFMPEG_VERSION).tar.gz:
 #      patch -p 0 < Patches/ffmpeg.patch
 
 .ffmpeg: ffmpeg
-       (cd $<; ./configure $(FFMPEGCONF) --prefix=$(PREFIX) --extra-cflags="$(CFLAGS) -DRUNTIME_CPUDETECT" --extra-ldflags="$(LDFLAGS)" --enable-gpl --enable-mp3lame --enable-faac --enable-pp --disable-vhook --disable-audio-beos --disable-ffserver --disable-vorbis --disable-faad --enable-mp3lame --enable-zlib --enable-a52 --disable-ffplay && make && make -C libavcodec/libpostproc install && make -C libavcodec installlib && make -C libavformat installlib)
+       (cd $<; ./configure $(FFMPEGCONF) --prefix=$(PREFIX) --extra-cflags="$(CFLAGS) -DRUNTIME_CPUDETECT" --extra-ldflags="$(LDFLAGS)" --enable-gpl --enable-mp3lame --enable-faac --enable-pp --disable-vhook --disable-audio-beos --disable-ffserver --enable-mp3lame --enable-a52 --disable-ffplay && make && make -C libavcodec/libpostproc install && make -C libavcodec installlib && make -C libavformat installlib && make -C libavutil installlib)
        touch $@
 
 CLEAN_FILE += .ffmpeg
@@ -742,11 +770,17 @@ DISTCLEAN_PKG += openslp-$(OPENSLP_VERSION).tar.gz
 # libdvdcss
 # ***************************************************************************
 
+ifdef SVN
+libdvdcss: 
+       $(SVN) co svn://svn.videolan.org/libdvdcss/trunk libdvdcss
+       cd $@ && sh bootstrap
+else
 libdvdcss-$(LIBDVDCSS_VERSION).tar.gz:
        $(WGET) $(LIBDVDCSS_URL)
 
 libdvdcss: libdvdcss-$(LIBDVDCSS_VERSION).tar.gz
        $(EXTRACT_GZ)
+endif
 
 .dvdcss: libdvdcss
        (cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install)
@@ -825,15 +859,19 @@ DISTCLEAN_PKG += libdvbpsi3-$(LIBDVBPSI_VERSION).tar.gz
 # live
 # ***************************************************************************
 
-live-$(LIVEDOTCOM_VERSION).tar.gz:
+live555-$(LIVEDOTCOM_VERSION).tar.gz:
        $(WGET) $(LIVEDOTCOM_URL)
 
-live: live-$(LIVEDOTCOM_VERSION).tar.gz
+live: live555-$(LIVEDOTCOM_VERSION).tar.gz
        $(EXTRACT_GZ)
        patch -p 0 < Patches/live.patch
 
 .live: live
+ifeq ($(HOST),ppc-darwin)
+       (cd $<; ./genMakefiles macosx-before-version-10.4 && make )
+else
        (cd $<; ./genMakefiles macosx && make )
+endif
        touch $@
 
 CLEAN_FILE += .live
@@ -922,9 +960,15 @@ CLEAN_PKG += libdts
 DISTCLEAN_PKG += libdts-$(LIBDTS_VERSION).tar.gz
 
 # ***************************************************************************
-# libdts
+# libx264
 # ***************************************************************************
 
+ifdef SVN
+x264: 
+       $(SVN) co svn://svn.videolan.org/x264/trunk/ x264
+       cd x264 && patch -p 0 < ../Patches/x264_svn.patch
+       rm x264/x264.c
+else
 x264-$(X264_VERSION).tar.gz:
        $(WGET) $(X264_URL)
 
@@ -932,6 +976,7 @@ x264: x264-$(X264_VERSION).tar.gz
        $(EXTRACT_GZ)
        patch -p 0 < Patches/x264.patch
        rm x264/x264.c
+endif
 
 .x264: x264
        (cd $<; ./configure --enable-pthread --prefix=$(PREFIX) && make && make install)
@@ -963,12 +1008,11 @@ DISTCLEAN_PKG += libmodplug-$(MODPLUG_VERSION).tar.gz
 # libcddb
 # ***************************************************************************
 
-libcddb-$(CDDB_VERSION).tar.gz:
+libcddb-$(CDDB_VERSION).tar.bz2:
        $(WGET) $(CDDB_URL)
 
-libcddb: libcddb-$(CDDB_VERSION).tar.gz
-       $(EXTRACT_GZ)
-       patch -p 0 < Patches/libcddb.patch
+libcddb: libcddb-$(CDDB_VERSION).tar.bz2
+       $(EXTRACT_BZ2)
 
 .cddb: libcddb
        (cd $<; ./configure --prefix=$(PREFIX) --disable-shared --enable-static CFLAGS="$(CFLAGS) -D_BSD_SOCKLEN_T_=int" LDFLAGS="$(LDFLAGS) -liconv" && make && make install)
@@ -976,7 +1020,7 @@ libcddb: libcddb-$(CDDB_VERSION).tar.gz
 
 CLEAN_FILE += .cddb
 CLEAN_PKG += libcddb
-DISTCLEAN_PKG += libcddb-$(CDDB_VERSION).tar.gz
+DISTCLEAN_PKG += libcddb-$(CDDB_VERSION).tar.bz2
 
 # ***************************************************************************
 # vcdimager
@@ -1163,11 +1207,12 @@ libopendaap: libopendaap-$(DAAP_VERSION).tar.bz2
        $(EXTRACT_BZ2)
        patch -p 0 < Patches/daap.patch
 
-.daap: libopendaap
+.opendaap: libopendaap
        (cd $<; ./configure --prefix=$(PREFIX) CFLAGS="$(CFLAGS) -D_BSD_SOCKLEN_T_=int" && make install)
+       $(INSTALL_NAME)
        touch $@
 
-CLEAN_FILE += .daap
+CLEAN_FILE += .opendaap
 CLEAN_PKG += libopendaap
 DISTCLEAN_PKG += libopendaap-$(DAAP_VERSION).tar.bz2
 
@@ -1207,6 +1252,24 @@ CLEAN_FILE += .libidl
 CLEAN_PKG += libIDL
 DISTCLEAN_PKG += libIDL-$(LIBIDL_VERSION).tar.gz
 
+# ***************************************************************************
+# Gecko SDK
+# ***************************************************************************
+
+gecko-sdk-ppc-macosx10.2-1.7.5.tar.gz:
+       $(WGET) $(GECKO_SDK_MAC_URL)
+
+gecko-sdk: gecko-sdk-ppc-macosx10.2-1.7.5.tar.gz
+       $(EXTRACT_GZ)
+
+.gecko: gecko-sdk
+       (cd $<)
+       touch $@
+
+CLEAN_FILE += .gecko
+CLEAN_PKG += gecko-sdk
+DISTCLEAN_PKG += gecko-sdk-ppc-macosx10.2-1.7.5.tar.gz
+
 # ***************************************************************************
 # mozilla
 # ***************************************************************************
@@ -1296,7 +1359,7 @@ SDL_image: SDL_image-$(SDL_IMAGE_VERSION).tar.gz
        patch -p 0 < Patches/SDL_image.patch
 
 .SDL_image: SDL_image .SDL .png .jpeg .tiff
-       (cd $<; ./configure --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" && make && make install)
+       (cd $<; ./configure --prefix=$(PREFIX) --enable-tif CFLAGS="$(CFLAGS)" && make && make install)
        $(INSTALL_NAME)
        touch $@