63 lines
1.5 KiB
Makefile
63 lines
1.5 KiB
Makefile
|
include $(TOPDIR)/rules.mk
|
||
|
include $(BUILD_DIR)/kernel.mk
|
||
|
|
||
|
PKG_NAME:=tinaplayerdemo
|
||
|
PKG_VERSION:=1
|
||
|
PKG_RELEASE:=1
|
||
|
|
||
|
|
||
|
PKG_BUILD_DIR := $(COMPILE_DIR)/$(PKG_NAME)
|
||
|
|
||
|
include $(BUILD_DIR)/package.mk
|
||
|
|
||
|
define Package/tinaplayerdemo
|
||
|
SUBMENU:=liballwinner_tina_demo
|
||
|
SECTION:=utils
|
||
|
CATEGORY:=Allwinner
|
||
|
TITLE:=use tinaplayer interface in liballwinner_tina
|
||
|
DEPENDS:=+liballwinner \
|
||
|
+alsa-utils
|
||
|
endef
|
||
|
|
||
|
define Package/tinaplayerdemo/description
|
||
|
CedarX2.6 tina player
|
||
|
endef
|
||
|
|
||
|
define Build/Prepare
|
||
|
mkdir -p $(PKG_BUILD_DIR)
|
||
|
$(CP) -r ./src/* $(PKG_BUILD_DIR)/
|
||
|
ifeq ($(TARGET_BOARD_PLATFORM),astar)
|
||
|
$(CP) r16_tinaplayerdemo.sh $(PKG_BUILD_DIR)/tinaplayerdemo
|
||
|
$(info *****************platform = $(TARGET_BOARD_PLATFORM)**************)
|
||
|
endif
|
||
|
|
||
|
ifeq ($(TARGET_BOARD_PLATFORM),tulip)
|
||
|
$(CP) r18_tinaplayerdemo.sh $(PKG_BUILD_DIR)/tinaplayerdemo
|
||
|
$(info *****************platform = $(TARGET_BOARD_PLATFORM)**************)
|
||
|
endif
|
||
|
|
||
|
endef
|
||
|
|
||
|
define Build/Compile
|
||
|
|
||
|
$(MAKE) -C $(PKG_BUILD_DIR)/ \
|
||
|
ARCH="$(TARGET_ARCH)" \
|
||
|
AR="$(TARGET_AR)" \
|
||
|
CC="$(TARGET_CC)" \
|
||
|
CXX="$(TARGET_CXX)" \
|
||
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||
|
TARGET_BOARD="$(TARGET_BOARD_PLATFORM)"
|
||
|
endef
|
||
|
|
||
|
|
||
|
define Package/tinaplayerdemo/install
|
||
|
$(INSTALL_DIR) $(1)/usr/bin/
|
||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tinaplayerdemo $(1)/usr/bin/
|
||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/realtinaplayerdemo $(1)/usr/bin/
|
||
|
endef
|
||
|
|
||
|
ifeq ($(TARGET_BOARD_PLATFORM),$(filter $(TARGET_BOARD_PLATFORM),astar tulip))
|
||
|
$(eval $(call BuildPackage,tinaplayerdemo))
|
||
|
endif
|