You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=glog
  3. PKG_VERSION:=0.4.0
  4. PKG_RELEASE:=4
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/google/glog/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=f28359aeba12f30d73d9e4711ef356dc842886968112162bc73002645139c39c
  8. PKG_MAINTAINER:=Amir Sabbaghi <asaba90@gmail.com>
  9. PKG_LICENSE:=BSD-3-Clause
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_FIXUP:=autoreconf
  12. PKG_BUILD_PARALLEL:=1
  13. CMAKE_INSTALL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. include $(INCLUDE_DIR)/cmake.mk
  16. define Package/glog
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=C++ implementation of the Google logging module
  20. DEPENDS:=+libstdcpp +libpthread +gflags
  21. URL:=https://github.com/google/glog
  22. endef
  23. define Package/glog/description
  24. This repository contains a C++ implementation of the Google logging
  25. module. Documentation for the implementation is in doc/.
  26. endef
  27. CMAKE_OPTIONS += \
  28. -DBUILD_SHARED_LIBS=ON \
  29. -DBUILD_TESTING=OFF \
  30. -DUNWIND_LIBRARY=OFF
  31. TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
  32. TARGET_CFLAGS += -Wl,--gc-sections
  33. define Package/glog/install
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libglog.so.* $(1)/usr/lib/
  36. endef
  37. $(eval $(call BuildPackage,glog))