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.

52 lines
1.3 KiB

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