void-packages/srcpkgs/netpbm/template
Christian Neukirchen 1d4a864dcc netpbm: update to 10.70.06.
Move to Github mirror, apply patches manually.
2015-05-28 12:11:43 +02:00

70 lines
2.2 KiB
Bash

# Template file for 'netpbm'
pkgname=netpbm
# from http://svn.code.sf.net/p/netpbm/code/advanced/doc/HISTORY
version=10.70.06
revision=1
_githash=921c08b68f785180a918591ea0699de6275d202d
_githash_guide=dd67b8beae254b3a55e58124560a9233103bb45b
create_wrksrc=yes
build_wrksrc="netpbm-mirror-${_githash}"
hostmakedepends="pkg-config perl python flex"
makedepends="libjpeg-turbo-devel tiff-devel libpng-devel zlib-devel libxml2-devel libX11-devel"
short_desc="Toolkit for manipulation of graphic images"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD,GPL-2,custom"
homepage="http://netpbm.sourceforge.net/"
nocross=yes
distfiles="https://github.com/chneukirchen/netpbm-mirror/archive/${_githash}.tar.gz
https://github.com/chneukirchen/netpbm-mirror/archive/${_githash_guide}.tar.gz"
checksum="8d3a3b3795fe053ccd1d79ac85578a31a2bd09256608ff1076167d5b16419d9b
05f36a02a7ed34e02492dcefa37728b122e6d5a64877abb0f35877695de69a5c"
post_extract() {
cd $build_wrksrc
for p in ${FILESDIR}/*.patch; do
patch -Np1 -i $p
done
}
do_configure() {
cat config.mk.in ${FILESDIR}/config.mk >config.mk
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
echo "WANT_SSE = Y" >>config.mk
fi
sed -i 's|/link|/lib|' lib/Makefile
sed -i 's|install.manwebmain install.manweb install.man|install.man|' GNUmakefile
}
do_build() {
make CC=$CC CFLAGS="$CFLAGS" ${makejobs}
make MAKEMAN="${PWD}/buildtools/makeman" USERGUIDE=. \
-C ../netpbm-mirror-${_githash_guide} \
-f "${PWD}/buildtools/manpage.mk" manpages
}
do_install() {
make pkgdir=$DESTDIR/usr PKGMANDIR=share/man install-run install-dev
rm $DESTDIR/usr/share/man/man?/*
make MAKEMAN="${PWD}/buildtools/makeman" MANDIR="$DESTDIR/usr/share/man" \
-C ../netpbm-mirror-${_githash_guide} \
-f "${PWD}/buildtools/manpage.mk" installman
vlicense doc/copyright_summary LICENSE
}
libnetpbm_package() {
replaces="${sourcepkg}<10.66.03_2"
short_desc+=" - runtime libraries"
pkg_install() {
vmove usr/lib/*.so.*
}
}
libnetpbm-devel_package() {
replaces="${sourcepkg}<10.66.03_2"
depends="libnetpbm>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
}
}