26 lines
824 B
Bash
26 lines
824 B
Bash
# Template file for 'range-v3'
|
|
pkgname=range-v3
|
|
version=0.9.1
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DRANGE_V3_EXAMPLES=OFF -DRANGES_BUILD_CALENDAR_EXAMPLE=OFF
|
|
-DRANGES_NATIVE=OFF"
|
|
short_desc="Experimental range library for C++11/14/17"
|
|
maintainer="John <johnz@posteo.net>"
|
|
license="BSL-1.0"
|
|
homepage="https://github.com/ericniebler/range-v3"
|
|
distfiles="https://github.com/ericniebler/range-v3/archive/${version}.tar.gz"
|
|
checksum=2b5b442d572b5978ea51c650adfaf0796f39f326404d09b83d846e04f571876b
|
|
|
|
if [ "$XBPS_CHECK_PKGS" ]; then
|
|
configure_args+=" -DRANGE_V3_HEADER_CHECKS=ON -DRANGE_V3_TESTS=ON
|
|
-DDRANGE_V3_PERF=ON"
|
|
else
|
|
configure_args+=" -DRANGE_V3_HEADER_CHECKS=OFF -DRANGE_V3_TESTS=OFF
|
|
-DDRANGE_V3_PERF=OFF"
|
|
fi
|
|
|
|
pre_configure() {
|
|
sed -i -e '/Werror/d' -e '/Wextra/d' -e '/Wall/d' cmake/ranges_flags.cmake
|
|
}
|