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.

58 lines
1.5 KiB

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