1
0
forked from ports/contrib
contrib-tek/yajl/Pkgfile

22 lines
604 B
Plaintext
Raw Normal View History

2020-06-06 21:43:11 +00:00
# Description: Yet Another JSON Library
# URL: http://lloyd.github.com/yajl/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: cmake
name=yajl
version=2.1.0
release=1
source=(https://github.com/lloyd/$name/archive/$version/$name-$version.tar.gz)
build() {
2020-11-08 12:48:40 +00:00
[[ -e /usr/bin/ninja ]] && PKGMK_YAJL+=' -G Ninja'
cmake -S $name-$version -B build $PKGMK_YAJL \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
2020-12-07 00:08:51 +00:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2020-11-03 20:58:38 +00:00
-Wno-dev
2020-06-06 22:31:25 +00:00
cmake --build build
2020-07-08 13:01:36 +00:00
DESTDIR=$PKG cmake --install build
2020-06-06 21:43:11 +00:00
}