source "package/elfutils/Config.in"
source "package/fftw/Config.in"
source "package/flann/Config.in"
+ source "package/gflags/Config.in"
source "package/glibmm/Config.in"
source "package/glm/Config.in"
source "package/gmp/Config.in"
--- /dev/null
+config BR2_PACKAGE_GFLAGS
+ bool "gflags"
+ depends on BR2_INSTALL_LIBSTDCPP
+ help
+ The gflags package contains a C++ library that implements
+ commandline flags processing. It includes built-in support for
+ standard types such as string and the ability to define flags
+ in the source file in which they are used.
+
+ https://github.com/gflags/gflags
+
+comment "gflags needs a toolchain w/ C++"
+ depends on !BR2_INSTALL_LIBSTDCPP
--- /dev/null
+# No hash for v2.1.2, comes from the github-helper:
+none xxx gflags-v2.1.2.tar.gz
--- /dev/null
+################################################################################
+#
+# gflags
+#
+################################################################################
+
+GFLAGS_VERSION = v2.1.2
+GFLAGS_SITE = $(call github,gflags,gflags,$(GFLAGS_VERSION))
+GFLAGS_INSTALL_STAGING = YES
+GFLAGS_LICENSE = BSD-3c
+GFLAGS_LICENSE_FILES = COPYING.txt
+
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
+GFLAGS_CONF_OPTS = -DBUILD_gflags_LIB=OFF
+endif
+
+$(eval $(cmake-package))