2019-06-11 23:45:45 +02:00
|
|
|
# Description: reimplementation of the SIL Graphite text processing engine.
|
|
|
|
# URL: https://github.com/silnrsi/graphite
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2020-04-01 14:09:36 +00:00
|
|
|
# Depends on: cmake freetype python3
|
2019-06-11 23:45:45 +02:00
|
|
|
# Optional: asciidoc dblatex doxygen graphviz
|
|
|
|
|
|
|
|
name=graphite2
|
2020-04-01 14:09:36 +00:00
|
|
|
version=1.3.14
|
2019-06-11 23:45:45 +02:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/silnrsi/graphite/releases/download/$version/$name-$version.tgz)
|
|
|
|
|
|
|
|
build() {
|
2020-11-03 18:26:50 +00:00
|
|
|
[[ -e /usr/bin/ninja ]] && PKGMK_GRAPHITE2_OPTIONS=' -GNinja'
|
|
|
|
cmake -S$name-$version -Bbuild $PKGMK_GRAPHITE2_OPTIONS \
|
2019-06-11 23:45:45 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE:STRING=Release \
|
2020-11-03 18:26:50 +00:00
|
|
|
-DCMAKE_C_FLAGS:STRING="$CFLAGS" \
|
|
|
|
-DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \
|
2019-06-11 23:45:45 +02:00
|
|
|
-DGRAPHITE2_COMPARE_RENDERER=OFF
|
|
|
|
|
|
|
|
find . -type f ! -name "rules" ! -name "changelog" -exec sed -i -e 's/\-03//g' {} \;
|
|
|
|
|
2020-11-03 18:26:50 +00:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-06-11 23:45:45 +02:00
|
|
|
}
|