Makefile 683 B

1234567891011121314151617181920212223242526272829303132333435
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libgluonutil
  3. PKG_VERSION:=1
  4. CMAKE_INSTALL:=1
  5. PKG_LICENSE:=BSD-2-Clause
  6. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  7. include $(INCLUDE_DIR)/package.mk
  8. include $(INCLUDE_DIR)/cmake.mk
  9. define Package/libgluonutil
  10. SECTION:=libs
  11. CATEGORY:=Libraries
  12. TITLE:=Gluon utility library
  13. DEPENDS:=+libjson-c
  14. endef
  15. CMAKE_OPTIONS += \
  16. -DCMAKE_BUILD_TYPE:String="MINSIZEREL"
  17. define Build/Prepare
  18. mkdir -p $(PKG_BUILD_DIR)
  19. $(CP) ./src/* $(PKG_BUILD_DIR)/
  20. endef
  21. define Package/libgluonutil/install
  22. $(INSTALL_DIR) $(1)/usr/lib
  23. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libgluonutil.so $(1)/usr/lib/
  24. endef
  25. $(eval $(call BuildPackage,libgluonutil))