2014-07-01 23:19:20 +02:00
|
|
|
# Template file for 'netpbm'
|
|
|
|
pkgname=netpbm
|
2014-09-12 00:21:01 +02:00
|
|
|
# from http://svn.code.sf.net/p/netpbm/code/advanced/doc/HISTORY
|
2014-10-11 23:20:47 +02:00
|
|
|
version=10.68.01
|
2014-09-12 00:21:01 +02:00
|
|
|
revision=1
|
|
|
|
patch_args="-Np1"
|
|
|
|
hostmakedepends="pkg-config perl python flex subversion"
|
2014-07-02 14:46:49 +02:00
|
|
|
makedepends="libjpeg-turbo-devel tiff-devel libpng-devel zlib-devel libxml2-devel libX11-devel"
|
2014-07-01 23:19:20 +02:00
|
|
|
short_desc="Toolkit for manipulation of graphic images"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
2014-10-11 23:20:47 +02:00
|
|
|
license="BSD,GPL-2,custom"
|
2014-07-01 23:19:20 +02:00
|
|
|
homepage="http://netpbm.sourceforge.net/"
|
2014-10-31 15:27:14 +01:00
|
|
|
update_site="http://svn.code.sf.net/p/netpbm/code/advanced/doc/HISTORY"
|
|
|
|
update_pattern='Release.\K[\d.]+'
|
2014-09-12 00:26:01 +02:00
|
|
|
nocross=yes
|
2014-09-12 00:21:01 +02:00
|
|
|
|
|
|
|
do_fetch() {
|
|
|
|
svn co http://svn.code.sf.net/p/netpbm/code/advanced ${wrksrc}
|
|
|
|
svn co http://svn.code.sf.net/p/netpbm/code/userguide ${wrksrc}/userguide
|
|
|
|
}
|
2014-07-01 23:19:20 +02:00
|
|
|
|
|
|
|
do_configure() {
|
2014-08-21 21:08:10 +02:00
|
|
|
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
|
2014-07-01 23:19:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2014-08-21 21:08:10 +02:00
|
|
|
make CC=$CC CFLAGS="$CFLAGS" ${makejobs}
|
|
|
|
make MAKEMAN="${PWD}/buildtools/makeman" USERGUIDE=. \
|
2014-09-12 00:21:01 +02:00
|
|
|
-C userguide -f "${PWD}/buildtools/manpage.mk" manpages
|
2014-07-01 23:19:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-08-21 21:08:10 +02:00
|
|
|
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" \
|
2014-09-12 00:21:01 +02:00
|
|
|
-C userguide -f "${PWD}/buildtools/manpage.mk" installman
|
|
|
|
vlicense doc/copyright_summary LICENSE
|
2014-07-02 14:46:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|