mxe/src/xine-lib.mk

62 lines
1.9 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
# xine-lib
PKG := xine-lib
$(PKG)_IGNORE :=
2012-01-02 09:53:33 +00:00
$(PKG)_CHECKSUM := 68e85049723b491ccb22d5123bf8fa780529868a
2010-04-26 17:15:56 +01:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
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 zlib
2010-04-26 17:15:56 +01:00
define $(PKG)_UPDATE
wget -q -O- 'http://hg.debian.org/hg/xine-lib/xine-lib/tags' | \
$(SED) -n 's,>,\n,gp' | \
$(SED) -n 's,^\([0-9][^< ]*\)<.*,\1,p' | \
head -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
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 \
--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 \
2010-04-26 17:15:56 +01:00
--without-external-libdts \
--without-wavpack \
CFLAGS='-I$(1)/win32/include' \
2011-11-03 23:11:36 +00:00
PTHREAD_LIBS='-lpthread -lws2_32' \
LIBS="`$(TARGET)-pkg-config --libs libmng`"
2010-04-26 17:15:56 +01:00
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef