#
# 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
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
# 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
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
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
libogg: libogg-$(OGG_VERSION).tar.gz
$(EXTRACT_GZ)
+ patch -p 0 < Patches/ogg.patch
.ogg: libogg
(cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install)
$(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 $@
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 $@
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
# ***************************************************************************
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)
# 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)
# 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
# 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)
# 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
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)
$(EXTRACT_GZ)
patch -p 0 < Patches/x264.patch
rm x264/x264.c
+endif
.x264: x264
(cd $<; ./configure --enable-pthread --prefix=$(PREFIX) && make && make install)
# 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)
CLEAN_FILE += .cddb
CLEAN_PKG += libcddb
-DISTCLEAN_PKG += libcddb-$(CDDB_VERSION).tar.gz
+DISTCLEAN_PKG += libcddb-$(CDDB_VERSION).tar.bz2
# ***************************************************************************
# vcdimager
$(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
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
# ***************************************************************************
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 $@