From d9d1f92543616e968455e07d766b86e8d75136e7 Mon Sep 17 00:00:00 2001 From: Will Jordan Date: Thu, 11 Feb 2016 21:27:10 -0800 Subject: [PATCH 1/3] add mozjpeg --- testing/mozjpeg/APKBUILD | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 testing/mozjpeg/APKBUILD diff --git a/testing/mozjpeg/APKBUILD b/testing/mozjpeg/APKBUILD new file mode 100644 index 000000000000..cb97c48f1a7c --- /dev/null +++ b/testing/mozjpeg/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Will Jordan +# Maintainer: Will Jordan +pkgname=mozjpeg +pkgver=3.1 +pkgrel=0 +pkgdesc="Mozilla JPEG Encoder Project" +url="https://github.com/mozilla/mozjpeg" +arch="all" +license="custom" +depends="libpng" +depends_dev="libpng-dev" +makedepends="$depends_dev libc-dev make nasm pkgconf libtool" +install="" +provides="libjpeg-turbo" +subpackages="$pkgname-dev $pkgname-doc" +source="https://github.com/mozilla/mozjpeg/releases/download/v$pkgver/mozjpeg-$pkgver-release-source.tar.gz" + +_builddir="$srcdir"/mozjpeg +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --disable-static \ + --enable-shared \ + --with-turbojpeg=yes \ + --with-jpeg8 \ + --prefix=/usr \ + --bindir=/usr/bin \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --datadir=/usr/share/mozjpeg \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/COPYING +} + +dev() { + default_dev + provides="libjpeg-turbo-dev" +} + +md5sums="53d8f3f633ea333057e6e4d09323d2b6 mozjpeg-3.1-release-source.tar.gz" +sha256sums="deedd88342c5da219f0047d9a290cd58eebe1b7a513564fcd8ebc49670077a1f mozjpeg-3.1-release-source.tar.gz" +sha512sums="2d6423a1776d1af3e5bea31b6e5e5ff50d9c333befa0a65bf8e502fb2216780136e3bf409e7b8cd52a13b7c2a04bb4496de84d377ab5c4ff7ea327c91d58a498 mozjpeg-3.1-release-source.tar.gz" From 6053dd89d0ecd63807464611c4227b7c7a0c6007 Mon Sep 17 00:00:00 2001 From: Will Jordan Date: Thu, 11 Feb 2016 21:28:07 -0800 Subject: [PATCH 2/3] add libvips --- testing/libvips/APKBUILD | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 testing/libvips/APKBUILD diff --git a/testing/libvips/APKBUILD b/testing/libvips/APKBUILD new file mode 100644 index 000000000000..bd1ff4dc75e7 --- /dev/null +++ b/testing/libvips/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Will Jordan +# Maintainer: Will Jordan +pkgname=libvips +pkgver=8.2.2 +pkgrel=1 +pkgdesc="A fast image processing library with low memory needs" +url="http://www.vips.ecs.soton.ac.uk/" +arch="all" +license="LGPL 2.1+" +depends="gettext libstdc++ glib libpng tiff libwebp libexif libxml2 orc fftw mozjpeg lcms2" +depends_dev="mozjpeg-dev libexif-dev lcms2-dev" +makedepends="$depends_dev glib-dev libxml2-dev orc-dev automake libtool libpng-dev tiff-dev libwebp-dev fftw-dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://www.vips.ecs.soton.ac.uk/supported/current/vips-$pkgver.tar.gz" + +_builddir="$srcdir"/vips-$pkgver +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --enable-debug=no \ + --without-python \ + --without-gsf \ + --disable-static \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --docdir=/usr/share/doc \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} +md5sums="4a191bb801c4f97bce414a862f2fa8dc vips-8.2.2.tar.gz" +sha256sums="0f688a34e99714ff0901cba8cdf93ec9878447e33dea122f4b226416550a6389 vips-8.2.2.tar.gz" +sha512sums="4a09a0f6042226a99eef964d2cc23a5092b81e6828e290b5d20e8a917022414c539f516d915c2bb17592a8ef99dec8b215fc52d3962d8c1f4ce44443ebbfea35 vips-8.2.2.tar.gz" From 1a9ddd2748348b84099d01f17855db7c462b626e Mon Sep 17 00:00:00 2001 From: Will Jordan Date: Fri, 19 Feb 2016 19:01:50 +0000 Subject: [PATCH 3/3] remove unneeded deps from mozjpeg --- testing/mozjpeg/APKBUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/mozjpeg/APKBUILD b/testing/mozjpeg/APKBUILD index cb97c48f1a7c..5e359cd3257c 100644 --- a/testing/mozjpeg/APKBUILD +++ b/testing/mozjpeg/APKBUILD @@ -7,9 +7,9 @@ pkgdesc="Mozilla JPEG Encoder Project" url="https://github.com/mozilla/mozjpeg" arch="all" license="custom" -depends="libpng" -depends_dev="libpng-dev" -makedepends="$depends_dev libc-dev make nasm pkgconf libtool" +depends="" +depends_dev="" +makedepends="$depends_dev nasm libtool" install="" provides="libjpeg-turbo" subpackages="$pkgname-dev $pkgname-doc"