aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-16 12:06:40 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-16 12:17:22 +0000
commitf1d1c10cbd8ac098fb1cd4bc3d2e93306419868d (patch)
tree2ef71d3d2e808514e39588aec2d2e1b4c9cbdf1e /testing
parent1f99ba57e5946f21d43f2d235856af8a174ccc74 (diff)
downloadaports-f1d1c10cbd8ac098fb1cd4bc3d2e93306419868d.tar.bz2
aports-f1d1c10cbd8ac098fb1cd4bc3d2e93306419868d.tar.xz
testing/lcms2: new aport
Color Management Engine http://www.littlecms.com/
Diffstat (limited to 'testing')
-rw-r--r--testing/lcms2/APKBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/testing/lcms2/APKBUILD b/testing/lcms2/APKBUILD
new file mode 100644
index 0000000000..129606338e
--- /dev/null
+++ b/testing/lcms2/APKBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=lcms2
+pkgver=2.5
+pkgrel=0
+pkgdesc="Color Management Engine"
+url="http://www.littlecms.com/"
+arch="all"
+license="MIT"
+depends=""
+depends_dev="libjpeg-turbo-dev tiff-dev zlib-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
+source="http://www.littlecms.com/lcms2-$pkgver.tar.gz"
+
+_builddir="$srcdir"/lcms2-$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"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-static \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+utils() {
+ pkgdesc="Utility applications for lcms2"
+ mkdir -p "$subpkgdir"/usr/
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+md5sums="396d106600251441ff195fcaa277d10b lcms2-2.5.tar.gz"
+sha256sums="6727772b44470a2111dba53b9ce4c952b87e7d1b72a31c5ebdf44ba6eb0aa72b lcms2-2.5.tar.gz"
+sha512sums="c41daee7bb366eed940283d3760e5862d8d2bb6e465d1f712123449a2013431321155c8500dba4c4393a1e49fdef0bc2f5399e1573f0295cc0dac3fe88c60853 lcms2-2.5.tar.gz"