SmartAudio/package/minigui/F1C200s-board/Makefile

71 lines
1.5 KiB
Makefile
Raw Permalink Normal View History

2018-12-13 10:48:25 +00:00
#
# Copyright (C) 2007-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
2018-07-13 01:31:50 +00:00
include $(TOPDIR)/rules.mk
2018-12-13 10:48:25 +00:00
PKG_NAME:=F1C200s-board
2018-07-13 01:31:50 +00:00
PKG_VERSION:=1.0
PKG_RELEASE:=1
2018-12-13 10:48:25 +00:00
PKG_BUILD_DIR:=$(COMPILE_DIR)/$(PKG_NAME)
HAVE_SOURCE := yes
2018-07-13 01:31:50 +00:00
include $(BUILD_DIR)/package.mk
2018-12-13 10:48:25 +00:00
define Package/$(PKG_NAME)
2018-07-13 01:31:50 +00:00
SECTION:=gui
CATEGORY:=Minigui
2018-12-13 10:48:25 +00:00
DEPENDS:= +libminigui-gpl +tslib +libmgi +libmgplus +libuapi
2018-07-13 01:31:50 +00:00
TITLE:=F1C200s-board
2018-12-13 10:48:25 +00:00
MAINTAINER:=hyx<huangyixiu@allwinnertech.com>
endef
define Package/$(PKG_NAME)/description
The minigui application for F1C200s-board
2018-07-13 01:31:50 +00:00
endef
define Build/Prepare
2018-12-13 10:48:25 +00:00
mkdir -p $(PKG_BUILD_DIR)/
$(CP) -r ./src $(PKG_BUILD_DIR)/
2018-07-13 01:31:50 +00:00
endef
2018-12-13 10:48:25 +00:00
TARGET_LDFLAGS+=-lfreetype
2018-07-13 01:31:50 +00:00
define Build/Compile
2018-12-13 10:48:25 +00:00
$(MAKE) -C $(PKG_BUILD_DIR)/src \
MAKE="$(MAKE)" \
2018-07-13 01:31:50 +00:00
ARCH="$(TARGET_ARCH)" \
AR="$(TARGET_AR)" \
CC="$(TARGET_CC)" \
CXX="$(TARGET_CXX)" \
2018-12-13 10:48:25 +00:00
CFLAGS="$(TARGET_CFLAGS)"\
2018-07-13 01:31:50 +00:00
LDFLAGS="$(TARGET_LDFLAGS)" \
2018-12-13 10:48:25 +00:00
CONFIG_PREFIX="$(PKG_INSTALL_DIR)" \
2018-07-13 01:31:50 +00:00
all
endef
2018-12-13 10:48:25 +00:00
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_DIR) $(1)/usr/res
$(INSTALL_DIR) $(1)/usr/local/etc
$(INSTALL_DIR) $(1)/etc/init.d/
$(CP) \
$(PKG_BUILD_DIR)/src/F1C200s-board \
$(1)/usr/bin/
$(CP) \
$(PKG_BUILD_DIR)/src/res/* \
$(1)/usr/res/
$(CP) \
$(PKG_BUILD_DIR)/src/res/MiniGUI.cfg \
$(1)/usr/local/etc/
$(CP) \
$(PKG_BUILD_DIR)/src/pointercal \
$(1)/etc/
2018-07-13 01:31:50 +00:00
endef
2018-12-13 10:48:25 +00:00
$(eval $(call BuildPackage,$(PKG_NAME)))