aboutsummaryrefslogtreecommitdiffstats
path: root/main/graphite2
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-02 11:38:53 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-03-02 13:38:32 -0300
commit93ea4ee44090bc69e6fcb644b2005f5b743c67cf (patch)
treeac906690ea05b79f87226e9789cb58b20766168d /main/graphite2
parenta6ff02d674ff3a33a632ca6d3901f851e0727707 (diff)
downloadaports-93ea4ee44090bc69e6fcb644b2005f5b743c67cf.tar.bz2
aports-93ea4ee44090bc69e6fcb644b2005f5b743c67cf.tar.xz
main/graphite2: modernize
Diffstat (limited to 'main/graphite2')
-rw-r--r--main/graphite2/APKBUILD16
1 files changed, 6 insertions, 10 deletions
diff --git a/main/graphite2/APKBUILD b/main/graphite2/APKBUILD
index 68b4e67069..ee861414f2 100644
--- a/main/graphite2/APKBUILD
+++ b/main/graphite2/APKBUILD
@@ -3,7 +3,7 @@
pkgname=graphite2
_realname=${pkgname/2/}
pkgver=1.3.13
-pkgrel=1
+pkgrel=2
pkgdesc="reimplementation of the SIL Graphite text processing engine"
url="http://graphite.sil.org/"
arch="all"
@@ -19,33 +19,29 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/silnrsi/$_realname/archive/$
builddir="$srcdir"/$_realname-$pkgver
build() {
- cd "$builddir"
-
# static and shared version needs to be build in separated dirs
# See https://github.com/silnrsi/graphite/pull/12#issuecomment-311756732
# shared
mkdir build && cd build
cmake -G "Unix Makefiles" .. \
- -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
+ -DCMAKE_C_FLAGS:STRING="$CFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE:STRING=Release \
+ -DCMAKE_BUILD_TYPE:STRING=None \
-DGRAPHITE2_COMPARE_RENDERER=OFF \
- -DGRAPHITE2_NFILEFACE=ON \
-
+ -DGRAPHITE2_NFILEFACE=ON
make
# static
cd ..
mkdir build-static && cd build-static
cmake -G "Unix Makefiles" .. \
- -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
+ -DCMAKE_C_FLAGS:STRING="$CFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE:STRING=Release \
+ -DCMAKE_BUILD_TYPE:STRING=None \
-DGRAPHITE2_COMPARE_RENDERER=OFF \
-DGRAPHITE2_NFILEFACE=ON \
-DBUILD_SHARED_LIBS=OFF
-
make
}