From a61e3c02cb47bb0762e45109b9d18c7690b527cc Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 10 Aug 2011 15:34:30 +0200 Subject: [PATCH] New package: libwebp-0.1.2. --- srcpkgs/libwebp-devel | 1 + srcpkgs/libwebp/depends | 2 ++ srcpkgs/libwebp/libwebp-devel.template | 17 ++++++++++++ srcpkgs/libwebp/template | 33 ++++++++++++++++++++++++ xbps-src/common/mapping_shlib_binpkg.txt | 1 + 5 files changed, 54 insertions(+) create mode 120000 srcpkgs/libwebp-devel create mode 100644 srcpkgs/libwebp/depends create mode 100644 srcpkgs/libwebp/libwebp-devel.template create mode 100644 srcpkgs/libwebp/template diff --git a/srcpkgs/libwebp-devel b/srcpkgs/libwebp-devel new file mode 120000 index 00000000000..41871e71d6b --- /dev/null +++ b/srcpkgs/libwebp-devel @@ -0,0 +1 @@ +libwebp \ No newline at end of file diff --git a/srcpkgs/libwebp/depends b/srcpkgs/libwebp/depends new file mode 100644 index 00000000000..02d581ed9c7 --- /dev/null +++ b/srcpkgs/libwebp/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.1.2" +api_depends="${abi_depends}" diff --git a/srcpkgs/libwebp/libwebp-devel.template b/srcpkgs/libwebp/libwebp-devel.template new file mode 100644 index 00000000000..74cb69f8b30 --- /dev/null +++ b/srcpkgs/libwebp/libwebp-devel.template @@ -0,0 +1,17 @@ +# Template file for 'libwebp-devel'. +# +short_desc="${short_desc} - development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run jpeg-devel +Add_dependency run libpng-devel +Add_dependency run libwebp + +do_install() +{ + vmove usr/include usr + vmove "usr/lib/*.a" usr/lib + vmove usr/lib/pkgconfig usr/lib +} diff --git a/srcpkgs/libwebp/template b/srcpkgs/libwebp/template new file mode 100644 index 00000000000..b5506d51d68 --- /dev/null +++ b/srcpkgs/libwebp/template @@ -0,0 +1,33 @@ +# Template file for 'libwebp' +pkgname=libwebp +version=0.1.2 +distfiles="http://webp.googlecode.com/files/${pkgname}-${version}.tar.gz" +build_style=gnu_configure +short_desc="WebP image format" +maintainer="Juan RP " +homepage="http://code.google.com/speed/webp/" +license="BSD" +checksum=d5ff8df777010a5fb8dd5bac85eb30e98fe665e089ad9d3be2d01724a4c23eb5 +long_desc=" + WebP is a new image format that provides lossy compression for photographic + images. In a large scale study of 900,000 web images, WebP images were 39.8% + smaller than jpeg images of similar quality." + +subpackages="$pkgname-devel" +Add_dependency run glibc +Add_dependency run jpeg +Add_dependency run libpng + +Add_dependency build automake +Add_dependency build jpeg-devel +Add_dependency build libpng-devel + +pre_configure() +{ + ./autogen.sh +} + +post_install() +{ + vinstall COPYING 644 usr/share/licenses/${pkgname} +} diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index 4ffcd31de2d..678dbaa36d6 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -820,3 +820,4 @@ swig-callback-callback.so go go swig-file-file.so go go libblktapctl.so.1 xen xen-devel libmozjs185.so.1 js js-devel +libwebp.so libwebp libwebp-devel