mxe/src/xine-lib.mk

61 lines
2.0 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2010-04-26 17:15:56 +01:00
PKG := xine-lib
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.2.4
$(PKG)_CHECKSUM := 32267c5fcaa1439a5fbf7606d27dc4fafba9e504
2010-04-26 17:15:56 +01:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
2012-06-12 22:07:46 +01:00
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
2010-04-26 17:15:56 +01:00
$(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 libmpcdec libcdio vcdimager mman-win32 libmad a52dec libmodplug
2010-04-26 17:15:56 +01:00
define $(PKG)_UPDATE
2013-06-04 11:06:43 +01:00
$(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
2010-04-26 17:15:56 +01:00
endef
define $(PKG)_BUILD
# rebuild configure script as one of the patches modifies configure.ac
cd '$(1)' && autoreconf -fi
cd '$(1)' && $(LIBTOOLIZE)
2010-04-26 17:15:56 +01:00
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-static \
--disable-shared \
--disable-mmap \
--disable-nls \
--disable-aalib \
2010-04-26 17:15:56 +01:00
--enable-mng \
--disable-real-codecs \
--with-external-ffmpeg \
2010-04-26 17:15:56 +01:00
--without-x \
--with-sdl \
--with-vorbis \
--with-theora \
--with-speex \
--with-libflac \
--with-freetype \
--with-fontconfig \
--without-alsa \
--without-esound \
--without-arts \
--without-fusionsound \
--with-internal-vcdlibs \
--with-external-libfaad \
2010-04-26 17:15:56 +01:00
--without-external-libdts \
--with-wavpack \
2010-04-26 17:15:56 +01:00
CFLAGS='-I$(1)/win32/include' \
2011-11-03 23:11:36 +00:00
PTHREAD_LIBS='-lpthread -lws2_32' \
LIBS="`$(TARGET)-pkg-config --libs libmng` -logg"
2010-04-26 17:15:56 +01:00
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef
# $(PKG)_BUILD_x86_64-w64-mingw32 =
# $(PKG)_BUILD_i686-w64-mingw32 =