aboutsummaryrefslogtreecommitdiffstats
path: root/testing/podofo/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-06-20 15:11:00 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-06-20 15:11:00 +0000
commit0d1939dee287f1ee4874737760dcaca6c27ea32c (patch)
tree940704121de4536556b6e43e6efc50f46df40287 /testing/podofo/APKBUILD
parentbddf3be000f10dded2305ae67c954e21f9afc6e7 (diff)
parent9c6e16bb228787c35137e4a5576a5085a9788a10 (diff)
downloadaports-0d1939dee287f1ee4874737760dcaca6c27ea32c.tar.bz2
aports-0d1939dee287f1ee4874737760dcaca6c27ea32c.tar.xz
Merge git://git.alpinelinux.org/fcolista/aports-fcolista
Diffstat (limited to 'testing/podofo/APKBUILD')
-rw-r--r--testing/podofo/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/podofo/APKBUILD b/testing/podofo/APKBUILD
new file mode 100644
index 0000000000..1b413ebf1a
--- /dev/null
+++ b/testing/podofo/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer:
+pkgname=podofo
+pkgver=0.9.1
+pkgrel=0
+pkgdesc="A C++ library to work with the PDF file format"
+url="http://podofo.sourceforge.net"
+arch="all"
+license="GPL"
+depends=
+depends_dev="tiff-dev libpng-dev fontconfig-dev cmake"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev"
+source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+_builddir="$srcdir"/$pkgname-$pkgver
+build() {
+ cd "$_builddir"
+ mkdir build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr .. \
+ -DPODOFO_BUILD_SHARED=1 \
+ -DPODOFO_HAVE_JPEG_LIB=1 \
+ -DPODOFO_HAVE_PNG_LIB=1 \
+ -DPODOFO_HAVE_TIFF_LIB=1
+ make || return 1
+}
+package() {
+ cd "$_builddir"/build
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="cec586ab69f92bc88d38b5d4b8eee5a0 podofo-0.9.1.tar.gz"