43 lines
974 B
Bash
43 lines
974 B
Bash
# Template file for 'giflib'
|
|
pkgname=giflib
|
|
version=5.1.6
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
hostmakedepends="xmlto"
|
|
short_desc="Library to handle, display and manipulate GIF images"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://sourceforge.net/projects/giflib/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
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
|
|
}
|
|
|
|
giflib-devel_package() {
|
|
depends="giflib-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|
|
|
|
giflib-tools_package() {
|
|
short_desc+=" - utilities"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share/man
|
|
}
|
|
}
|