pkgsrc/devel/gflags/Makefile
adam d0aa56a8a0 gflags: updated to 2.2.2
gflags 2.2.2
This maintenance release improves life of Bazel users (no more
"config.h" leaking into global include paths), fixes build with recent MinGW
versions, and silences a number of static code analyzer and compiler warnings.
The build targets exported by the CMake configuration of this library are now
also prefixed by the package name "gflags::" following a more recent
(unwritten) CMake convention. The unprefixed target names are still supported
to avoid that dependent projects have to be modified due to this change in
imported target names.

gflags 2.2.1
Maintenance release with mainly Windows build fixes.
* Link to online documentation in README
* Include utils by file instead of CMAKE_MODULE_PATH search
* Remove unused program_name variable
* Enable language C for older CMake versions when needed
* Changed include directory in bazel build
* Mark single argument constructors in mutex.h as explicit
* Use inttypes.h on VC++ 2013 and later
* Fix statically linked gflags library with MSVC
* Modify installation paths on Windows for vcpkg
* Fix static initialization order fiasco caused by global registry lock
* Fix use of ARGC in CMake macros
* Static code analyzer error regarding strncmp with empty kRootDir
* Check HAVE_STDINT_H or HAVE_INTTYPES_H for older MSVC versions
2019-03-21 22:14:33 +00:00

29 lines
784 B
Makefile

# $NetBSD: Makefile,v 1.3 2019/03/21 22:14:33 adam Exp $
DISTNAME= gflags-2.2.2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=gflags/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= bacon4000@gmail.com
HOMEPAGE= https://github.com/gflags/gflags
COMMENT= Commandline flags module for C++
LICENSE= modified-bsd
USE_CMAKE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= bash:run
TEST_TARGET= test
REPLACE_BASH= src/gflags_completions.sh
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE:STRING=Release
CMAKE_ARGS+= -DBUILD_SHARED_LIBS:BOOL=ON
CMAKE_ARGS+= -DBUILD_STATIC_LIBS:BOOL=ON
CMAKE_ARGS+= -DBUILD_TESTING:BOOL=ON
CMAKE_ARGS+= -DGFLAGS_NAMESPACE:STRING=gflags
PTHREAD_OPTS+= require
PKGCONFIG_OVERRIDE= cmake/package.pc.in
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"