void-packages/srcpkgs/libX11/template
2013-07-30 09:36:25 +02:00

45 lines
1.2 KiB
Text

# Template build file for 'libX11'.
pkgname=libX11
version=1.6.1
revision=1
build_style=gnu-configure
configure_args="--enable-ipv6 --enable-xlocaledir --without-xmlto
--disable-secure-rpc --disable-static ac_cv_func_mmap_fixed_mapped=yes"
hostmakedepends="pkg-config"
makedepends="xproto>=7.0.23 xextproto xtrans xcmiscproto
kbproto bigreqsproto inputproto>=2.2 xf86bigfontproto libxcb-devel"
short_desc="Base X libraries from modular Xorg X11"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://xorg.freedesktop.org/"
license="MIT"
distfiles="${XORG_SITE}/lib/$pkgname-$version.tar.bz2"
checksum=10a54fc16b58b4f5a5eed4d080c357a82fd2f42d09af625c1f5df50650701892
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" libtool automake xorg-util-macros xproto xtrans"
pre_configure() {
sed -e 's|$(srcdir)/||g' -i nls/Makefile.am
autoreconf -fi
}
fi
post_install() {
vinstall COPYING 644 usr/share/licenses/${pkgname}
}
libX11-devel_package() {
depends="xproto kbproto libxcb-devel libX11>=$version"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/man
}
}
libX11_package() {
pkg_install() {
vmove usr
}
}