1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/devel/gflags/Makefile
Po-Chuan Hsieh 7844262674
devel/gflags: Convert to USES=cmake:testing
- Cosmetic change
2024-03-09 22:05:19 +08:00

34 lines
935 B
Makefile

PORTNAME= gflags
PORTVERSION= 2.2.2
DISTVERSIONPREFIX= v
PORTREVISION= 2
CATEGORIES= devel
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Commandline flags module for C++
WWW= https://github.com/gflags/gflags
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING.txt
USES= cmake:testing compiler:c++11-lang pathfix shebangfix
CMAKE_ARGS= -DGFLAGS_NAMESPACE:STRING=gflags
CMAKE_OFF= BUILD_TESTING REGISTER_INSTALL_PREFIX
CMAKE_ON= BUILD_SHARED_LIBS BUILD_STATIC_LIBS INSTALL_HEADERS INSTALL_SHARED_LIBS INSTALL_STATIC_LIBS
CMAKE_TESTING_ON= BUILD_TESTING
USE_CXXSTD= c++11
USE_LDCONFIG= yes
PLIST_SUB= PORTVERSION=${PORTVERSION}
USE_GITHUB= yes
SHEBANG_FILES= src/gflags_completions.sh
post-install:
${LN} -s libgflags.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libgflags.so.${PORTVERSION:R:R}
${LN} -s libgflags_nothreads.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libgflags_nothreads.so.${PORTVERSION:R:R}
.include <bsd.port.mk>