From a50099e263235093eddea729744ec5c1036fea32 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 15 Oct 2011 11:47:16 +0200 Subject: [PATCH] New package: libjpeg-turbo-1.1.1. --- srcpkgs/libjpeg-turbo-devel | 1 + srcpkgs/libjpeg-turbo-tools | 1 + srcpkgs/libjpeg-turbo/depends | 2 ++ .../libjpeg-turbo-devel.template | 19 +++++++++++ .../libjpeg-turbo-tools.template | 18 ++++++++++ srcpkgs/libjpeg-turbo/template | 34 +++++++++++++++++++ xbps-src/common/mapping_shlib_binpkg.txt | 1 + 7 files changed, 76 insertions(+) create mode 120000 srcpkgs/libjpeg-turbo-devel create mode 120000 srcpkgs/libjpeg-turbo-tools create mode 100644 srcpkgs/libjpeg-turbo/depends create mode 100644 srcpkgs/libjpeg-turbo/libjpeg-turbo-devel.template create mode 100644 srcpkgs/libjpeg-turbo/libjpeg-turbo-tools.template create mode 100644 srcpkgs/libjpeg-turbo/template diff --git a/srcpkgs/libjpeg-turbo-devel b/srcpkgs/libjpeg-turbo-devel new file mode 120000 index 00000000000..e47e39317ba --- /dev/null +++ b/srcpkgs/libjpeg-turbo-devel @@ -0,0 +1 @@ +libjpeg-turbo \ No newline at end of file diff --git a/srcpkgs/libjpeg-turbo-tools b/srcpkgs/libjpeg-turbo-tools new file mode 120000 index 00000000000..e47e39317ba --- /dev/null +++ b/srcpkgs/libjpeg-turbo-tools @@ -0,0 +1 @@ +libjpeg-turbo \ No newline at end of file diff --git a/srcpkgs/libjpeg-turbo/depends b/srcpkgs/libjpeg-turbo/depends new file mode 100644 index 00000000000..328eed9225b --- /dev/null +++ b/srcpkgs/libjpeg-turbo/depends @@ -0,0 +1,2 @@ +abi_depends=">=1.1.1" +api_depends="${abi_depends}" diff --git a/srcpkgs/libjpeg-turbo/libjpeg-turbo-devel.template b/srcpkgs/libjpeg-turbo/libjpeg-turbo-devel.template new file mode 100644 index 00000000000..a0618ec5822 --- /dev/null +++ b/srcpkgs/libjpeg-turbo/libjpeg-turbo-devel.template @@ -0,0 +1,19 @@ +# Template file for 'libjpeg-turbo-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glibc-devel +Add_dependency run libjpeg-turbo + +provides="jpeg-devel-8" +replaces="jpeg-devel>=0" + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/libjpeg-turbo/libjpeg-turbo-tools.template b/srcpkgs/libjpeg-turbo/libjpeg-turbo-tools.template new file mode 100644 index 00000000000..736089124dc --- /dev/null +++ b/srcpkgs/libjpeg-turbo/libjpeg-turbo-tools.template @@ -0,0 +1,18 @@ +# Template file for 'libjpeg-turbo-tools'. +# +short_desc="${sourcepkg} - bundled tools" +long_desc="${long_desc} + + This package contains tools to manipulate JPG files." + +Add_dependency run glibc +Add_dependency run libjpeg-turbo ">=${version}" + +provides="jpeg-tools-8" +replaces="jpeg-tools>=0" + +do_install() +{ + mkdir -p ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/{bin,share} ${DESTDIR}/usr +} diff --git a/srcpkgs/libjpeg-turbo/template b/srcpkgs/libjpeg-turbo/template new file mode 100644 index 00000000000..7a2f8744ef4 --- /dev/null +++ b/srcpkgs/libjpeg-turbo/template @@ -0,0 +1,34 @@ +# Template build file for 'libjpeg-turbo'. +pkgname=libjpeg-turbo +version=1.1.1 +homepage="http://libjpeg-turbo.virtualgl.org/" +distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" +build_style=gnu_configure +configure_args="--with-jpeg8" +short_desc="Derivative of libjpeg which uses SIMD instructions" +maintainer="Juan RP " +license="LGPL-2.1, ${pkgname}" +checksum=553b1f5a968fb9efc089623ed99be2aa6bc21586be92eb04848489c91a63f1e2 +long_desc=" + $pkgname is a derivative of libjpeg which uses SIMD instructions + MMX, SSE2, etc. to accelerate baseline JPEG compression and decompression + on x86, x86-64, and other supported systems. On such systems, $pkgname is + generally 2-4x as fast as the unmodified version of libjpeg, all else being + equal." + +provides="jpeg-8" +replaces="jpeg>=0" +subpackages="${pkgname}-devel ${pkgname}-tools" + +Add_dependency run glibc +Add_dependency build nasm + +post_install() { + vinstall jpegint.h 644 usr/include + vinstall LICENSE.txt 644 usr/share/licenses/${pkgname} + + rm -f ${DESTDIR}/usr/bin/jpegut + rm -f ${DESTDIR}/usr/bin/jpgtest + rm -f ${DESTDIR}/usr/lib/libturbojpeg* + rm -f ${DESTDIR}/usr/include/turbojpeg.h +} diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index 0b6febdc618..3589ed2bd96 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -94,6 +94,7 @@ libX11-xcb.so.1 libX11 libX11-devel libX11.so.6 libX11 libX11-devel libexpat.so.1 expat expat-devel libjpeg.so.8 jpeg jpeg-devel +libjpeg.so.8 libturbojpeg libturbojpeg-devel libpng14.so.14 libpng libpng-devel libXrender.so.1 libXrender libXrender-devel libXrandr.so.2 libXrandr libXrandr-devel