# ***************************************************************************
ifdef HAVE_DARWIN_OS
-all: .autoconf .libtool .automake .iconv .intl .pkgcfg .freetype .fribidi \
- .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
- .FLAC .speex .faad .faac .lame .ebml .matroska .ffmpeg .openslp \
+ all: .autoconf .libtool .automake .iconv .intl .pkgcfg .freetype .fribidi \
+ .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .x264 .theora \
+ .FLAC .speex .faad .faac .lame .twolame .ebml .matroska .ffmpeg .openslp \
.dvdcss .dvdread .dvdnav .dvbpsi .live .goom2k4 .caca .mod \
- .png .gpgerror .gcrypt .gnutls .daap .cddb .cdio .vcdimager .aclocal
+ .png .gpg-error .gcrypt .gnutls .daap .cddb .cdio .vcdimager .aclocal
# mozilla support? add before .aclocal: .glib .libidl .mozilla
-endif
+else
-ifeq ($(HOST),i586-pc-beos)
-ifeq ($(HOST),$(BUILD))
+ 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 .libtool .automake .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
+ else
# Cross compiling: we already have the Linux tools, only build the
# libraries now
-all: .iconv .intl .freetype .fribidi \
+ all: .iconv .intl .freetype .fribidi \
+ .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
+ .FLAC .speex .faad .faac .lame .twolame .ebml .matroska .ffmpeg .dvdcss \
+ .dvdread .dvdnav .dvbpsi .aclocal
+ endif
+ else
+# Standard Linux or other UNIX-like systems
+ all: .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
-endif
+ endif
endif
FORCE:
$(EXTRACT_GZ)
patch -p 0 < Patches/gettext.patch
-.intl: gettext
+.intl: gettext .iconv
( cd $< && ./configure $(HOSTCONF) --prefix=$(PREFIX) )
ifeq ($(BUILD),i586-pc-beos)
# The ugliest kludge ever - so libtool correctly links shared libraries
# libebml
# ***************************************************************************
+ifdef SVN
+libebml:
+ $(SVN) co http://svn.matroska.org/svn/matroska/trunk/libebml libebml
+else
libebml-$(LIBEBML_VERSION).tar.bz2:
$(WGET) $(LIBEBML_URL)
libebml: libebml-$(LIBEBML_VERSION).tar.bz2
$(EXTRACT_BZ2)
- patch -p 0 < Patches/libebml.patch
- -rm -rf $@/CVS
+endif
.ebml: libebml
- (cd $<; make -C make/linux prefix=$(PREFIX) $(HOSTCC2) && make -C make/linux install prefix=$(PREFIX))
+ (cd $<; make -C make/linux prefix=$(PREFIX) $(HOSTCC2) staticlib && make -C make/linux install_staticlib install_headers prefix=$(PREFIX))
$(RANLIB) $(PREFIX)/lib/libebml.a
touch $@
# libmatroska
# ***************************************************************************
+ifdef SVN
+libmatroska:
+ $(SVN) co http://svn.matroska.org/svn/matroska/trunk/libmatroska libmatroska
+else
libmatroska-$(LIBMATROSKA_VERSION).tar.bz2:
$(WGET) $(LIBMATROSKA_URL)
libmatroska: libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
$(EXTRACT_BZ2)
- -rm -rf $@/CVS
+endif
.matroska: libmatroska
- (cd $<; make -C make/linux prefix=$(PREFIX) $(HOSTCC2) && make -C make/linux install prefix=$(PREFIX))
+ (cd $<; make -C make/linux prefix=$(PREFIX) $(HOSTCC2) staticlib && make -C make/linux install_staticlib install_headers prefix=$(PREFIX))
$(RANLIB) $(PREFIX)/lib/libmatroska.a
touch $@
# ffmpeg
# ***************************************************************************
+# Note: at present, we check out the tree from 2005-04-30 because of
+# compilation issues. We will use the latest version again, when our
+# ffmpeg-module is fixed properly -- FK
ffmpeg:
echo $(FFMPEG_CVSROOT) A > ./ffmpeg.cvs
CVS_PASSFILE=./ffmpeg.cvs cvs -z3 -d $(FFMPEG_CVSROOT) co ffmpeg
patch -p 0 < Patches/live.patch
.live: live
- (cd $<; ./genmakefiles macosx && make )
+ (cd $<; ./genMakefiles macosx && make )
touch $@
CLEAN_FILE += .live
CLEAN_PKG += libdts
DISTCLEAN_PKG += libdts-$(LIBDTS_VERSION).tar.gz
+# ***************************************************************************
+# libdts
+# ***************************************************************************
+
+x264-$(X264_VERSION).tar.gz:
+ $(WGET) $(X264_URL)
+
+x264: x264-$(X264_VERSION).tar.gz
+ $(EXTRACT_GZ)
+ patch -p 0 < Patches/x264.patch
+ rm x264/x264.c
+
+.x264: x264
+ (cd $<; ./configure --enable-pthread --prefix=$(PREFIX) && make && make install)
+ touch $@
+
+CLEAN_FILE += .x264
+CLEAN_PKG += x264
+DISTCLEAN_PKG += x264-$(X264_VERSION).tar.gz
+
# ***************************************************************************
# libmodplug
# ***************************************************************************
DISTCLEAN_PKG += mash-src-$(MASH_VERSION).tar.gz
# ***************************************************************************
-# toolame
+# twolame
# ***************************************************************************
-toolame-$(TOOLAME_VERSION).tar.bz2:
- $(WGET) $(TOOLAME_URL)
+twolame-$(TWOLAME_VERSION).tar.gz:
+ $(WGET) $(TWOLAME_URL)
-toolame: toolame-$(TOOLAME_VERSION).tar.bz2
- $(EXTRACT_BZ2)
+twolame: twolame-$(TWOLAME_VERSION).tar.gz
+ $(EXTRACT_GZ)
-.toolame: toolame
- (cd toolame; ./configure --prefix=$(PREFIX) && make && make install)
+.twolame: twolame
+ (cd twolame; ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install)
$(INSTALL_NAME)
touch $@
-CLEAN_FILE += .toolame
-CLEAN_PKG += toolame
-DISTCLEAN_PKG += toolame-$(TOOLAME_VERSION).tar.bz2
+CLEAN_FILE += .twolame
+CLEAN_PKG += twolame
+DISTCLEAN_PKG += twolame-$(TWOLAME_VERSION).tar.bz2
# ***************************************************************************
# libpng
libgpg-error: libgpg-error-$(GPGERROR_VERSION).tar.gz
$(EXTRACT_GZ)
-.gpgerror: libgpg-error
- (cd $<; ./configure --prefix=$(PREFIX) && make && make install )
+.gpg-error: libgpg-error
+ (cd $<; ./configure --prefix=$(PREFIX) --disable-nls && make && make install )
+ $(INSTALL_NAME)
touch $@
-CLEAN_FILE += .gpgerror
+CLEAN_FILE += .gpg-error
CLEAN_PKG += libgpg-error
DISCLEAN_PKG += libgpg-error-$(GPGERROR_VERSION).tar.gz
$(EXTRACT_GZ)
patch -p 0 < Patches/gcrypt.patch
-.gcrypt: libgcrypt
+.gcrypt: libgcrypt .gpg-error
(cd $<; ./configure --prefix=$(PREFIX) CFLAGS="$(CFLAGS) -D_BSD_SOCKLEN_T_=int" && make && make install )
$(INSTALL_NAME)
touch $@
gnutls: gnutls-$(GNUTLS_VERSION).tar.bz2
$(EXTRACT_BZ2)
-.gnutls: gnutls
+.gnutls: gnutls .gcrypt .gpg-error
(cd $<; ./configure --prefix=$(PREFIX) && make && make install )
$(INSTALL_NAME)
touch $@