75 lines
2.3 KiB
Bash
75 lines
2.3 KiB
Bash
# Template file for 'netpbm'
|
|
pkgname=netpbm
|
|
# from http://svn.code.sf.net/p/netpbm/code/advanced/doc/HISTORY
|
|
version=10.84.03
|
|
revision=1
|
|
_githash=79ff71515b3b4dc36ca5fd62fe0b8443a3f175f5
|
|
_githash_guide=d726a17a8d41b8f44f684a5e423f68b8f9c811c4
|
|
create_wrksrc=yes
|
|
build_wrksrc="netpbm-mirror-${_githash}"
|
|
hostmakedepends="pkg-config perl python flex"
|
|
makedepends="libX11-devel libjpeg-turbo-devel libpng-devel libxml2-devel
|
|
tiff-devel zlib-devel"
|
|
short_desc="Toolkit for manipulation of graphic images"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
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="cdc5ec4d607efd5946ad0e2f0c3b66beb06aaaf503ce9ce637c5ae0d2ecc2263
|
|
d1b0047f5babddb8b4391430c0111ea1ee381a2dab4210999f6600b4ea639f29"
|
|
|
|
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|misc|share/netpbm|' common.mk
|
|
sed -i 's|/link|/lib|' lib/Makefile
|
|
sed -i 's|install.manwebmain install.manweb install.man|install.man|' GNUmakefile
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs} CC=$CC CFLAGS="$CFLAGS" LDFLAGS_FOR_BUILD=
|
|
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
|
|
vmkdir usr/share/man/man1
|
|
vmkdir usr/share/man/man3
|
|
vmkdir usr/share/man/man5
|
|
make MAKEMAN="${PWD}/buildtools/makeman" MANDIR="$DESTDIR/usr/share/man" USERGUIDE=. \
|
|
-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
|
|
}
|
|
}
|