diff --git a/srcpkgs/giflib/template b/srcpkgs/giflib/template index d11669ebaf4..81afc13fee3 100644 --- a/srcpkgs/giflib/template +++ b/srcpkgs/giflib/template @@ -1,15 +1,23 @@ # Template file for 'giflib' pkgname=giflib -version=5.1.4 +version=5.1.6 revision=1 -build_style=gnu-configure +build_style=gnu-makefile hostmakedepends="xmlto" short_desc="Library to handle, display and manipulate GIF images" maintainer="Juan RP " -homepage="http://sourceforge.net/projects/giflib/" license="MIT" +homepage="http://sourceforge.net/projects/giflib/" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" -checksum=34a7377ba834397db019e8eb122e551a49c98f49df75ec3fcc92b9a794a4f6d1 +checksum=53968f6d39bb4b99f57cc29887a09a3ca500e33b69fb259edaf4f6a622c8b578 + +CFLAGS="-fPIC" + +pre_build() { + vsed -e 's|$(OFLAGS)|$(OFLAGS) -Wl,-soname=libgif.so.7|' \ + -e 's|MANDIR = $(PREFIX)/share/man|MANDIR = $(PREFIX)/share/man/man1|' \ + -i Makefile +} post_install() { vlicense COPYING LICENSE @@ -20,10 +28,11 @@ giflib-devel_package() { short_desc+=" - development files" pkg_install() { vmove usr/include - vmove usr/lib/*.a - vmove usr/lib/*.so + vmove "usr/lib/*.so" + vmove "usr/lib/*.a" } } + giflib-tools_package() { short_desc+=" - utilities" pkg_install() {