new package libmpcdec: depency of xine-lib 1.2

This commit is contained in:
Tuukka Pasanen 2013-12-31 16:32:36 +02:00 committed by Tony Theodore
parent c4567f72cc
commit 5829b940ec
3 changed files with 82 additions and 0 deletions

View File

@ -1674,6 +1674,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="package">libmodplug</td>
<td class="website"><a href="http://modplug-xmms.sourceforge.net/">libmodplug</a></td>
</tr>
<tr>
<td class="package">libmpcdec</td>
<td class="website"><a href="http://www.musepack.net/">libmpcdec</a></td>
</tr>
<tr>
<td class="package">libntlm</td>
<td class="website"><a href="http://www.nongnu.org/libntlm/">Libntlm</a></td>

View File

@ -0,0 +1,47 @@
diff -urN libmpcdec-1.2.6/configure.ac libmpcdec-1.2.6-patch/configure.ac
--- libmpcdec-1.2.6/configure.ac 2007-04-17 22:05:32.000000000 +0300
+++ libmpcdec-1.2.6-patch/configure.ac 2013-12-17 15:45:49.892190871 +0200
@@ -5,6 +5,7 @@
AM_CONFIG_HEADER(include/config.h)
AM_PROG_LIBTOOL
+AC_PROG_CXX
CFLAGS="$CFLAGS -O3 -fomit-frame-pointer -fPIC"
@@ -58,14 +59,14 @@
ac_cv_c_int64_t=int64_t
fi
-AC_FUNC_MEMCMP
-if test "x$ac_cv_func_memcmp_working" = "xno" ; then
- AC_MSG_ERROR([working memcmp is not available.])
-fi
-
-AC_CHECK_FUNCS([memmove memset], [],
- AC_MSG_ERROR([memset or memmove is missing.]))
-
+dnl AC_FUNC_MEMCMP
+dnl if test "x$ac_cv_func_memcmp_working" = "xno" ; then
+dnl AC_MSG_ERROR([working memcmp is not available.])
+dnl fi
+
+dnl AC_CHECK_FUNCS([memmove memset], [],
+dnl AC_MSG_ERROR([memset or memmove is missing.]))
+dnl
dnl Make substitutions
AC_SUBST(VERSION)
diff -urN libmpcdec-1.2.6/include/Makefile.am libmpcdec-1.2.6-patch/include/Makefile.am
--- libmpcdec-1.2.6/include/Makefile.am 2007-01-09 22:22:14.000000000 +0200
+++ libmpcdec-1.2.6-patch/include/Makefile.am 2013-12-17 15:49:30.054396946 +0200
@@ -10,7 +10,8 @@
mpcdec/mpcdec.h \
mpcdec/reader.h \
mpcdec/requant.h \
- mpcdec/streaminfo.h
+ mpcdec/streaminfo.h \
+ mpcdec/config_win32.h
EXTRA_DIST = \
mpcdec/internal.h

31
src/libmpcdec.mk Normal file
View File

@ -0,0 +1,31 @@
# This file is part of MXE.
# See index.html for further information.
PKG := libmpcdec
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.2.6
$(PKG)_CHECKSUM := 32139ff5cb43a18f7c99637da76703c63a55485a
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := http://files.musepack.net/source/$(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://files.musepack.net/source/$(PKG)-$($(PKG)_VERSION)' | \
$(SED) -n 's,.*$(PKG)-\([0-9][^>]*\)\.tar.*,\1,p' | \
grep -v 'alpha' | \
grep -v 'beta' | \
$(SORT) -Vr | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && aclocal
cd '$(1)' && libtoolize
cd '$(1)' && autoreconf
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j 1 install
endef