forked from ports/contrib
24 lines
690 B
Plaintext
24 lines
690 B
Plaintext
# Description: CommonMark parsing and rendering library and program in C
|
|
# URL: https://github.com/jgm/cmark
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: cmake python
|
|
|
|
name=cmark
|
|
version=0.29.0
|
|
release=1
|
|
source=(https://github.com/jgm/$name/archive/$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
[[ -e /usr/bin/ninja ]] && PKGMK_CMARK_OPTIONS=' -GNinja'
|
|
cmake -S$name-$version -Bbuild $PKGMK_CMARK_OPTIONS \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
|
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
}
|