49 lines
1016 B
Makefile
49 lines
1016 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libduersdk
|
|
PKG_VERSION:=V0.7.36-allwinnertec_Speaker-D
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_BUILD_DIR:=$(COMPILE_DIR)/$(PKG_NAME)
|
|
|
|
include $(BUILD_DIR)/package.mk
|
|
|
|
define Package/$(PKG_NAME)
|
|
SECTION:=utils
|
|
CATEGORY:=Allwinner
|
|
TITLE:=DuerOS SDK
|
|
DEPENDS:=+libcurl +libopenssl +libcrypto +zlib +libiconv-full +libcharset \
|
|
+libpthread +libstdcpp +libm
|
|
endef
|
|
|
|
|
|
define Package/$(PKG_NAME)/description
|
|
DuerOS SDK
|
|
endef
|
|
|
|
define Build/Prepare
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
$(CP) -r ./src/* $(PKG_BUILD_DIR)/
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR)\
|
|
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
|
|
all
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
|
|
endef
|
|
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|