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:=2
  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_LICENSE:=BSD-3-Clause
  9. PKG_LICENSE_FILES:=COPYING.txt
  10. include $(INCLUDE_DIR)/package.mk
  11. include $(INCLUDE_DIR)/host-build.mk
  12. include $(INCLUDE_DIR)/cmake.mk
  13. PKG_BUILD_PARALLEL:=1
  14. HOST_BUILD_PARALLEL:=1
  15. CMAKE_OPTIONS:= \
  16. -DGFLAGS_BUILD_SHARED_LIBS=ON \
  17. -DGFLAGS_BUILD_STATIC_LIBS=ON
  18. CMAKE_INSTALL:=1
  19. define Package/gflags
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=C++ library that implements commandline flags processing
  23. DEPENDS:=+libstdcpp +libpthread
  24. URL:=https://github.com/gflags/gflags
  25. MAINTAINER:=Amol Bhave <ambhave@fb.com>
  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. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libgflags.so* $(1)/usr/lib/
  35. endef
  36. $(eval $(call BuildPackage,gflags))
  37. $(eval $(call HostBuild))