2014-07-01 21:19:20 +00:00
|
|
|
# Template file for 'netpbm'
|
|
|
|
pkgname=netpbm
|
|
|
|
version=10.66.03
|
2014-07-02 12:46:49 +00:00
|
|
|
revision=2
|
2014-07-01 21:19:20 +00:00
|
|
|
wrksrc=advanced
|
2014-07-02 12:46:49 +00:00
|
|
|
hostmakedepends="pkg-config perl python flex"
|
|
|
|
makedepends="libjpeg-turbo-devel tiff-devel libpng-devel zlib-devel libxml2-devel libX11-devel"
|
2014-07-01 21:19:20 +00:00
|
|
|
short_desc="Toolkit for manipulation of graphic images"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
|
|
license="BSD,GPL,LGPL,custom"
|
|
|
|
homepage="http://netpbm.sourceforge.net/"
|
|
|
|
distfiles="ftp://ftp.archlinux.org/other/packages/$pkgname/$pkgname-$version.tar.xz
|
|
|
|
ftp://ftp.archlinux.org/other/packages/$pkgname/$pkgname-doc-31Jan2014.tar.xz"
|
|
|
|
checksum="705551823155dcfebdb6b914447769a62eefd7157efd1dae925b36fb7cc647b1
|
|
|
|
74bcf840ee643c6917330c382484010cb99c004a3fcf05391bebcac63815acb3"
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
cat config.mk.in ${FILESDIR}/config.mk >config.mk
|
|
|
|
sed -i 's|/link|/lib|' lib/Makefile
|
|
|
|
sed -i 's|install.manwebmain install.manweb install.man|install.man|' GNUmakefile
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2014-07-02 12:46:49 +00:00
|
|
|
make CC=$CC CFLAGS="$CFLAGS" ${makejobs}
|
2014-07-01 21:19:20 +00:00
|
|
|
make MAKEMAN="${PWD}/buildtools/makeman" USERGUIDE=. \
|
|
|
|
-C ../doc -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 ../doc -f "${PWD}/buildtools/manpage.mk" installman
|
|
|
|
vinstall doc/copyright_summary 644 usr/share/licenses/$pkgname
|
|
|
|
}
|
2014-07-02 12:46:49 +00:00
|
|
|
|
|
|
|
do_clean() {
|
|
|
|
rm -rf ${XBPS_BUILDDIR}/doc
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|