ff0234fe6f
- Add a test target that does not cause "make test" to fail if the TEST option was not used - Remove ARGPARSE_BUILD_SAMPLES added by mistake and because there is no intention to install samples - Bump PORTREVISION Reported by: se
33 lines
659 B
Makefile
33 lines
659 B
Makefile
PORTNAME= argparse
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 2.9
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= eduardo@FreeBSD.org
|
|
COMMENT= Argument Parser for Modern C++
|
|
WWW= https://github.com/p-ranav/argparse
|
|
|
|
LICENSE= MIT
|
|
|
|
USES= cmake compiler:c++17-lang
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= p-ranav
|
|
|
|
NO_ARCH= yes
|
|
|
|
PLIST_FILES= include/argparse/argparse.hpp \
|
|
lib/cmake/argparse/argparseConfig-version.cmake \
|
|
lib/cmake/argparse/argparseConfig.cmake \
|
|
libdata/pkgconfig/argparse.pc
|
|
|
|
OPTIONS_DEFINE= TEST
|
|
TEST_CMAKE_BOOL= ARGPARSE_BUILD_TESTS
|
|
|
|
test:
|
|
@if [ -x ${WRKDIR}/.build/test/tests ]; then \
|
|
${WRKDIR}/.build/test/tests; \
|
|
fi
|
|
|
|
.include <bsd.port.mk>
|