1################################################################################ 2# 3# omxplayer 4# 5################################################################################ 6 7OMXPLAYER_VERSION = f06235cc9690a6d58187514452df8cf8fcdaacec 8OMXPLAYER_SITE = $(call github,popcornmix,omxplayer,$(OMXPLAYER_VERSION)) 9OMXPLAYER_LICENSE = GPL-2.0+ 10OMXPLAYER_LICENSE_FILES = COPYING 11 12OMXPLAYER_DEPENDENCIES = \ 13 host-pkgconf alsa-lib boost dbus ffmpeg freetype libidn libusb pcre \ 14 rpi-userland zlib 15 16OMXPLAYER_EXTRA_CFLAGS = \ 17 -DTARGET_LINUX -DTARGET_POSIX \ 18 `$(PKG_CONFIG_HOST_BINARY) --cflags bcm_host` \ 19 `$(PKG_CONFIG_HOST_BINARY) --cflags freetype2` \ 20 `$(PKG_CONFIG_HOST_BINARY) --cflags dbus-1` 21 22# OMXplayer has support for building in Buildroot, but that 23# procedure is, well, tainted. Fix this by forcing the real, 24# correct values. 25OMXPLAYER_MAKE_ENV = \ 26 SDKSTAGE=$(STAGING_DIR) \ 27 $(TARGET_CONFIGURE_OPTS) \ 28 STRIP=true \ 29 CFLAGS="$(TARGET_CFLAGS) $(OMXPLAYER_EXTRA_CFLAGS)" 30 31define OMXPLAYER_BUILD_CMDS 32 $(OMXPLAYER_MAKE_ENV) $(MAKE) -C $(@D) omxplayer.bin 33endef 34 35define OMXPLAYER_INSTALL_TARGET_CMDS 36 $(INSTALL) -m 0755 -D $(@D)/omxplayer.bin $(TARGET_DIR)/usr/bin/omxplayer 37endef 38 39$(eval $(generic-package)) 40