allwinner-midware/lib/libduilite/Makefile

71 lines
1.6 KiB
Makefile

include $(TOPDIR)/rules.mk
# Name and release number of this package
PKG_NAME:=libduilite
PKG_VERSION:=1.1.2
PKG_BUILD_DIR:=$(COMPILE_DIR)/$(PKG_NAME)
include $(BUILD_DIR)/package.mk
define Package/$(PKG_NAME)/config
source "$(SOURCE)/Config.in"
endef
$(info 6mic=$(CONFIG_DUILITE_6MIC))
$(info 4mic=$(CONFIG_DUILITE_4MIC))
$(info 2mic=$(CONFIG_DUILITE_2MIC))
define Package/$(PKG_NAME)
CATEGORY:=Netease
SUBMENU:=libs
SECTION:=libs
TITLE:=Duilife voice library
DEPENDS:=+libstdcpp
ifeq ('$(CONFIG_DUILITE_6MIC)', 'y')
DUILITE_DOCUMENT:=6mic
endif
ifeq ('$(CONFIG_DUILITE_4MIC)', 'y')
DUILITE_DOCUMENT:=4mic
endif
ifeq ('$(CONFIG_DUILITE_2MIC)', 'y')
DUILITE_DOCUMENT:=2mic
endif
endef
define Package/$(PKG_NAME)/description
Duilife voice dynamic library by speech added by wzj!
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) -d ./$(DUILITE_DOCUMENT)/lib/* $(PKG_BUILD_DIR)/
endef
define Build/Configure
endef
define Build/Compile
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/include/msc
$(INSTALL_DATA) ./$(DUILITE_DOCUMENT)/lib/*.so $(1)/usr/lib/
$(INSTALL_DATA) ./$(DUILITE_DOCUMENT)/lib/*.h $(1)/usr/include/
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DATA) ./${DUILITE_DOCUMENT}/lib/*.so $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/share/netease/duilite
$(CP) -d ./${DUILITE_DOCUMENT}/res/* $(1)/usr/share/netease/duilite/
# $(INSTALL_DATA) ./res/common.jet $(1)/usr/share/netease/
endef
$(eval $(call BuildPackage,$(PKG_NAME)))