Commit 3b099bef authored by Christophe Massiot's avatar Christophe Massiot

* New build system for the contrib packages of VLC. It supports to

  download a precompiled binary package, or to build all the packages
  from the sources, at the user's option. It is currently written for
  Mac OS X, but could easily be ported to other platforms.
parent b7d624b9
......@@ -466,6 +466,10 @@ VLC.app: vlc
then $(INSTALL) "$$i$(LIBEXT)" \
"$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
fi ; done
if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
cp -R $(top_builddir)/extras/contrib/vlc-lib \
$(top_builddir)/VLC.app/Contents/MacOS/lib ; \
fi
$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share
$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http
$(INSTALL) -m 644 $(srcdir)/share/http/*.html \
......@@ -658,7 +662,7 @@ package-macosx:
cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
# Create disk image
$(srcdir)/extras/MacOSX/macosx-dmg 18 "vlc-${VERSION}" $(top_builddir)/tmp/*
$(srcdir)/extras/MacOSX/macosx-dmg 25 "vlc-${VERSION}" $(top_builddir)/tmp/*
# Clean up
rm -Rf $(top_builddir)/tmp
......
#! /bin/sh
## bootstrap file for the VLC media player
## $Id: bootstrap,v 1.82 2003/11/06 10:09:16 sam Exp $
## $Id: bootstrap,v 1.83 2003/11/15 01:21:48 massiot Exp $
##
## Authors: Sam Hocevar <sam@zoy.org>
......@@ -29,6 +29,13 @@ set -x
AUTOMAKESUCKS=no
INSTALLSUCKS=no
# Check for contrib directory
if test -d extras/contrib/bin; then
export PATH=./extras/contrib/bin:$PATH
export LD_LIBRARY_PATH=./extras/contrib/lib:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=./extras/contrib/lib:$DYLD_LIBRARY_PATH
fi
# Check for automake
amvers="none"
if automake-1.7 --version >/dev/null 2>&1; then
......
dnl Autoconf settings for vlc
dnl $Id: configure.ac,v 1.112 2003/11/10 17:47:42 gbazin Exp $
dnl $Id: configure.ac,v 1.113 2003/11/15 01:21:48 massiot Exp $
AC_INIT(vlc,0.6.3-cvs)
......@@ -53,6 +53,7 @@ AC_CHECK_TOOL(STRIP, strip, :)
AC_CHECK_TOOL(AR, ar, :)
AC_CHECK_TOOL(LD, ld, :)
dnl Sam, if you think I didn't see that... --Meuuh
dnl AM_PROG_LIBTOOL
AC_PROG_INSTALL
......@@ -60,6 +61,30 @@ dnl Check for compiler properties
AC_C_CONST
AC_C_INLINE
dnl
dnl Check for the contrib directory
dnl
topdir="`pwd`"
if test -d ${topdir}/extras/contrib/lib; then
export PATH=${topdir}/extras/contrib/bin:$PATH
export LD_LIBRARY_PATH=${topdir}/extras/contrib/lib:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=${topdir}/extras/contrib/lib:$DYLD_LIBRARY_PATH
CPPFLAGS="${CPPFLAGS} -I${topdir}/extras/contrib/include"
CPPFLAGS_save="${CPPFLAGS_save} -I${topdir}/extras/contrib/include"
CFLAGS="${CFLAGS} -I${topdir}/extras/contrib/include"
CFLAGS_save="${CFLAGS_save} -I${topdir}/extras/contrib/include"
CXXFLAGS="${CXXFLAGS} -I${topdir}/extras/contrib/include"
CXXFLAGS_save="${CXXFLAGS_save} -I${topdir}/extras/contrib/include"
OBJCFLAGS="${OBJCFLAGS} -I${topdir}/extras/contrib/include"
OBJCFLAGS_save="${OBJCFLAGS_save} -I${topdir}/extras/contrib/include"
if test -d ${topdir}/extras/contrib/vlc-lib; then
LDFLAGS="${LDFLAGS} -L${topdir}/extras/contrib/vlc-lib"
LDFLAGS_save="${LDFLAGS_save} -L${topdir}/extras/contrib/vlc-lib"
fi
LDFLAGS="${LDFLAGS} -L${topdir}/extras/contrib/lib"
LDFLAGS_save="${LDFLAGS_save} -L${topdir}/extras/contrib/lib"
fi
dnl
dnl Set default values
dnl
......
bin
doc
etc
include
info
lib
man
sbin
share
vlc-lib
config.mak
contrib.tar.bz2
# ***************************************************************************
# Makefile : Build vlc-contrib files
# ***************************************************************************
# Copyright (C) 2003 VideoLAN
# $Id: Makefile,v 1.1 2003/11/15 01:21:48 massiot Exp $
#
# Authors: Christophe Massiot <massiot@via.ecp.fr>
#
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
# ***************************************************************************
include ./config.mak
BUILDDIRS = bin doc etc include info lib man sbin share vlc-lib
all: FORCE
@echo "Do you mean to make src or make bin ?"
src: FORCE
$(MAKE) -C src all
bin: FORCE
$(WGET) $(CONTRIB_URL)
bunzip2 -c $< | tar xf -
clean-src: FORCE
$(MAKE) -C src clean-src
clean-bin: FORCE
rm -rf $(BUILDDIRS)
$(MAKE) -C src clean-dots
clean: FORCE
@echo "Do you mean to clean-src or clean-bin ?"
package: FORCE
tar cf - bin include lib vlc-lib share/aclocal* share/autoconf* \
share/automake* share/gettext* \
| bzip2 -c > contrib.tar.bz2
FORCE:
This is the contrib build system for VLC Media Player. It has been
primarily developed for Mac OS X, though it should be easy to adapt to
other operating systems.
To use it, first type :
./bootstrap
Customize config.mak if you need type, then you need to choose between
building from source (can take a long time but is easily customizable)
and fetching a pre-compiled binary package. Either type 'make src'
or 'make bin'.
Once the contribs are built, you can start building VLC. VLC's bootstrap
and configure scripts will automatically detect the contrib directory,
but you still need to specify which plug-ins you want to build (though
it is unnecessary to add --with-* or --with-*-tree). For instance my
configure line is :
./configure --disable-x11 --disable-xvideo --disable-gtk --disable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame --enable-mad --enable-libdvbpsi --enable-a52 --enable-dvdplay --enable-faad --enable-vorbis --enable-theora --enable-ogg --enable-slp --enable-flac --enable-libmpeg2 --enable-mkv --enable-speex --enable-debug
Then for Darwin, 'make' will build the VLC.app application and copy the
contrib libs to VLC.app/Contents/MacOS/lib. The application is ready.
Happy hacking.
--Meuuh 2003-11-15
#!/bin/sh
# ***************************************************************************
# bootstrap : Set up config.mak
# ***************************************************************************
# Copyright (C) 2003 VideoLAN
# $Id: bootstrap,v 1.1 2003/11/15 01:21:48 massiot Exp $
#
# Authors: Christophe Massiot <massiot@via.ecp.fr>
#
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
# ***************************************************************************
if test "$#" != "0"; then
echo "Usage: $0" >&2
echo " Prepare config.mak file." >&2
exit 1
fi
LANG=C
export LANG
set -e
set -x
echo -e "# Automatically generated by bootstrap.\n# Make changes if you know what you're doing.\n" >| config.mak
if test ".`uname -s`" = ".Darwin"; then
echo "SYS = DARWIN" >> config.mak
echo "EXTRA_CPPFLAGS = -no-cpp-precomp" >> config.mak
echo "CONTRIB_URL = http://www.videolan.org/pub/devtools/contrib-macosx.tar.bz2" >> config.mak
else
echo "SYS = UNKNOWN" >> config.mak
fi
if which curl >/dev/null; then
echo "WGET = curl -O" >> config.mak
elif which wget >/dev/null; then
echo "WGET = wget" >> config.mak
else
echo "You need at least wget or curl to fetch the packages." >&2
exit 1
fi
echo "PREFIX = `pwd`" >> config.mak
# ***************************************************************************
# src/Makefile : Dearchive and compile all files necessary
# ***************************************************************************
# Copyright (C) 2003 VideoLAN
# $Id: Makefile,v 1.1 2003/11/15 01:21:48 massiot Exp $
#
# Authors: Christophe Massiot <massiot@via.ecp.fr>
#
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
# ***************************************************************************
include ../config.mak
include ./packages.mak
# ***************************************************************************
# Set a clean environment
# ***************************************************************************
export PATH = $(PREFIX)/bin:/bin:/usr/bin
export DYLD_LIBRARY_PATH = $(PREFIX)/lib
export CPPFLAGS = -I$(PREFIX)/include $(EXTRA_CPPFLAGS)
export CFLAGS = -I$(PREFIX)/include $(EXTRA_CPPFLAGS)
export CXXFLAGS = -I$(PREFIX)/include $(EXTRA_CPPFLAGS)
export LDFLAGS = -L$(PREFIX)/lib
# ***************************************************************************
# Standard rules
# ***************************************************************************
all: .autoconf .libtool .automake .iconv .intl .freetype .fribidi \
.a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
.FLAC .speex .faad .lame .ebml .matroska .ffmpeg .openslp \
.dvdcss .dvdread .dvdplay .dvbpsi
FORCE:
# ***************************************************************************
# Useful macros
# ***************************************************************************
define EXTRACT_GZ
tar xzf $<
mv $(patsubst %.tar.gz,%,$(patsubst %.tgz,%,$(notdir $<))) $@ || true
touch $@
endef
define EXTRACT_BZ2
bunzip2 -c $< | tar xf -
mv $(patsubst %.tar.bz2,%,$(notdir $<)) $@ || true
touch $@
endef
### Darwin-specific ###
# These macros prepare the dynamic libraries for inclusion in the Mac OS X
# bundle. For instance if you're building a library named libtoto.dylib,
# which depends on the contrib library libtata.dylib, you should have the
# following entry :
# .toto: toto_directory .tata
# cd $< ; ./configure --prefix=$(PREFIX)
# $(MAKE) -C $<
# $(MAKE) -C $< install
# $(INSTALL_NAME)
# touch $@
define INSTALL_NAME_LIB
install_name_tool \
-change $(PREFIX)/lib/$(shell cd $(PREFIX)/lib; ls | grep "lib$(INSTALL_LIB).[0-9]*.dylib") \
@executable_path/lib/lib$(INSTALL_LIB).dylib \
$(PREFIX)/vlc-lib/lib$(patsubst .%,%,$@).dylib ;
endef
define INSTALL_NAME
if which install_name_tool >/dev/null; then \
mkdir -p $(PREFIX)/vlc-lib ; \
cp $(PREFIX)/lib/lib$(patsubst .%,%,$@).dylib \
$(PREFIX)/vlc-lib/lib$(patsubst .%,%,$@).dylib ; \
install_name_tool \
-id @executable_path/lib/lib$(patsubst .%,%,$@).dylib \
$(PREFIX)/vlc-lib/lib$(patsubst .%,%,$@).dylib ; \
$(foreach INSTALL_LIB,$(patsubst .%,%,$(filter .%,$^)), \
$(INSTALL_NAME_LIB)) \
fi
endef
# ***************************************************************************
# autoconf
# ***************************************************************************
autoconf-$(AUTOCONF_VERSION).tar.gz:
$(WGET) $(AUTOCONF_URL)
autoconf: autoconf-$(AUTOCONF_VERSION).tar.gz
$(EXTRACT_GZ)
.autoconf: autoconf
(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
touch $@
CLEAN_FILE += .autoconf
CLEAN_PKG += autoconf
DISTCLEAN_PKG += autoconf-$(AUTOCONF_VERSION).tar.gz
# ***************************************************************************
# libtool
# ***************************************************************************
# This breaks under Darwin
#libtool_$(LIBTOOL_VERSION).orig.tar.gz:
# $(WGET) $(LIBTOOL_URL)
#libtool: libtool_$(LIBTOOL_VERSION).orig.tar.gz
# $(EXTRACT_GZ)
# rm $@
# mv libtool-$(LIBTOOL_VERSION) $@
#.libtool: libtool
# (cd $<; ./configure --prefix=$(PREFIX) && make && make install)
# touch $@
# Darwin-specific
.libtool:
if test -x /usr/bin/glibtoolize; then \
ln -sf /usr/bin/glibtoolize $(PREFIX)/bin/libtoolize ; \
fi
touch $@
CLEAN_FILE += .libtool
# ***************************************************************************
# automake
# ***************************************************************************
automake-$(AUTOMAKE_VERSION).tar.gz:
$(WGET) $(AUTOMAKE_URL)
automake: automake-$(AUTOMAKE_VERSION).tar.gz
$(EXTRACT_GZ)
.automake: automake
(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
touch $@
CLEAN_FILE += .automake
CLEAN_PKG += automake
DISTCLEAN_PKG += automake-$(AUTOMAKE_VERSION).tar.gz
# ***************************************************************************
# libiconv
# ***************************************************************************
libiconv-$(LIBICONV_VERSION).tar.gz:
$(WGET) $(LIBICONV_URL)
libiconv: libiconv-$(LIBICONV_VERSION).tar.gz
$(EXTRACT_GZ)
.iconv: libiconv
(cd libiconv; ./configure --prefix=$(PREFIX) && make && make install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .iconv
CLEAN_PKG += libiconv
DISTCLEAN_PKG += libiconv-$(LIBICONV_VERSION).tar.gz
# ***************************************************************************
# gettext
# ***************************************************************************
gettext-$(GETTEXT_VERSION).tar.gz:
$(WGET) $(GETTEXT_URL)
gettext: gettext-$(GETTEXT_VERSION).tar.gz
$(EXTRACT_GZ)
.intl: gettext .iconv
(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .intl
CLEAN_PKG += gettext
DISTCLEAN_PKG += gettext-$(GETTEXT_VERSION).tar.gz
# ***************************************************************************
# freetype2
# ***************************************************************************
freetype-$(FREETYPE2_VERSION).tar.gz:
$(WGET) $(FREETYPE2_URL)
freetype2: freetype-$(FREETYPE2_VERSION).tar.gz
$(EXTRACT_GZ)
.freetype: freetype2
(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .freetype
CLEAN_PKG += freetype2
DISTCLEAN_PKG += freetype-$(FREETYPE2_VERSION).tar.gz
# ***************************************************************************
# fribidi
# ***************************************************************************
fribidi-$(FRIBIDI_VERSION).tar.gz:
$(WGET) $(FRIBIDI_URL)
fribidi: fribidi-$(FRIBIDI_VERSION).tar.gz
$(EXTRACT_GZ)
patch -p 0 < Patches/fribidi.patch
.fribidi: fribidi
(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .fribidi
CLEAN_PKG += fribidi
DISTCLEAN_PKG += fribidi-$(FRIBIDI_VERSION).tar.gz
# ***************************************************************************
# liba52
# ***************************************************************************
a52dec-$(A52DEC_VERSION).tar.gz:
$(WGET) $(A52DEC_URL)
a52dec: a52dec-$(A52DEC_VERSION).tar.gz
$(EXTRACT_GZ)
.a52: a52dec
(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
touch $@
CLEAN_FILE += .a52
CLEAN_PKG += a52dec
DISTCLEAN_PKG += a52dec-$(A52DEC_VERSION).tar.gz
# ***************************************************************************
# mpeg2dec
# ***************************************************************************
#mpeg2dec:
# @echo "*** Please press return here : ***"
# cvs -d $(MPEG2DEC_CVSROOT) login
# cvs -d $(MPEG2DEC_CVSROOT) co mpeg2dec
# (cd $@; ./bootstrap)
# It is easier to use bootstrapped versions...
mpeg2dec-0.3.2-cvs.tar.gz:
$(WGET) $(MPEG2DEC_SNAPSHOT)
mv mpeg2dec-snapshot.tar.gz $@
mpeg2dec: mpeg2dec-0.3.2-cvs.tar.gz
$(EXTRACT_GZ)
.mpeg2: mpeg2dec
(cd $<; ./configure --prefix=$(PREFIX) --without-x --disable-dsl && make && make install)
touch $@
CLEAN_FILE += .mpeg2
CLEAN_PKG += mpeg2dec
DISTCLEAN_PKG += mpeg2dec-0.3.2-cvs.tar.gz
# ***************************************************************************
# libid3tag
# ***************************************************************************
libid3tag-$(LIBID3TAG_VERSION).tar.gz:
$(WGET) $(LIBID3TAG_URL)
libid3tag: libid3tag-$(LIBID3TAG_VERSION).tar.gz
$(EXTRACT_GZ)
.id3tag: libid3tag
(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .id3tag
CLEAN_PKG += libid3tag
DISTCLEAN_PKG += libid3tag-$(LIBID3TAG_VERSION).tar.gz
# ***************************************************************************
# libmad
# ***************************************************************************
libmad-$(LIBMAD_VERSION).tar.gz:
$(WGET) $(LIBMAD_URL)
libmad: libmad-$(LIBMAD_VERSION).tar.gz
$(EXTRACT_GZ)
.mad: libmad
(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .mad
CLEAN_PKG += libmad
DISTCLEAN_PKG += libmad-$(LIBMAD_VERSION).tar.gz
# ***************************************************************************
# ogg
# ***************************************************************************
#ogg:
# @echo "*** Please type \"anoncvs\" here : ***"
# cvs -d $(OGG_CVSROOT) login
# cvs -d $(OGG_CVSROOT) co ogg
# (cd $@; ./autogen.sh)
libogg-$(OGG_VERSION).tar.gz:
$(WGET) $(OGG_URL)
libogg: libogg-$(OGG_VERSION).tar.gz
$(EXTRACT_GZ)
.ogg: libogg
(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .ogg
CLEAN_PKG += libogg
DISTCLEAN_PKG += libogg-$(OGG_VERSION).tar.gz
# ***************************************************************************
# vorbis
# ***************************************************************************
#vorbis:
# @echo "*** Please type \"anoncvs\" here : ***"
# cvs -d $(OGG_CVSROOT) login
# cvs -d $(OGG_CVSROOT) co vorbis
# (cd $@; ./autogen.sh)
# patch -p 0 < Patches/vorbis.patch
libvorbis-$(VORBIS_VERSION).tar.gz:
$(WGET) $(VORBIS_URL)
libvorbis: libvorbis-$(VORBIS_VERSION).tar.gz
$(EXTRACT_GZ)
.vorbis: libvorbis .ogg
(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
$(INSTALL_NAME)
touch $@
.vorbisenc: .vorbis .ogg
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .vorbis .vorbisenc
CLEAN_PKG += libvorbis
DISTCLEAN_PKG += libvorbis-$(VORBIS_VERSION).tar.gz
# ***************************************************************************
# theora
# ***************************************************************************
libtheora-$(THEORA_VERSION).tar.gz:
$(WGET) $(THEORA_URL)
libtheora: libtheora-$(THEORA_VERSION).tar.gz
$(EXTRACT_GZ)
patch -p 0 < Patches/theora.patch
.theora: libtheora
(cd $<; CC="gcc $(CFLAGS)" ./configure --prefix=$(PREFIX) && make && make install)
touch $@
CLEAN_FILE += .theora
CLEAN_PKG += libtheora
DISTCLEAN_PKG += libtheora-$(THEORA_VERSION).tar.gz
# ***************************************************************************
# flac
# ***************************************************************************
flac-$(FLAC_VERSION).tar.gz:
$(WGET) $(FLAC_URL)
flac: flac-$(FLAC_VERSION).tar.gz
$(EXTRACT_GZ)
.FLAC: flac
(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .flac
CLEAN_PKG += flac
DISTCLEAN_PKG += flac-$(FLAC_VERSION).tar.gz
# ***************************************************************************
# speex
# ***************************************************************************
speex-$(SPEEX_VERSION).tar.gz:
$(WGET) $(SPEEX_URL)
speex: speex-$(SPEEX_VERSION).tar.gz
$(EXTRACT_GZ)
.speex: speex
(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .speex
CLEAN_PKG += speex
DISTCLEAN_PKG += speex-$(SPEEX_VERSION).tar.gz
# ***************************************************************************
# faad2
# ***************************************************************************
#faad2:
# @echo "*** Please type return here : ***"
# cvs -d $(FAAD2_CVSROOT) login
# cvs -d $(FAAD2_CVSROOT) co faad2
# (cd $@; patch -p 0 < ../Patches/faad2.patch)
# (cd $@; sh ./bootstrap)
faad2-$(FAAD2_VERSION).tar.gz:
$(WGET) $(FAAD2_URL)
faad2: faad2-$(FAAD2_VERSION).tar.gz
$(EXTRACT_GZ)
(cd $@; patch -p 0 < ../Patches/faad2.patch)
.faad: faad2
(cd $<; ./configure --prefix=$(PREFIX) && make -C libfaad && make -C libfaad install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .faad
CLEAN_PKG += faad2
DISTCLEAN_PKG += faad2-$(FAAD2_VERSION).tar.gz
# ***************************************************************************
# lame
# ***************************************************************************
lame-$(LAME_VERSION).tar.gz:
$(WGET) $(LAME_URL)
lame: lame-$(LAME_VERSION).tar.gz
$(EXTRACT_GZ)
.lame: lame
(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
touch $@
CLEAN_FILE += .lame
CLEAN_PKG += lame
DISTCLEAN_PKG += lame-$(LAME_VERSION).tar.gz
# ***************************************************************************
# libebml
# ***************************************************************************
libebml-$(LIBEBML_VERSION).tar.bz2:
$(WGET) $(LIBEBML_URL)
libebml: libebml-$(LIBEBML_VERSION).tar.bz2
$(EXTRACT_BZ2)
-rm -rf $@/CVS
.ebml: libebml
(cd $<; make -C make/linux prefix=$(PREFIX) && make -C make/linux install prefix=$(PREFIX))
ranlib $(PREFIX)/lib/libebml.a
touch $@
CLEAN_FILE += .ebml
CLEAN_PKG += libebml
DISTCLEAN_PKG += libebml-$(LIBEBML_VERSION).tar.bz2
# ***************************************************************************
# libmatroska
# ***************************************************************************
libmatroska-$(LIBMATROSKA_VERSION).tar.bz2:
$(WGET) $(LIBMATROSKA_URL)
libmatroska: libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
$(EXTRACT_BZ2)
-rm -rf $@/CVS
.matroska: libmatroska