blob: f775c54d2591f740e42f726254756bfb61d71911 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# xine-lib
PKG := xine-lib
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.1.19
$(PKG)_CHECKSUM := 5afcc28c5cf2bdaab99d951960f6587797e1e5a0
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://www.xine-project.org/
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/xine/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc faad2 ffmpeg flac fontconfig freetype libiconv libmng pthreads sdl speex theora vorbis zlib
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
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 \
--without-imagemagick \
--with-freetype \
--with-fontconfig \
--without-alsa \
--without-esound \
--without-arts \
--without-fusionsound \
--with-internal-vcdlibs \
--with-external-libfaad \
--without-external-libdts \
--without-wavpack \
CFLAGS='-I$(1)/win32/include' \
PTHREAD_LIBS='-lpthread -lws2_32'
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef
|