diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/ffmpeg/Makefile | 14 | ||||
-rw-r--r-- | package/libx264/Makefile | 27 | ||||
-rw-r--r-- | package/libx264/patches/patch-configure | 23 | ||||
-rw-r--r-- | package/libx264/patches/patch-configure.orig | 11 | ||||
-rw-r--r-- | package/mpd/files/mpd.conf | 2 | ||||
-rw-r--r-- | package/xbmc/Makefile | 5 | ||||
-rw-r--r-- | package/xbmc/patches/patch-xbmc_Application_cpp | 4 |
7 files changed, 81 insertions, 5 deletions
diff --git a/package/ffmpeg/Makefile b/package/ffmpeg/Makefile index 21fd3bc99..131d1856a 100644 --- a/package/ffmpeg/Makefile +++ b/package/ffmpeg/Makefile @@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk PKG_NAME:= ffmpeg PKG_VERSION:= 2.0.1 -PKG_RELEASE:= 1 +PKG_RELEASE:= 2 PKG_MD5SUM:= dd71a1baedb2daa3e4d21e0651daa918 PKG_DESCR:= record, convert and stream audio & video PKG_SECTION:= libs @@ -31,7 +31,14 @@ PKGSC_FFPROBE:= multimedia PKGSS_FFPROBE:= libffmpeg PKG_FLAVOURS_LIBFFMPEG:= WITH_AAC WITH_MP3 WITH_VP8 WITH_THEORA -PKG_FLAVOURS_LIBFFMPEG+= WITH_XVID WITH_VORBIS +PKG_FLAVOURS_LIBFFMPEG+= WITH_XVID WITH_VORBIS WITH_X264 + +PKGFD_WITH_X264:= with X264 decoding support +PKGFS_WITH_X264:= libx264 +PKGFB_WITH_X264:= libx264 +ifeq ($(ADK_PACKAGE_LIBFFMPEG_WITH_X264),y) +PKG_FDEPENDS+= libx264 +endif PKGFD_WITH_AAC:= with AAC encoding support PKGFS_WITH_AAC:= libfaac @@ -130,6 +137,9 @@ CONFIGURE_ARGS:= --prefix=/usr \ --enable-postproc \ ${CONFIGURE_CPU_OPTS} +ifeq ($(ADK_PACKAGE_LIBFFMPEG_WITH_X264),y) +CONFIGURE_ARGS+= --enable-libx264 +endif ifeq ($(ADK_PACKAGE_LIBFFMPEG_WITH_AAC),y) CONFIGURE_ARGS+= --enable-libfaac endif diff --git a/package/libx264/Makefile b/package/libx264/Makefile new file mode 100644 index 000000000..ff54b8911 --- /dev/null +++ b/package/libx264/Makefile @@ -0,0 +1,27 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= libx264 +# actually is snapshot x264-snapshot-20131010-2245 +PKG_VERSION:= 1.0 +PKG_RELEASE:= 1 +PKG_MD5SUM:= e6718029b4bc955f1dbb9bdafeed3ac0 +PKG_DESCR:= H264 encoding library +PKG_SECTION:= libs +PKG_URL:= http://www.videolan.org/developers/x264.html +PKG_SITES:= http://openadk.org/distfiles/ + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,LIBX264,libx264,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIGURE_ARGS+= --disable-cli + +libx264-install: + $(INSTALL_DIR) $(IDIR_LIBX264)/usr/lib + $(CP) $(WRKINST)/usr/lib/libx264*.so* \ + $(IDIR_LIBX264)/usr/lib + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/libx264/patches/patch-configure b/package/libx264/patches/patch-configure new file mode 100644 index 000000000..b480bd661 --- /dev/null +++ b/package/libx264/patches/patch-configure @@ -0,0 +1,23 @@ +--- libx264-1.0.orig/configure 2013-10-10 22:45:04.000000000 +0200 ++++ libx264-1.0/configure 2013-10-11 11:33:39.000000000 +0200 +@@ -985,9 +985,9 @@ if [ "$debug" = "yes" ]; then + elif [ $ARCH = ARM ]; then + # arm-gcc-4.2 produces incorrect output with -ffast-math + # and it doesn't save any speed anyway on 4.4, so disable it +- CFLAGS="-O3 -fno-fast-math $CFLAGS" ++ CFLAGS="-fno-fast-math $CFLAGS" + else +- CFLAGS="-O3 -ffast-math $CFLAGS" ++ CFLAGS="-ffast-math $CFLAGS" + fi + + if cc_check '' -fno-tree-vectorize ; then +@@ -1136,7 +1136,7 @@ LIBX264=$LIBX264 + AR=$AR + RANLIB=$RANLIB + STRIP=$STRIP +-AS=$AS ++AS=$CC + ASFLAGS=$ASFLAGS + RC=$RC + RCFLAGS=$RCFLAGS diff --git a/package/libx264/patches/patch-configure.orig b/package/libx264/patches/patch-configure.orig new file mode 100644 index 000000000..08a3720f5 --- /dev/null +++ b/package/libx264/patches/patch-configure.orig @@ -0,0 +1,11 @@ +--- libx264-1.0.orig/configure 2013-10-10 22:45:04.000000000 +0200 ++++ libx264-1.0/configure 2013-10-11 11:32:15.000000000 +0200 +@@ -1136,7 +1136,7 @@ LIBX264=$LIBX264 + AR=$AR + RANLIB=$RANLIB + STRIP=$STRIP +-AS=$AS ++AS=$CC + ASFLAGS=$ASFLAGS + RC=$RC + RCFLAGS=$RCFLAGS diff --git a/package/mpd/files/mpd.conf b/package/mpd/files/mpd.conf index c4f9a5290..263202b1d 100644 --- a/package/mpd/files/mpd.conf +++ b/package/mpd/files/mpd.conf @@ -6,6 +6,8 @@ state_file "/etc/mpd/state" db_file "/etc/mpd/database" pid_file "/var/run/mpd/mpd.pid" log_file "syslog" +filesystem_charset "UTF-8" +id3v1_encoding "UTF-8" # An example of an ALSA output audio_output { type "alsa" diff --git a/package/xbmc/Makefile b/package/xbmc/Makefile index 1eb77d9c1..98e245bae 100644 --- a/package/xbmc/Makefile +++ b/package/xbmc/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:= xbmc PKG_VERSION:= 12.2 -PKG_RELEASE:= 1 +PKG_RELEASE:= 2 PKG_MD5SUM:= 489f3877decae4e265ece54f9eaef0ba PKG_DESCR:= software media player PKG_SECTION:= multimedia @@ -56,6 +56,9 @@ CONFIGURE_ARGS+= --disable-optical-drive \ --disable-x11 \ --with-platform=raspberry-pi +post-extract: + (cd $(WRKDIR) && ${BASH} $(TOPDIR)/scripts/xbmc-fix.sh) + xbmc-install: $(INSTALL_DIR) $(IDIR_XBMC)/usr/lib/xbmc $(CP) $(WRKINST)/usr/lib/xbmc/* \ diff --git a/package/xbmc/patches/patch-xbmc_Application_cpp b/package/xbmc/patches/patch-xbmc_Application_cpp index 587456a07..dd350c3b6 100644 --- a/package/xbmc/patches/patch-xbmc_Application_cpp +++ b/package/xbmc/patches/patch-xbmc_Application_cpp @@ -1,5 +1,5 @@ --- xbmc-12.2.orig/xbmc/Application.cpp 2013-05-03 07:57:41.000000000 +0200 -+++ xbmc-12.2/xbmc/Application.cpp 2013-10-08 13:55:01.000000000 +0200 ++++ xbmc-12.2/xbmc/Application.cpp 2013-10-10 18:43:17.000000000 +0200 @@ -615,7 +615,7 @@ bool CApplication::Create() if (!CLog::Init(CSpecialProtocol::TranslatePath(g_settings.m_logFolder).c_str())) @@ -35,7 +35,7 @@ - CStdString strTempPath = userHome; - strTempPath = URIUtils::AddFileToFolder(strTempPath, ".xbmc/temp"); + CStdString strTempPath = "/tmp"; -+ strTempPath = URIUtils::AddFileToFolder(strTempPath, "/.xbmc/temp"); ++ strTempPath = URIUtils::AddFileToFolder(strTempPath, "/xbmc"); if (getenv("XBMC_TEMP")) strTempPath = getenv("XBMC_TEMP"); CSpecialProtocol::SetTempPath(strTempPath); |