You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/xine-lib.mk

65 lines
2.0 KiB

# This file is part of MXE.
# See index.html for further information.
PKG := xine-lib
$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 0adf20ef55d24f2a1b4a8974e57ad1be5133b236
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/xine/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc faad2 ffmpeg flac fontconfig freetype graphicsmagick libiconv libmng pthreads sdl speex theora vorbis wavpack zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.xine-project.org/releases' | \
$(SED) -e 's,<a,\n<a,g' | \
$(SED) -n 's,.*xine-lib-\([0-9][^"]*\)\.tar.*,\1,p' | \
$(SORT) -V | \
tail -1
endef
define $(PKG)_BUILD
# rebuild configure script as one of the patches modifies configure.ac
cd '$(1)' && aclocal -I m4
cd '$(1)' && $(LIBTOOLIZE)
cd '$(1)' && autoconf
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-static \
--disable-shared \
--disable-mmap \
--disable-nls \
--disable-aalib \
--enable-mng \
--disable-real-codecs \
--with-external-ffmpeg \
--without-x \
--with-sdl \
--with-vorbis \
--with-theora \
--with-speex \
--with-libflac \
--without-external-a52dec \
--without-external-libmad \
--without-external-libmpcdec \
--with-freetype \
--with-fontconfig \
--without-alsa \
--without-esound \
--without-arts \
--without-fusionsound \
--with-internal-vcdlibs \
--with-external-libfaad \
--without-external-libdts \
--with-wavpack \
CFLAGS='-I$(1)/win32/include' \
PTHREAD_LIBS='-lpthread -lws2_32' \
LIBS="`$(TARGET)-pkg-config --libs libmng`"
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =
$(PKG)_BUILD_i686-w64-mingw32 =