aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-02-12 09:56:43 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2015-02-12 09:56:43 +0000
commit706b039d4a4146946f6269d93cbdde17ac2353a3 (patch)
treea0f6df1af9770e7ae0735db0b9c1afd9d7da20eb /testing
parentf4993a2f03c8f930a18a58c6c34a5782adeee125 (diff)
downloadaports-706b039d4a4146946f6269d93cbdde17ac2353a3.tar.bz2
aports-706b039d4a4146946f6269d93cbdde17ac2353a3.tar.xz
testing/graphite2: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/graphite2/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/graphite2/APKBUILD b/testing/graphite2/APKBUILD
new file mode 100644
index 0000000000..ace7953a8e
--- /dev/null
+++ b/testing/graphite2/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=graphite2
+pkgver=1.2.4
+pkgrel=0
+pkgdesc="reimplementation of the SIL Graphite text processing engine"
+url="http://projects.palaso.org/projects/graphitedev/"
+arch="all"
+license="LGPL"
+depends=""
+depends_dev="freetype-dev"
+makedepends="$depends_dev python cmake"
+install=""
+subpackages="$pkgname-dev"
+source="http://downloads.sourceforge.net/project/silgraphite/graphite2/graphite2-$pkgver.tgz"
+
+_builddir="$srcdir"/graphite2-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ mkdir build && cd build
+ cmake -G "Unix Makefiles" .. \
+ -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE:STRING=Release \
+ -DGRAPHITE2_COMPARE_RENDERER=OFF || return 1
+ # fix unwanted -O3 cflag (taken form Debian)
+ find . -type f ! -name "rules" ! -name "changelog" -exec sed -i -e 's/\-O3//g' {} \;
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"/build
+ make DESTDIR="$pkgdir/" install
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="2ef839348fe28e3b923bf8cced440227 graphite2-1.2.4.tgz"
+sha256sums="4bc3d5168029bcc0aa00eb2c973269d29407be2796ff56f9c80e10736bd8b003 graphite2-1.2.4.tgz"
+sha512sums="fb4a7bfd5656233975ce339e4e155ccb4fd401b87e30440edab98739355596e41abf5dccf6487d53f6353840a7c87b8270ee33e79c6630cf13a25ac2cb2114de graphite2-1.2.4.tgz"