diff options
Diffstat (limited to 'package')
22 files changed, 686 insertions, 3 deletions
diff --git a/package/ffmpeg/Makefile b/package/ffmpeg/Makefile index c6c9249b3..44595c423 100644 --- a/package/ffmpeg/Makefile +++ b/package/ffmpeg/Makefile @@ -4,9 +4,9 @@ include ${ADK_TOPDIR}/rules.mk PKG_NAME:= ffmpeg -PKG_VERSION:= 2.3.2 +PKG_VERSION:= 2.3.3 PKG_RELEASE:= 1 -PKG_MD5SUM:= 651e5e82360baba41e4d1e426b4897f6 +PKG_MD5SUM:= 72361d3b8717b6db3ad2b9da8df7af5e PKG_DESCR:= record, convert and stream audio & video PKG_SECTION:= libs/video PKG_FDEPENDS:= libpthread @@ -128,7 +128,7 @@ CONFIGURE_ARGS:= --prefix=/usr \ --sysroot=${STAGING_TARGET_DIR} \ --cross-prefix=${TARGET_CROSS} \ --cc='$(TARGET_CC)' \ - --host-cc=$(CC_FOR_BUILD) \ + --host-cc=$(HOST_CC) \ --disable-bzlib \ --disable-doc \ --disable-debug \ diff --git a/package/gpu-viv-bin-mx6q/Makefile b/package/gpu-viv-bin-mx6q/Makefile new file mode 100644 index 000000000..aee71c3ce --- /dev/null +++ b/package/gpu-viv-bin-mx6q/Makefile @@ -0,0 +1,34 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(ADK_TOPDIR)/rules.mk + +PKG_NAME:= gpu-viv-bin-mx6q +PKG_VERSION:= 3.10.17-1.0.0 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 8b9c4f6181acf46028e39508a970ecc1 +PKG_DESCR:= IMX GPU library (Freescale) +PKG_SECTION:= libs/video +PKG_URL:= http://www.freescale.com/ +PKG_SITES:= http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/ + +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-hfp.bin +WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}-hfp + +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,GPU_VIV_BIN_MX6Q,gpu-viv-bin-mx6q,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIG_STYLE:= manual +BUILD_STYLE:= manual +INSTALL_STYLE:= manual + +gpu-viv-bin-mx6q-install: + $(INSTALL_DIR) $(IDIR_GPU_VIV_BIN_MX6Q)/usr/lib + $(CP) $(WRKBUILD)/usr/lib/lib*.so* \ + $(IDIR_GPU_VIV_BIN_MX6Q)/usr/lib + $(INSTALL_DIR) $(STAGING_TARGET_DIR)/usr/include + $(CP) $(WRKBUILD)/usr/include/* \ + $(STAGING_TARGET_DIR)/usr/include + +include ${ADK_TOPDIR}/mk/pkg-bottom.mk diff --git a/package/imx-lib/Makefile b/package/imx-lib/Makefile new file mode 100644 index 000000000..4177bfaf2 --- /dev/null +++ b/package/imx-lib/Makefile @@ -0,0 +1,32 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(ADK_TOPDIR)/rules.mk + +PKG_NAME:= imx-lib +PKG_VERSION:= 3.10.17-1.0.0 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 8e3346d5f33b5aa5f915a0dd8aa99cc9 +PKG_DESCR:= IMX library (Freescale) +PKG_SECTION:= libs/video +PKG_URL:= http://www.freescale.com/ +PKG_SITES:= http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/ + +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz + +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,IMX_LIB,imx-lib,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +TARGET_CPPFLAGS+= -I${LINUX_DIR}/drivers/mxc/security/rng/include \ + -I$(LINUX_DIR)/drivers/mxc/security/sahara2/include \ + -idirafter $(LINUX_DIR)/include/uapi +MAKE_ENV+= PLATFORM=IMX6Q +CONFIG_STYLE:= manual + +imx-lib-install: + $(INSTALL_DIR) $(IDIR_IMX_LIB)/usr/lib + $(CP) $(WRKINST)/usr/lib/lib{cec,ipu,pxp}.so* \ + $(IDIR_IMX_LIB)/usr/lib + +include ${ADK_TOPDIR}/mk/pkg-bottom.mk diff --git a/package/imx-lib/patches/patch-hdmi-cec_Makefile b/package/imx-lib/patches/patch-hdmi-cec_Makefile new file mode 100644 index 000000000..020998bd6 --- /dev/null +++ b/package/imx-lib/patches/patch-hdmi-cec_Makefile @@ -0,0 +1,26 @@ +--- imx-lib-3.10.17-1.0.0.orig/hdmi-cec/Makefile 2014-01-16 15:27:12.000000000 +0100 ++++ imx-lib-3.10.17-1.0.0/hdmi-cec/Makefile 2014-08-27 08:38:14.339600710 +0200 +@@ -21,18 +21,18 @@ endif + all: $(LIBNAME).so $(LIBNAME).a + + install: install_headers +- @mkdir -p $(DEST_DIR)/usr/lib +- cp -P $(LIBNAME).* $(DEST_DIR)/usr/lib ++ @mkdir -p $(DESTDIR)/usr/lib ++ cp -P $(LIBNAME).* $(DESTDIR)/usr/lib + + install_headers: +- @mkdir -p $(DEST_DIR)/usr/include +- cp hdmi-cec.h $(DEST_DIR)/usr/include ++ @mkdir -p $(DESTDIR)/usr/include ++ cp hdmi-cec.h $(DESTDIR)/usr/include + else + all install : + endif + + %.o: %.c +- $(CC) -D$(PLATFORM) -Wall -O2 -fPIC -c $^ -o $@ ++ $(CC) -D$(PLATFORM) $(CFLAGS) -fPIC -c $^ -o $@ + + $(LIBNAME).so.$(SONAMEVERSION): $(OBJ) + $(CC) -shared -nostartfiles -Wl,-soname,$@ $^ -o $@ diff --git a/package/imx-lib/patches/patch-ipu_Makefile b/package/imx-lib/patches/patch-ipu_Makefile new file mode 100644 index 000000000..6016a1a26 --- /dev/null +++ b/package/imx-lib/patches/patch-ipu_Makefile @@ -0,0 +1,28 @@ +--- imx-lib-3.10.17-1.0.0.orig/ipu/Makefile 2014-01-16 15:27:12.000000000 +0100 ++++ imx-lib-3.10.17-1.0.0/ipu/Makefile 2014-08-27 08:37:52.467524299 +0200 +@@ -17,11 +17,11 @@ ifeq ($(PLATFORM), $(findstring $(PLATFO + all: $(LIBNAME).so + + install: +- @mkdir -p $(DEST_DIR)/usr/lib +- cp -P $(LIBNAME).* $(DEST_DIR)/usr/lib +- @mkdir -p $(DEST_DIR)/usr/include +- cp mxc_ipu_hl_lib.h $(DEST_DIR)/usr/include +- cp ipu.h $(DEST_DIR)/usr/include ++ @mkdir -p $(DESTDIR)/usr/lib ++ cp -P $(LIBNAME).* $(DESTDIR)/usr/lib ++ @mkdir -p $(DESTDIR)/usr/include ++ cp mxc_ipu_hl_lib.h $(DESTDIR)/usr/include ++ cp ipu.h $(DESTDIR)/usr/include + else + all install: + @echo "Not support platform, will not complile" +@@ -37,7 +37,7 @@ $(LIBNAME).so: $(LIBNAME).so.$(SONAMEVER + ifeq "$(PLATFORM)" "" + $(error "Unspecified PLATFORM variable") + endif +- $(CC) -D$(PLATFORM) $(INCLUDE) -Wall -O2 -fPIC -c $^ -o $@ ++ $(CC) -D$(PLATFORM) $(CFLAGS) -fPIC -c $^ -o $@ + + .PHONY: clean + clean: diff --git a/package/imx-lib/patches/patch-pxp_Makefile b/package/imx-lib/patches/patch-pxp_Makefile new file mode 100644 index 000000000..b38c12807 --- /dev/null +++ b/package/imx-lib/patches/patch-pxp_Makefile @@ -0,0 +1,26 @@ +--- imx-lib-3.10.17-1.0.0.orig/pxp/Makefile 2014-01-16 15:27:12.000000000 +0100 ++++ imx-lib-3.10.17-1.0.0/pxp/Makefile 2014-08-27 08:37:26.291432836 +0200 +@@ -15,18 +15,18 @@ ifeq ($(PLATFORM), $(findstring $(PLATFO + all: $(LIBNAME).so $(LIBNAME).a + + install: install_headers +- @mkdir -p $(DEST_DIR)/usr/lib +- cp -P $(LIBNAME).* $(DEST_DIR)/usr/lib ++ @mkdir -p $(DESTDIR)/usr/lib ++ cp -P $(LIBNAME).* $(DESTDIR)/usr/lib + + install_headers: +- @mkdir -p $(DEST_DIR)/usr/include +- cp pxp_lib.h $(DEST_DIR)/usr/include ++ @mkdir -p $(DESTDIR)/usr/include ++ cp pxp_lib.h $(DESTDIR)/usr/include + else + all install : + endif + + %.o: %.c +- $(CC) -D$(PLATFORM) $(INCLUDE) -Wall -O2 -fPIC -c $^ -o $@ ++ $(CC) -D$(PLATFORM) $(CFLAGS) -fPIC -c $^ -o $@ + + $(LIBNAME).so.$(SONAMEVERSION): $(OBJ) + $(CC) -shared -nostartfiles -Wl,-soname,$@ $(LFLAGS) $^ -o $@ diff --git a/package/imx-lib/patches/patch-sim_Makefile b/package/imx-lib/patches/patch-sim_Makefile new file mode 100644 index 000000000..6a592d49f --- /dev/null +++ b/package/imx-lib/patches/patch-sim_Makefile @@ -0,0 +1,11 @@ +--- imx-lib-3.10.17-1.0.0.orig/sim/Makefile 2014-01-16 15:27:12.000000000 +0100 ++++ imx-lib-3.10.17-1.0.0/sim/Makefile 2014-08-27 08:30:04.293885958 +0200 +@@ -27,7 +27,7 @@ $(LIBNAME).so: $(LIBNAME).so.$(SONAMEVER + ln -s $< $@ + + %.o: %.c +- $(CC) -D$(PLATFORM) $(INCLUDE) -Wall -O2 -fPIC -c $^ -o $@ ++ $(CC) -D$(PLATFORM) $(CFLAGS) -c $^ -o $@ + + else + all install : diff --git a/package/imx-vpu/Makefile b/package/imx-vpu/Makefile new file mode 100644 index 000000000..f20727fdc --- /dev/null +++ b/package/imx-vpu/Makefile @@ -0,0 +1,32 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(ADK_TOPDIR)/rules.mk + +PKG_NAME:= imx-vpu +PKG_VERSION:= 3.10.17-1.0.0 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 71ea1b803864101ebf88a1bab45514d2 +PKG_DESCR:= IMX VPU library (Freescale) +PKG_SECTION:= libs/video +PKG_URL:= http://www.freescale.com/ +PKG_SITES:= http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/ + +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.bin + +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,IMX_VPU,imx-vpu,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +TARGET_CPPFLAGS+= -I${LINUX_DIR}/drivers/mxc/security/rng/include \ + -I$(LINUX_DIR)/drivers/mxc/security/sahara2/include \ + -idirafter $(LINUX_DIR)/include/uapi +MAKE_ENV+= PLATFORM=IMX6Q +CONFIG_STYLE:= manual + +imx-vpu-install: + $(INSTALL_DIR) $(IDIR_IMX_VPU)/usr/lib + $(CP) $(WRKINST)/usr/lib/libvpu.so* \ + $(IDIR_IMX_VPU)/usr/lib + +include ${ADK_TOPDIR}/mk/pkg-bottom.mk diff --git a/package/imx-vpu/patches/patch-vpu_Makefile b/package/imx-vpu/patches/patch-vpu_Makefile new file mode 100644 index 000000000..e4698f8e7 --- /dev/null +++ b/package/imx-vpu/patches/patch-vpu_Makefile @@ -0,0 +1,28 @@ +--- imx-vpu-3.10.17-1.0.0.orig/vpu/Makefile 2014-01-16 15:27:33.000000000 +0100 ++++ imx-vpu-3.10.17-1.0.0/vpu/Makefile 2014-08-27 08:43:40.116737574 +0200 +@@ -21,19 +21,19 @@ endif + all: $(LIBNAME).so $(LIBNAME).a + + install: install_headers +- @mkdir -p $(DEST_DIR)/usr/lib +- cp -P $(LIBNAME).* $(DEST_DIR)/usr/lib ++ @mkdir -p $(DESTDIR)/usr/lib ++ cp -P $(LIBNAME).* $(DESTDIR)/usr/lib + + install_headers: +- @mkdir -p $(DEST_DIR)/usr/include +- cp vpu_lib.h $(DEST_DIR)/usr/include +- cp vpu_io.h $(DEST_DIR)/usr/include ++ @mkdir -p $(DESTDIR)/usr/include ++ cp vpu_lib.h $(DESTDIR)/usr/include ++ cp vpu_io.h $(DESTDIR)/usr/include + else + all install : + endif + + %.o: %.c +- $(CC) -D$(PLATFORM) -Wall -O2 -fPIC -c $^ -o $@ ++ $(CC) -D$(PLATFORM) $(CFLAGS) -fPIC -c $^ -o $@ + + $(LIBNAME).so.$(SONAMEVERSION): $(OBJ) + $(CC) -shared -nostartfiles -Wl,-soname,$@ $^ -o $@ -lpthread diff --git a/package/kodi/Makefile b/package/kodi/Makefile new file mode 100644 index 000000000..ccc8025f6 --- /dev/null +++ b/package/kodi/Makefile @@ -0,0 +1,199 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(ADK_TOPDIR)/rules.mk + +PKG_NAME:= kodi +PKG_VERSION:= 14.0alpha3 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 76951db1b343b118e6b2a4e7411fabd9 +PKG_DESCR:= software media player +PKG_SECTION:= mm/video +PKG_DEPENDS:= boost python2 libstdcxx glibc-gconv +PKG_DEPENDS+= libglew mesalib libass libmpeg2 libmad libdbus +PKG_DEPENDS+= libjpeg-turbo libogg libvorbis libmodplug libcurl +PKG_DEPENDS+= libflac libopenssl libbz2 libtiff liblzo +PKG_DEPENDS+= yajl tinyxml libsqlite libpcrecpp libpng libncurses +PKG_DEPENDS+= libpcre libcdio libfreetype libsamplerate +PKG_DEPENDS+= taglib libjasper libmp3lame libmicrohttpd +PKG_DEPENDS+= libgpg-error libudev python2-mod-sqlite +PKG_DEPENDS+= libxslt libvorbisenc alsa-lib glib libglu librt +PKG_BUILDDEP:= boost python2 mesalib libglew libass ffmpeg +PKG_BUILDDEP+= libmpeg2 libmad libjpeg-turbo libogg libvorbis +PKG_BUILDDEP+= curl flac openssl bzip2 libtiff liblzo yajl +PKG_BUILDDEP+= tinyxml sqlite pcre libpng libcdio freetype +PKG_BUILDDEP+= libsamplerate taglib libjasper lame libmicrohttpd +PKG_BUILDDEP+= eudev alsa-lib glib glu libmodplug +PKG_BUILDDEP+= libgpg-error dbus libxslt libvorbis +PKG_BUILDDEP+= swig-host sdl-host sdl-image-host liblzo-host +PKG_BUILDDEP+= zip-host unzip-host +PKG_URL:= http://xbmc.org/ +PKG_SITES:= http://www.openadk.org/distfiles/ + +PKG_FLAVOURS_KODI:= WITH_SMB WITH_NFS WITH_SSH WITH_AVAHI WITH_CEC +PKG_FLAVOURS_KODI+= WITH_AFP WITH_WEBSERVER WITH_RTMP WITH_BLURAY + +PKGFD_WITH_SMB:= enable samba support +PKGFB_WITH_SMB:= samba +PKGFS_WITH_SMB:= samba-lib +PKGFD_WITH_NFS:= enable nfs support +PKGFB_WITH_NFS:= libnfs +PKGFS_WITH_NFS:= libnfs +PKGFD_WITH_SSH:= enable ssh support +PKGFB_WITH_SSH:= libssh +PKGFS_WITH_SSH:= libssh +PKGFD_WITH_AVAHI:= enable avahi support +PKGFB_WITH_AVAHI:= avahi +PKGFS_WITH_AVAHI:= libavahi +PKGFD_WITH_CEC:= enable cec support +PKGFB_WITH_CEC:= libcec +PKGFS_WITH_CEC:= libcec +PKGFD_WITH_AFP:= enable afp support +PKGFB_WITH_AFP:= afpfs-ng +PKGFS_WITH_AFP:= libafpclient +PKGFD_WITH_RTMP:= enable rtmp support +PKGFB_WITH_RTMP:= rtmpdump +PKGFS_WITH_RTMP:= librtmp +PKGFD_WITH_BLURAY:= enable bluray support +PKGFB_WITH_BLURAY:= libbluray +PKGFS_WITH_BLURAY:= libbluray +PKGFD_WITH_WEBSERVER:= enable internal webserver support + +PKG_DEPENDS_RASPBERRY_PI:= bcm2835-vc +PKG_BUILDDEP_RASPBERRY_PI:= bcm2835-vc +PKG_DEPENDS_SOLIDRUN_IMX6:= libfslvpuwrap gpu-viv-bin-mx6q +PKG_BUILDDEP_SOLIDRUN_IMX6:= libfslvpuwrap gpu-viv-bin-mx6q +PKG_DEPENDS_IBM_X40:= libsdl libsdl-image libxshmfence libx11 libxext libxt libsm libice +PKG_DEPENDS_VBOX_X86:= libsdl libsdl-image libxshmfence libx11 libxext libxt libsm libice +PKG_BUILDDEP_IBM_X40:= nasm-host sdl sdl-image +PKG_BUILDDEP_VBOX_X86:= nasm-host sdl sdl-image +PKG_SYSTEM_DEPENDS:= raspberry-pi ibm-x40 vbox-x86 solidrun-imx6 + +DIFF_IGNOREFILES:= configure missing depcomp install-sh INSTALL \ + aclocal.m4 config.h.in + +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,KODI,kodi,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +HOST_CXXFLAGS+= $(HOST_CPPFLAGS) +XAKE_FLAGS+= V=1 TIXML_USE_STL=1 GCC_HONOUR_COPTS=s +TARGET_CPPFLAGS+= -I. -I./utils \ + -I$(STAGING_TARGET_DIR)/usr/include/boost-1_55 \ + -I$(STAGING_TARGET_DIR)/usr/include/afpfs-ng \ + -DTIXML_USE_STL=1 -DHAS_SIMPLEPM=1 -DLINUX + +ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y) +TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/opt/vc/include \ + -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vcos/pthreads \ + -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vmcs_host/linux +TARGET_LDFLAGS+= -L$(STAGING_TARGET_DIR)/opt/vc/lib -lkhrn_static +endif + +AUTOTOOL_STYLE:= autoreconf +CONFIGURE_ENV+= DESTDIR='${WRKINST}' \ + TEXTUREPACKER_NATIVE_ROOT='$(STAGING_HOST_DIR)/usr' +CONFIGURE_ARGS+= --disable-optical-drive \ + --disable-optimizations \ + --disable-mysql \ + --disable-rsxs \ + --disable-projectm \ + --disable-crystalhd \ + --disable-mdnsembedded \ + --disable-libusb \ + --disable-libcap \ + --disable-joystick \ + --disable-dvdcss \ + --disable-debug \ + --disable-gtest \ + --disable-ccache \ + --disable-wayland \ + --disable-pulse \ + --disable-mid \ + --enable-alsa \ + --enable-libmp3lame \ + --enable-libvorbisenc \ + --enable-udev \ + --with-ffmpeg \ + --enable-external-libraries + +ifneq ($(ADK_PACKAGE_XBMC_WITH_BLURAY),) +CONFIGURE_ARGS+= --enable-libbluray +else +CONFIGURE_ARGS+= --disable-libbluray +endif +ifneq ($(ADK_PACKAGE_XBMC_WITH_AFP),) +CONFIGURE_ARGS+= --enable-afpclient +else +CONFIGURE_ARGS+= --disable-afpclient +endif +ifneq ($(ADK_PACKAGE_XBMC_WITH_SMB),) +CONFIGURE_ARGS+= --enable-samba +else +CONFIGURE_ARGS+= --disable-samba +endif +ifneq ($(ADK_PACKAGE_XBMC_WITH_SSH),) +CONFIGURE_ARGS+= --enable-ssh +else +CONFIGURE_ARGS+= --disable-ssh +endif +ifneq ($(ADK_PACKAGE_XBMC_WITH_NFS),) +CONFIGURE_ARGS+= --enable-nfs +else +CONFIGURE_ARGS+= --disable-nfs +endif +ifneq ($(ADK_PACKAGE_XBMC_WITH_CEC),) +CONFIGURE_ARGS+= --enable-libcec +else +CONFIGURE_ARGS+= --disable-libcec +endif +ifneq ($(ADK_PACKAGE_XBMC_WITH_RTMP),) +CONFIGURE_ARGS+= --enable-rtmp +else +CONFIGURE_ARGS+= --disable-rtmp +endif +ifneq ($(ADK_PACKAGE_XBMC_WITH_AVAHI),) +CONFIGURE_ARGS+= --enable-avahi +else +CONFIGURE_ARGS+= --disable-avahi +endif +ifneq ($(ADK_PACKAGE_XBMC_WITH_WEBSERVER),) +CONFIGURE_ARGS+= --enable-webserver +else +CONFIGURE_ARGS+= --disable-webserver +endif + +ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y) +CONFIGURE_ARGS+= --with-platform=raspberry-pi \ + --enable-player=omxplayer \ + --enable-gles \ + --disable-sdl \ + --disable-x11 +else +ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_IMX6),y) +CONFIGURE_ARGS+= --disable-x11 \ + --disable-sdl \ + --disable-gles \ + --enable-neon \ + --enable-codec=imxvpu +else +CONFIGURE_ARGS+= --enable-x11 \ + --enable-sdl +endif +endif + +pre-configure: + (cd $(WRKBUILD)/lib/cpluff && env PATH=$(AUTOTOOL_PATH) ./autogen.sh) + +kodi-install: + $(INSTALL_DIR) $(IDIR_KODI)/usr/lib/xbmc/addons + $(CP) $(WRKINST)/usr/lib/xbmc/* \ + $(IDIR_KODI)/usr/lib/xbmc + $(INSTALL_DIR) $(IDIR_KODI)/usr/share/xbmc + $(CP) $(WRKINST)/usr/share/xbmc/* \ + $(IDIR_KODI)/usr/share/xbmc + $(INSTALL_DIR) $(IDIR_KODI)/usr/bin + $(INSTALL_BIN) $(WRKINST)/usr/bin/xbmc \ + $(IDIR_KODI)/usr/bin + +include ${ADK_TOPDIR}/mk/pkg-bottom.mk diff --git a/package/kodi/files/xbmc.init b/package/kodi/files/xbmc.init new file mode 100644 index 000000000..bbe65c1c2 --- /dev/null +++ b/package/kodi/files/xbmc.init @@ -0,0 +1,30 @@ +#!/bin/sh +#PKG xbmc +#INIT 95 + +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${xbmc:-NO}" = x"NO" && exit 0 + test x"$xbmc" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start + exec sh $0 start + ;; +start) + export LD_LIBRARY_PATH=/opt/vc/lib + xbmc & + ;; +stop) + kill $(pgrep -f /usr/lib/xbmc/xbmc.bin) + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? diff --git a/package/kodi/files/xbmc.postinst b/package/kodi/files/xbmc.postinst new file mode 100644 index 000000000..45274da68 --- /dev/null +++ b/package/kodi/files/xbmc.postinst @@ -0,0 +1,3 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf xbmc NO diff --git a/package/kodi/patches/patch-Makefile_include_in b/package/kodi/patches/patch-Makefile_include_in new file mode 100644 index 000000000..d73f62de2 --- /dev/null +++ b/package/kodi/patches/patch-Makefile_include_in @@ -0,0 +1,10 @@ +--- xbmc-13.1.orig/Makefile.include.in 2014-06-08 08:40:24.000000000 +0200 ++++ xbmc-13.1/Makefile.include.in 2014-06-11 13:17:49.354722974 +0200 +@@ -37,6 +37,7 @@ CFLAGS+=@CFLAGS@ + CFLAGS_FOR_BUILD+=@CFLAGS_FOR_BUILD@ + LDFLAGS+=@LDFLAGS@ + LDFLAGS_FOR_BUILD+=@LDFLAGS_FOR_BUILD@ ++INCLUDES+=@CPPFLAGS@ + INCLUDES+=-I@abs_top_srcdir@/lib + INCLUDES+=-I@abs_top_srcdir@/xbmc + INCLUDES+=-I@abs_top_srcdir@/addons/library.xbmc.gui diff --git a/package/kodi/patches/patch-lib_cpluff_Makefile_am b/package/kodi/patches/patch-lib_cpluff_Makefile_am new file mode 100644 index 000000000..fb70c6993 --- /dev/null +++ b/package/kodi/patches/patch-lib_cpluff_Makefile_am @@ -0,0 +1,11 @@ +--- xbmc-13.0rc1.orig/lib/cpluff/Makefile.am 2014-04-30 15:43:53.000000000 +0200 ++++ xbmc-13.0rc1/lib/cpluff/Makefile.am 2014-05-05 13:03:15.329450196 +0200 +@@ -6,7 +6,7 @@ + + ACLOCAL_AMFLAGS = -I m4 + +-SUBDIRS = libcpluff loader console po test docsrc doc ++SUBDIRS = libcpluff loader console test docsrc doc + DIST_SUBDIRS = $(SUBDIRS) examples + + EXTRA_DIST = COPYRIGHT.txt INSTALL.txt ChangeLog.txt Roadmap.txt autogen.sh plugin.xsd diff --git a/package/kodi/patches/patch-lib_cpluff_autogen_sh b/package/kodi/patches/patch-lib_cpluff_autogen_sh new file mode 100644 index 000000000..24a84ea38 --- /dev/null +++ b/package/kodi/patches/patch-lib_cpluff_autogen_sh @@ -0,0 +1,10 @@ +--- xbmc-13.0rc1.orig/lib/cpluff/autogen.sh 2014-04-30 15:43:53.000000000 +0200 ++++ xbmc-13.0rc1/lib/cpluff/autogen.sh 2014-05-05 12:15:29.307227206 +0200 +@@ -15,7 +15,6 @@ fi + + # Generate files in top level directory + cd "$basedir" +-autopoint + rm -f ABOUT-NLS + test -d auxliary || mkdir auxliary + libtoolize --automake -f diff --git a/package/kodi/patches/patch-lib_cpluff_configure_ac b/package/kodi/patches/patch-lib_cpluff_configure_ac new file mode 100644 index 000000000..d38754bfd --- /dev/null +++ b/package/kodi/patches/patch-lib_cpluff_configure_ac @@ -0,0 +1,11 @@ +--- xbmc-13.0rc1.orig/lib/cpluff/configure.ac 2014-04-30 15:43:53.000000000 +0200 ++++ xbmc-13.0rc1/lib/cpluff/configure.ac 2014-05-05 13:03:32.437577723 +0200 +@@ -46,8 +46,6 @@ AC_SUBST([CP_CXX_LIB_VERSION]) + # ----------------------- + AM_INIT_AUTOMAKE([foreign]) + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) +-AM_GNU_GETTEXT([external]) +-AM_GNU_GETTEXT_VERSION([0.16.1]) + + # C/C++ compiler settings + # ------------------- diff --git a/package/kodi/patches/patch-lib_cpluff_libcpluff_Makefile_am b/package/kodi/patches/patch-lib_cpluff_libcpluff_Makefile_am new file mode 100644 index 000000000..ffa9a1529 --- /dev/null +++ b/package/kodi/patches/patch-lib_cpluff_libcpluff_Makefile_am @@ -0,0 +1,11 @@ +--- xbmc-13.0rc1.orig/lib/cpluff/libcpluff/Makefile.am 2014-04-30 15:43:53.000000000 +0200 ++++ xbmc-13.0rc1/lib/cpluff/libcpluff/Makefile.am 2014-05-05 13:53:11.766461900 +0200 +@@ -6,7 +6,7 @@ + + SUBDIRS = docsrc + +-LIBS = @LIBS_LIBCPLUFF@ @LTLIBINTL@ @LIBS@ ++LIBS = @LIBS_LIBCPLUFF@ @LIBS@ + + CPPFLAGS = @CPPFLAGS@ + CPPFLAGS += -I. -DCP_C_API=CP_EXPORT -DCP_HOST="\"$(host)\"" -DCP_DATADIR="\"$(datadir)\"" diff --git a/package/kodi/patches/patch-m4_ax_python_devel_m4 b/package/kodi/patches/patch-m4_ax_python_devel_m4 new file mode 100644 index 000000000..ded81dbd5 --- /dev/null +++ b/package/kodi/patches/patch-m4_ax_python_devel_m4 @@ -0,0 +1,11 @@ +--- xbmc-13.0rc1.orig/m4/ax_python_devel.m4 2014-04-30 15:43:58.000000000 +0200 ++++ xbmc-13.0rc1/m4/ax_python_devel.m4 2014-05-02 08:03:10.000000000 +0200 +@@ -298,7 +298,7 @@ EOD` + # save current global flags + ac_save_LIBS="$LIBS" + ac_save_CPPFLAGS="$CPPFLAGS" +- LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS" ++ LIBS="$ac_save_LIBS $PYTHON_LDFLAGS" + CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS" + AC_LANG_PUSH([C]) + AC_LINK_IFELSE([ diff --git a/package/kodi/patches/patch-xbmc_Application_cpp b/package/kodi/patches/patch-xbmc_Application_cpp new file mode 100644 index 000000000..906ba1222 --- /dev/null +++ b/package/kodi/patches/patch-xbmc_Application_cpp @@ -0,0 +1,41 @@ +--- xbmc-13.1.orig/xbmc/Application.cpp 2014-06-08 08:40:26.000000000 +0200 ++++ xbmc-13.1/xbmc/Application.cpp 2014-06-08 09:42:40.232780377 +0200 +@@ -682,7 +682,7 @@ bool CApplication::Create() + + if (!CLog::Init(CSpecialProtocol::TranslatePath(g_advancedSettings.m_logFolder).c_str())) + { +- fprintf(stderr,"Could not init logging classes. Permission errors on ~/.xbmc (%s)\n", ++ fprintf(stderr,"Could not init logging classes. Permission errors on %s\n", + CSpecialProtocol::TranslatePath(g_advancedSettings.m_logFolder).c_str()); + return false; + } +@@ -1085,10 +1085,13 @@ bool CApplication::InitDirectoriesLinux( + userName = "root"; + + CStdString userHome; ++ userHome = "/data/xbmc"; ++/* + if (getenv("HOME")) + userHome = getenv("HOME"); + else + userHome = "/root"; ++*/ + + CStdString xbmcBinPath, xbmcPath; + CUtil::GetHomePath(xbmcBinPath, "XBMC_BIN_HOME"); +@@ -1120,11 +1123,11 @@ bool CApplication::InitDirectoriesLinux( + // map our special drives + CSpecialProtocol::SetXBMCBinPath(xbmcBinPath); + CSpecialProtocol::SetXBMCPath(xbmcPath); +- CSpecialProtocol::SetHomePath(userHome + "/.xbmc"); +- CSpecialProtocol::SetMasterProfilePath(userHome + "/.xbmc/userdata"); ++ CSpecialProtocol::SetHomePath(userHome); ++ CSpecialProtocol::SetMasterProfilePath(userHome + "/userdata"); + +- CStdString strTempPath = userHome; +- strTempPath = URIUtils::AddFileToFolder(strTempPath, ".xbmc/temp"); ++ CStdString strTempPath = "/tmp"; ++ strTempPath = URIUtils::AddFileToFolder(strTempPath, "/xbmc"); + if (getenv("XBMC_TEMP")) + strTempPath = getenv("XBMC_TEMP"); + CSpecialProtocol::SetTempPath(strTempPath); diff --git a/package/kodi/src/xbmc/powermanagement/linux/LinuxPowerSyscall.cpp b/package/kodi/src/xbmc/powermanagement/linux/LinuxPowerSyscall.cpp new file mode 100644 index 000000000..4b8b25efb --- /dev/null +++ b/package/kodi/src/xbmc/powermanagement/linux/LinuxPowerSyscall.cpp @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2014 Team XBMC + * http://www.xbmc.org + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with XBMC; see the file COPYING. If not, see + * <http://www.gnu.org/licenses/>. + * + */ + +#if defined (_LINUX) + +#include <stdlib.h> +#include "LinuxPowerSyscall.h" +#include "utils/log.h" + +CLinuxPowerSyscall::CLinuxPowerSyscall() +{ + CLog::Log(LOGINFO, "Selected LinuxPower as PowerSyscall"); +} + +CLinuxPowerSyscall::~CLinuxPowerSyscall() +{ } + +bool CLinuxPowerSyscall::Powerdown() +{ + system("/sbin/poweroff -F"); + return 0; +} + +bool CLinuxPowerSyscall::Reboot() +{ + system("/sbin/reboot -F"); + return 0; +} + +int CLinuxPowerSyscall::BatteryLevel(void) +{ } + +bool CLinuxPowerSyscall::PumpPowerEvents(IPowerEventsCallback *callback) +{ + return true; +} + +#endif + diff --git a/package/kodi/src/xbmc/powermanagement/linux/LinuxPowerSyscall.h b/package/kodi/src/xbmc/powermanagement/linux/LinuxPowerSyscall.h new file mode 100644 index 000000000..959a8119b --- /dev/null +++ b/package/kodi/src/xbmc/powermanagement/linux/LinuxPowerSyscall.h @@ -0,0 +1,45 @@ +#pragma once +/* + * Copyright (C) 2014 Team XBMC + * http://www.xbmc.org + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with XBMC; see the file COPYING. If not, see + * <http://www.gnu.org/licenses/>. + * + */ + +#if defined (_LINUX) +#include "powermanagement/IPowerSyscall.h" + +class CLinuxPowerSyscall : public CPowerSyscallWithoutEvents +{ +public: + CLinuxPowerSyscall(); + ~CLinuxPowerSyscall(); + + virtual bool Powerdown(); + virtual bool Suspend(void) { return false; } + virtual bool Hibernate(void) { return false; } + virtual bool Reboot(); + + virtual bool CanPowerdown(void) { return true; } + virtual bool CanSuspend(void) { return false; } + virtual bool CanHibernate(void) { return false; } + virtual bool CanReboot(void) { return true; } + virtual int BatteryLevel(void); + + virtual bool PumpPowerEvents(IPowerEventsCallback *callback); +}; +#endif + diff --git a/package/libfslvpuwrap/Makefile b/package/libfslvpuwrap/Makefile new file mode 100644 index 000000000..667f64a20 --- /dev/null +++ b/package/libfslvpuwrap/Makefile @@ -0,0 +1,28 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(ADK_TOPDIR)/rules.mk + +PKG_NAME:= libfslvpuwrap +PKG_VERSION:= 1.0.46 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 1f50110cb6de8ebf767fb9c5f8baf20d +PKG_DESCR:= VPU wrapper library +PKG_SECTION:= libs/video +PKG_BUILDDEP:= imx-lib imx-vpu +PKG_DEPENDS:= imx-lib imx-vpu +PKG_URL:= http://www.freescale.com/ +PKG_SITES:= http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/ + +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.bin + +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,LIBFSLVPUWRAP,libfslvpuwrap,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +libfslvpuwrap-install: + $(INSTALL_DIR) $(IDIR_LIBFSLVPUWRAP)/usr/lib + $(CP) $(WRKINST)/usr/lib/libfslvpuwrap.so* \ + $(IDIR_LIBFSLVPUWRAP)/usr/lib + +include ${ADK_TOPDIR}/mk/pkg-bottom.mk |