mxe/src/xine-lib.mk

63 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.6
$(PKG)_CHECKSUM := bd041d738817c7c0c6392a3c0e5bda5a664a47e035135b5a449364f8c9b6a005
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)
2015-09-23 08:41:16 +01:00
$(PKG)_DEPS := gcc a52dec faad2 ffmpeg flac fontconfig freetype graphicsmagick \
libcdio libiconv libmad libmng libmodplug libmpcdec mman-win32 \
pthreads sdl speex theora vcdimager vorbis wavpack zlib
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
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"
2014-01-28 06:53:01 +00:00
$(SED) -i 's,[\s^]*sed , $(SED) ,g' '$(1)/src/combined/ffmpeg/Makefile'
2010-04-26 17:15:56 +01:00
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef
$(PKG)_BUILD_SHARED =