pv1Common/Makefile

57 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

2018-09-08 10:16:59 +00:00
include $(TINA_BUILD_TOP)/package/netease/Makefile.common
include $(TOPDIR)/rules.mk
PKG_NAME:=libpv1comm
PKG_RELEASE:=1
PKG_VERSION:=1.0.0
PKG_BUILD_DIR := $(COMPILE_DIR)/$(PKG_NAME)
include $(BUILD_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=utils
CATEGORY:=Netease
TITLE:=PV1 Common library
MAINTAINER:=Huang xin <hzhangxin01@corp.netease.com>
DEPENDS:=$(LIB_MAKE_COMMON_DEPEND)
endef
define Package/$(PKG_NAME)/description
2018-09-11 07:23:31 +00:00
pv1 common sdk
2018-09-08 10:16:59 +00:00
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) -d ./src/ $(PKG_BUILD_DIR)/
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/lib/
2018-09-11 07:23:31 +00:00
2018-09-08 10:16:59 +00:00
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpv1comm.so $(1)/lib/
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/src \
ARCH="$(TARGET_ARCH)" \
AR="$(TARGET_AR)" \
CC="$(TARGET_CC)" \
CXX="$(TARGET_CXX)" \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
TARGET_NAME=$(PKG_NAME) \
all
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/lib
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libpv1comm.so $(1)/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpv1comm.so $(TOPDIR)/package/allwinner/libpv1comm/lib
2018-09-08 10:16:59 +00:00
endef
$(eval $(call BuildPackage,$(PKG_NAME)))