void-packages/srcpkgs/imlib2/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

44 lines
1.3 KiB
Bash

# Template build file for 'imlib2'.
pkgname=imlib2
version=1.4.6
revision=4
build_style=gnu-configure
configure_args="--disable-static --sysconfdir=/etc/imlib2 --enable-visibility-hiding"
hostmakedepends="libtool autoconf pkg-config"
makedepends="freetype-devel libjpeg-turbo-devel libpng-devel
tiff-devel libid3tag-devel giflib-devel libXext-devel libSM-devel"
short_desc="Image manipulation library"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="${SOURCEFORGE_SITE}/enlightenment/imlib2-$version.tar.gz"
homepage="http://sourceforge.net/projects/enlightenment/"
license="BSD"
checksum=17cc128c0e61974d59c423b59d0fb5cb85c97169adf5b05184cc58f7c87b4f4e
pre_configure() {
libtoolize -f
# prevent regenerating Makefile.in and aclocal.m4
touch aclocal.m4 Makefile.in
# make it build with giflib-5.1.0
# see http://wiki.linuxfromscratch.org/blfs/ticket/5076#comment:2
sed -i "/DGifCloseFile/s:gif:&, NULL:g" src/modules/loaders/loader_gif.c
sed -e 's,@my_libs@,@LIBS@,g' -i imlib2-config.in
}
imlib2-tools_package() {
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
}
}
imlib2-devel_package() {
depends="imlib2>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin/imlib2-config
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}