allwinner-midware/app/libuvdbus/Makefile

69 lines
1.4 KiB
Makefile

include $(TINA_BUILD_TOP)/package/netease/Makefile.common
include $(TOPDIR)/rules.mk
PKG_NAME:=libuvdbus
PKG_RELEASE:=1
PKG_VERSION:=0.0.1
PKG_BUILD_DIR := $(COMPILE_DIR)/$(PKG_NAME)
include $(BUILD_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=utils
CATEGORY:=Netease
TITLE:=Libuv dubs
MAINTAINER:=Huang xin <hzhangxin01@corp.netease.com>
DEPENDS:=$(LIB_MAKE_COMMON_DEPEND)
endef
ifeq ('$(CONFIG_RES_FACTORY_MODE)', 'y')
TARGET_CFLAGS += -DRES_FACTORY_MODE
endif
define Package/$(PKG_NAME)/description
Libuv + dbus pack!
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) -d ./src/ $(PKG_BUILD_DIR)/
endef
define Package/$(PKG_NAME)/config
source "$(SOURCE)/Config.in"
endef
define Build/Configure
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/
$(INSTALL_DIR) $(1)/lib/
$(CP) \
$(PKG_BUILD_DIR)/src/include \
$(1)/usr/include/uvdbus
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libuvdbus.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/libuvdbus.so $(1)/lib/
endef
$(eval $(call BuildPackage,$(PKG_NAME)))