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.

46 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gflags
  3. PKG_VERSION:=2.2.2
  4. PKG_RELEASE:=3
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/gflags/gflags/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf
  8. PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
  9. PKG_LICENSE:=BSD-3-Clause
  10. PKG_LICENSE_FILES:=COPYING.txt
  11. include $(INCLUDE_DIR)/package.mk
  12. include $(INCLUDE_DIR)/host-build.mk
  13. include $(INCLUDE_DIR)/cmake.mk
  14. PKG_BUILD_PARALLEL:=1
  15. HOST_BUILD_PARALLEL:=1
  16. CMAKE_OPTIONS:= \
  17. -DGFLAGS_BUILD_SHARED_LIBS=ON \
  18. -DGFLAGS_BUILD_STATIC_LIBS=ON
  19. CMAKE_INSTALL:=1
  20. define Package/gflags
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=C++ library that implements commandline flags processing
  24. DEPENDS:=+libstdcpp +libpthread
  25. URL:=https://github.com/gflags/gflags
  26. endef
  27. define Package/gflags/description
  28. The gflags package contains a C++ library that implements commandline flags
  29. processing. It includes built-in support for standard types such as string and
  30. the ability to define flags in the source file in which they are used.
  31. endef
  32. define Package/gflags/install
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgflags.so* $(1)/usr/lib/
  35. endef
  36. $(eval $(call BuildPackage,gflags))
  37. $(eval $(call HostBuild))