1
0
forked from ports/contrib

doxygen: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-11-08 10:58:20 +00:00
parent 365d3564dc
commit 32a48203ab
2 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF36ZwL7Xl/ryDNGoqa8gFa+5rw7nkpcQQstlnxtt17CJYj7tIug85O2c0zDoxcWifBbfm4IicZ2Uv8pZqtU1vpAU=
SHA256 (Pkgfile) = 43609c3349a68cec6aa19f329e347f5c39335ce5d8bff77c4875d61547099791
RWSagIOpLGJF31BR0Fyc3d0Abn1gNMBE5NQJ+QhHSCuad+cTNb+8J79X1sDczjLoGXR7P1jpwZWO3pE8jPmMkryJ7iTAICvBMgY=
SHA256 (Pkgfile) = 66f22138fe82cd8636c42135c5f38dd63c4bc4d8e4bee3668afa01dbb792fa69
SHA256 (.footprint) = 0e61555d2a09dde40592598439a5cff7abcb36a09463db1700c00e4a69bc8a31
SHA256 (doxygen-1.8.20.src.tar.gz) = e0db6979286fd7ccd3a99af9f97397f2bae50532e4ecb312aa18862f8401ddec

View File

@ -9,8 +9,13 @@ release=1
source=(https://doxygen.nl/files/$name-$version.src.tar.gz)
build() {
cmake -S$name-$version -Bbuild -G"Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=/usr
[[ -e /usr/bin/ninja ]] && PKGMK_DOXYGEN+=' -G Ninja'
cmake -S $name-$version -B build $PKGMK_DOXYGEN \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
install -D -m 0755 $SRC/$name-$version/doc/$name.1 $PKG/usr/share/man/man1/$name.1