omxplayer: add new package
[openwrt/staging/noltari.git] / package / multimedia / omxplayer / Makefile
1 #
2 # Copyright (C) 2019 Álvaro Fernández Rojas <noltari@gmail.com>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=omxplayer
11 PKG_RELEASE:=1
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL:=https://github.com/popcornmix/omxplayer.git
15 PKG_SOURCE_VERSION:=ecd446d2de7eb86a43acaae59807a8e5c173f80d
16 PKG_MIRROR_HASH:=03ccbd4b64944b417749aa5e2f3efad6bf5480efb52cdc4f51b4dcf490e5cd15
17
18 PKG_FLAGS:=nonshared
19
20 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
24
25 TARGET_CFLAGS += \
26 -I$(STAGING_DIR)/usr/include/freetype2 \
27 -I$(STAGING_DIR)/usr/include/dbus-1.0 \
28 -I$(STAGING_DIR)/usr/lib/dbus-1.0/include
29
30 define Build/Prepare
31 $(call Build/Prepare/Default,)
32 $(CP) files/* $(PKG_BUILD_DIR)/
33 endef
34
35 define Package/omxplayer
36 TITLE:=Raspberry Pi command line OMX player
37 SECTION:=multimedia
38 CATEGORY:=Multimedia
39 DEPENDS:=@(TARGET_brcm2708_bcm2708||TARGET_brcm2708_bcm2709) \
40 +brcm2708-userland +alsa-lib +libffmpeg-omx +libpcre +libdbus \
41 +boost +boost-libs +libfreetype +libdbus \
42 +dejavu-fonts-ttf-DejaVuSans +dejavu-fonts-ttf-DejaVuSans-Oblique
43 endef
44
45 define Package/omxplayer/description
46 OMXPlayer is a command-line video player for the Raspberry Pi.
47 It can play video directly from the command line and does not require a
48 desktop.
49 OMXPlayer leverages the OpenMAX API to make use of the hardware video
50 decoder in the GPU. Hardware acceleration along with direct command-line
51 use on ARM silicon allows ultra low overhead, low power video playback.
52 OMXPlayer was developed as a testbed for the XBMC Raspberry Pi
53 implementation and is quite handy to use standalone.
54 endef
55
56 define Package/omxplayer/install
57 $(INSTALL_DIR) $(1)/usr/bin
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/omxplayer.bin $(1)/usr/bin/omxplayer
59 endef
60
61 $(eval $(call BuildPackage,omxplayer))