summaryrefslogtreecommitdiff
path: root/package/omxplayer/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-07-22 15:20:22 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-07-22 15:20:22 +0200
commitc9952d01d5058e26b4d913079cc55f60027e315c (patch)
tree22ab8b7c4d6157e04e469459ed44b44b05f2663c /package/omxplayer/Makefile
parent802675c2e476a9c490baa9488dd1b49a17f32d23 (diff)
add omxplayer for raspberry pi
Diffstat (limited to 'package/omxplayer/Makefile')
-rw-r--r--package/omxplayer/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/package/omxplayer/Makefile b/package/omxplayer/Makefile
new file mode 100644
index 000000000..c267740fe
--- /dev/null
+++ b/package/omxplayer/Makefile
@@ -0,0 +1,41 @@
+# 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:= omxplayer
+PKG_VERSION:= 0.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= bb0bcdf1de3aec56d3e0746b91915d90
+PKG_DESCR:= video player for raspberry pi
+PKG_SECTION:= multimedia
+PKG_DEPENDS:= libffmpeg boost bcm2835-vc libfreetype libpcre
+PKG_DEPENDS+= librt zlib libpthread libstdcxx libgcc
+PKG_BUILDDEP:= ffmpeg boost bcm2835-vc freetype pcre
+PKG_URL:= https://github.com/popcornmix/omxplayer
+PKG_SITES:= http://openadk.org/distfiles/
+
+PKG_SYSTEM_DEPENDS:= raspberry-pi
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,OMXPLAYER,omxplayer,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= manual
+INSTALL_STYLE:= manual
+TARGET_CPPFLAGS+= -I$(STAGING_DIR)/usr/include/boost-1_54 \
+ -I$(STAGING_DIR)/usr/include/freetype2 \
+ -I$(STAGING_DIR)/opt/vc/include \
+ -I$(STAGING_DIR)/opt/vc/include/interface/vcos/pthreads \
+ -I$(STAGING_DIR)/opt/vc/include/interface/vmcs_host/linux
+TARGET_LDFLAGS+= -L$(STAGING_DIR)/opt/vc/lib
+
+omxplayer-install:
+ $(INSTALL_DIR) $(IDIR_OMXPLAYER)/usr/bin
+ $(INSTALL_BIN) $(WRKSRC)/omxplayer{,.bin} \
+ $(IDIR_OMXPLAYER)/usr/bin
+ $(INSTALL_DIR) $(IDIR_OMXPLAYER)/usr/share/fonts/truetype/freefont/
+ $(INSTALL_DATA) $(WRKSRC)/fonts/* \
+ $(IDIR_OMXPLAYER)/usr/share/fonts/truetype/freefont/
+
+include ${TOPDIR}/mk/pkg-bottom.mk