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.

60 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=glog
  3. PKG_VERSION:=0.4.0
  4. PKG_RELEASE:=3
  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_LICENSE:=BSD-3-Clause
  9. PKG_LICENSE_FILES:=COPYING
  10. PKG_FIXUP:=autoreconf
  11. PKG_BUILD_PARALLEL:=1
  12. PKG_INSTALL:=1
  13. PKG_BUILD_DEPENDS:=libgflags
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/glog
  16. SECTION:=libs
  17. CATEGORY:=Libraries
  18. TITLE:=C++ implementation of the Google logging module
  19. DEPENDS:= +libstdcpp +libpthread +gflags
  20. URL:=https://github.com/google/glog
  21. MAINTAINER:=Amir Sabbaghi <amir@pichak.co>
  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. CONFIGURE_VARS+=ac_cv_header_libunwind_h=0
  28. TARGET_CXXFLAGS+=-std=c++11
  29. TARGET_LDFLAGS+=-lpthread
  30. define Build/Configure
  31. $(call Build/Configure/Default,)
  32. endef
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include/glog
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/glog/*.h $(1)/usr/include/glog
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libglog.{a,so*} $(1)/usr/lib
  38. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libglog.pc $(1)/usr/lib/pkgconfig/
  40. endef
  41. define Package/glog/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libglog.so.* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,glog))