diff options
author | wsnipex <wsnipex@a1.net> | 2014-02-02 09:57:00 +0100 |
---|---|---|
committer | Rainer Hochecker <fernetmenta@online.de> | 2014-04-27 18:05:02 +0200 |
commit | 14d091a36e252eead159dbaf18a0a60eea048bd7 (patch) | |
tree | abea9f576ca5634a0b248785adcc9f1b78d7474b /tools/rbp | |
parent | f68f4f653ba8371035e05f1532c064f2c3525817 (diff) |
add ffmpeg makefile for rpi
Diffstat (limited to 'tools/rbp')
-rw-r--r-- | tools/rbp/depends/Makefile | 6 | ||||
-rw-r--r-- | tools/rbp/depends/ffmpeg/Makefile | 61 | ||||
-rw-r--r-- | tools/rbp/depends/xbmc/Makefile | 1 |
3 files changed, 65 insertions, 3 deletions
diff --git a/tools/rbp/depends/Makefile b/tools/rbp/depends/Makefile index 5afbc5a0a8..12e7260f29 100644 --- a/tools/rbp/depends/Makefile +++ b/tools/rbp/depends/Makefile @@ -2,10 +2,10 @@ include ../Makefile.include ifeq ($(USE_BUILDROOT),1) BUILDTOOLS = - SUBDIRS = xbmc + SUBDIRS = ffmpeg xbmc else BUILDTOOLS = help2man autoconf automake libtool pkg-config yasm cmake patchelf - SUBDIRS = liblzo2 tiff libnfs jasper libplist libshairplay tinyxml xbmc + SUBDIRS = liblzo2 tiff libnfs jasper libplist libshairplay tinyxml ffmpeg xbmc endif IMAGENAME = xbmc-rbp-`date +'%y%m%d'` @@ -18,7 +18,7 @@ buildtools: for d in $(BUILDTOOLS); do $(MAKE) -C $$d; done subdirs: - for d in $(SUBDIRS); do $(MAKE) -C $$d; done + for d in $(SUBDIRS); do if test -f "$$d/.installed"; then :; else $(MAKE) -C $$d || exit 1; fi; done clean: for d in $(BUILDTOOLS); do $(MAKE) -C $$d clean; done diff --git a/tools/rbp/depends/ffmpeg/Makefile b/tools/rbp/depends/ffmpeg/Makefile new file mode 100644 index 0000000000..93b5a02231 --- /dev/null +++ b/tools/rbp/depends/ffmpeg/Makefile @@ -0,0 +1,61 @@ +include ../../Makefile.include +include ../depends.mk +include ../../../depends/target/ffmpeg/FFMPEG-VERSION +DEPS= ../../Makefile.include ../depends.mk ../../../depends/target/ffmpeg/FFMPEG-VERSION Makefile + +# set to "yes" to enable patching +# we don't apply patches until we move to a vanilla ffmpeg tarball +APPLY_PATCHES=no + +# configuration settings +ffmpg_config = --sysroot=$(SYSROOT) --prefix=$(PREFIX) +ffmpg_config += --enable-cross-compile --target-os=linux --cpu=arm1176jzf-s --arch=arm +ffmpg_config += --cc=$(CC) --cxx=$(CXX) +ffmpg_config += --disable-devices --disable-doc +ffmpg_config += --disable-ffplay --disable-ffmpeg +ffmpg_config += --disable-ffprobe --disable-ffserver +ffmpg_config += --enable-gpl --enable-runtime-cpudetect +ffmpg_config += --enable-postproc --enable-pthreads +ffmpg_config += --enable-muxer=spdif --enable-muxer=adts +ffmpg_config += --enable-muxer=asf --enable-muxer=ipod +ffmpg_config += --enable-encoder=ac3 --enable-encoder=aac +ffmpg_config += --enable-encoder=wmav2 --enable-protocol=http +ffmpg_config += --enable-libvorbis --enable-muxer=ogg --enable-encoder=libvorbis +ffmpg_config += --disable-vaapi --disable-vdpau --disable-crystalhd +#ffmpg_config += --enable-gnutls +ifeq ($(Configuration), Release) + ffmpg_config += --disable-debug +endif + + +CLEAN_FILES=$(ARCHIVE) rpi + +all: .installed + +$(TARBALLS_LOCATION)/$(ARCHIVE): + cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) -Ls --create-dirs -f -o $(TARBALLS_LOCATION)/$(ARCHIVE) $(BASE_URL)/$(VERSION).tar.gz + +rpi: $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS) + rm -rf rpi; mkdir -p rpi + cd rpi; $(ARCHIVE_TOOL) --strip-components=1 -xf $(TARBALLS_LOCATION)/$(ARCHIVE) + if test "$(APPLY_PATCHES)" = "yes"; then \ + cd rpi; \ + for PATCH in ../patches/*.patch ; do \ + patch -p1 < $${PATCH}; \ + done; \ + fi + cd rpi;\ + CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \ + ./configure $(ffmpg_config) + +.installed: rpi + $(MAKE) -j $(JOBS) -C rpi || exit 1 + $(MAKE) -C rpi install && touch $@ + +clean: + $(MAKE) -C rpi clean + rm -f .installed + +distclean:: + rm -rf rpi .installed + diff --git a/tools/rbp/depends/xbmc/Makefile b/tools/rbp/depends/xbmc/Makefile index 4e6862e884..b0ba8d1e24 100644 --- a/tools/rbp/depends/xbmc/Makefile +++ b/tools/rbp/depends/xbmc/Makefile @@ -5,6 +5,7 @@ SOURCE=../../../../ ifeq ($(USE_BUILDROOT),1) export PATH:=$(PREFIX)/bin:$(BUILDROOT)/output/host/usr/bin:$(SYSROOT)/usr/bin:$(PATH) + export PKG_CONFIG_PATH=$(PREFIX)/lib/pkgconfig endif CONFIGURE=./configure --prefix=$(PREFIX) --build=$(BUILD) --host=$(HOST) \ |