Skip to content

Commit

Permalink
[depends] add opus audio codec
Browse files Browse the repository at this point in the history
  • Loading branch information
wsnipex committed Jul 9, 2014
1 parent 224ebbb commit 308222b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/depends/target/Makefile
Expand Up @@ -9,7 +9,7 @@ DEPENDS = \
libgcrypt bzip2 liblzo2 libzip freetype2 fontconfig \
openssl gmp nettle gnutls libssh2 curl \
libjpeg-turbo tiff jasper libpng \
libogg libvorbis libflac fribidi libmpeg2 \
libogg libvorbis libflac opus fribidi libmpeg2 \
libass \
libmodplug librtmp libxml2 yajl libmicrohttpd mysql libffi \
python26 afpfs-ng libshairplay \
Expand Down Expand Up @@ -97,7 +97,7 @@ nettle: gmp
pythonmodule-pil: $(ZLIB) libjpeg-turbo libpng freetype2 python26
libsdl: $(LINUX_SYSTEM_LIBS)
libxslt: libgcrypt
ffmpeg: $(ICONV) $(ZLIB) bzip2 libvorbis $(FFMPEG_DEPENDS)
ffmpeg: $(ICONV) $(ZLIB) bzip2 libvorbis opus $(FFMPEG_DEPENDS)

.installed-$(PLATFORM): $(DEPENDS)
touch $@
Expand Down
41 changes: 41 additions & 0 deletions tools/depends/target/opus/Makefile
@@ -0,0 +1,41 @@
include ../../Makefile.include
DEPS= ../../Makefile.include Makefile

# lib name, version
LIBNAME=opus
VERSION=1.1
SOURCE=$(LIBNAME)-$(VERSION)
ARCHIVE=$(SOURCE).tar.gz

# configuration settings
CONFIGURE=cp -f $(CONFIG_SUB) $(CONFIG_GUESS) .; \
./configure --disable-shared --disable-doc --disable-extra-programs --prefix=$(PREFIX)

LIBDYLIB=$(PLATFORM)/.libs/lib$(LIBNAME).a

CLEAN_FILES=$(ARCHIVE) $(PLATFORM)

all: .installed-$(PLATFORM)

$(TARBALLS_LOCATION)/$(ARCHIVE):
cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)

$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)

$(LIBDYLIB): $(PLATFORM)
$(MAKE) -C $(PLATFORM)

.installed-$(PLATFORM): $(LIBDYLIB)
$(MAKE) -C $(PLATFORM) install
touch $@

clean:
$(MAKE) -C $(PLATFORM) clean
rm -f .installed-$(PLATFORM)

distclean::
rm -rf $(PLATFORM) .installed-$(PLATFORM)

0 comments on commit 308222b

Please sign in to comment.