netpbm: create lib and devel subpkgs; use our CFLAGS; use hostmakedepends.
This commit is contained in:
parent
4e289bb078
commit
09cf6aa794
4 changed files with 29 additions and 4 deletions
|
@ -1663,3 +1663,4 @@ libxmlrpc_server_pstream++.so.7 xmlrpc-c-1.25.28_1
|
|||
libxmlrpc_client.so.3 xmlrpc-c-1.25.28_1
|
||||
libtelepathy-farstream.so.3 telepathy-farstream-0.6.0_6
|
||||
libtidy-0.99.so.0 tidy-1.46_2
|
||||
libnetpbm.so.11 libnetpbm-10.66.03_2
|
||||
|
|
1
srcpkgs/libnetpbm
Symbolic link
1
srcpkgs/libnetpbm
Symbolic link
|
@ -0,0 +1 @@
|
|||
netpbm
|
1
srcpkgs/libnetpbm-devel
Symbolic link
1
srcpkgs/libnetpbm-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
netpbm
|
|
@ -1,10 +1,10 @@
|
|||
# Template file for 'netpbm'
|
||||
pkgname=netpbm
|
||||
version=10.66.03
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc=advanced
|
||||
makedepends="pkg-config perl python flex libjpeg-turbo-devel tiff-devel libpng-devel zlib-devel libxml2-devel libX11-devel"
|
||||
depends=""
|
||||
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,LGPL,custom"
|
||||
|
@ -21,7 +21,7 @@ do_configure() {
|
|||
}
|
||||
|
||||
do_build() {
|
||||
make ${makejobs}
|
||||
make CC=$CC CFLAGS="$CFLAGS" ${makejobs}
|
||||
make MAKEMAN="${PWD}/buildtools/makeman" USERGUIDE=. \
|
||||
-C ../doc -f "${PWD}/buildtools/manpage.mk" manpages
|
||||
}
|
||||
|
@ -33,3 +33,25 @@ do_install() {
|
|||
-C ../doc -f "${PWD}/buildtools/manpage.mk" installman
|
||||
vinstall doc/copyright_summary 644 usr/share/licenses/$pkgname
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue