summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-04-26 16:15:56 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-04-26 16:15:56 (GMT)
commitd2ce4901e83cd872ae019e495ab8b49077f9f455 (patch)
treef9d8b4063d0dec29e0c37ecb2867ecf92baf4c59
parentf6b1cf79ad1803d5d83d638c2b86eed74919ba81 (diff)
downloadmxe-d2ce4901e83cd872ae019e495ab8b49077f9f455.zip
mxe-d2ce4901e83cd872ae019e495ab8b49077f9f455.tar.gz
mxe-d2ce4901e83cd872ae019e495ab8b49077f9f455.tar.bz2
new package: xine-lib
-rw-r--r--src/xine-lib-1-do-not-install-def-file.patch33
-rw-r--r--src/xine-lib-2-fix-crosscompile.patch15
-rw-r--r--src/xine-lib.mk57
3 files changed, 105 insertions, 0 deletions
diff --git a/src/xine-lib-1-do-not-install-def-file.patch b/src/xine-lib-1-do-not-install-def-file.patch
new file mode 100644
index 0000000..7e98167
--- /dev/null
+++ b/src/xine-lib-1-do-not-install-def-file.patch
@@ -0,0 +1,33 @@
+diff -r 42ff50f9d875 src/xine-engine/Makefile.am
+--- a/src/xine-engine/Makefile.am Mon Apr 26 17:53:49 2010 +0200
++++ b/src/xine-engine/Makefile.am Mon Apr 26 17:56:06 2010 +0200
+@@ -43,13 +43,5 @@
+
+ noinst_HEADERS = bswap.h ffmpeg_bswap.h
+
+-if WIN32
+-install-exec-local:
+- cp -p $(DEF_FILE) $(DESTDIR)$(libdir)
+-
+-uninstall-local:
+- rm -f $(DEF_FILE)
+-endif
+-
+ $(XINEUTILS_LIB):
+ $(MAKE) -C $(top_builddir)/src/xine-utils libxineutils.la
+diff -r 42ff50f9d875 src/xine-engine/Makefile.in
+--- a/src/xine-engine/Makefile.in Mon Apr 26 17:53:49 2010 +0200
++++ b/src/xine-engine/Makefile.in Mon Apr 26 17:56:06 2010 +0200
+@@ -897,12 +897,6 @@
+ $(LIBXINEPOSIX):
+ $(MAKE) -C $(top_builddir)/lib libxineposix.la
+
+-@WIN32_TRUE@install-exec-local:
+-@WIN32_TRUE@ cp -p $(DEF_FILE) $(DESTDIR)$(libdir)
+-
+-@WIN32_TRUE@uninstall-local:
+-@WIN32_TRUE@ rm -f $(DEF_FILE)
+-
+ $(XINEUTILS_LIB):
+ $(MAKE) -C $(top_builddir)/src/xine-utils libxineutils.la
+
diff --git a/src/xine-lib-2-fix-crosscompile.patch b/src/xine-lib-2-fix-crosscompile.patch
new file mode 100644
index 0000000..b69a30d
--- /dev/null
+++ b/src/xine-lib-2-fix-crosscompile.patch
@@ -0,0 +1,15 @@
+This file is part of mingw-cross-env.
+See doc/index.html for further information.
+
+diff -r 9eefd9257b2e configure
+--- a/configure Fri Apr 23 20:00:23 2010 +0200
++++ b/configure Fri Apr 23 20:01:32 2010 +0200
+@@ -16408,7 +16408,7 @@
+ have_supported_dvb=yes
+ SYS=other
+
+-case "$build_os" in
++case "$host_os" in
+ gnu*)
+ have_supported_dvb=no
+ SYS=hurd
diff --git a/src/xine-lib.mk b/src/xine-lib.mk
new file mode 100644
index 0000000..60c580d
--- /dev/null
+++ b/src/xine-lib.mk
@@ -0,0 +1,57 @@
+# 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.18.1
+$(PKG)_CHECKSUM := 783232b6d6e23850a7ac97bf53b2a8bc2e743270
+$(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 zlib libiconv libmng sdl vorbis theora speex flac freetype fontconfig
+
+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
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --enable-static \
+ --disable-shared \
+ --disable-mmap \
+ --disable-nls \
+ --enable-mng \
+ --disable-real-codecs \
+ --without-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 \
+ --without-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