void-packages/srcpkgs/libX11/template
2016-10-05 06:51:54 +02:00

42 lines
1.1 KiB
Bash

# Template build file for 'libX11'.
pkgname=libX11
version=1.6.4
revision=1
build_style=gnu-configure
configure_args="--enable-ipv6 --enable-xlocaledir --without-xmlto
--disable-secure-rpc --disable-static --enable-malloc0returnsnull"
hostmakedepends="pkg-config"
makedepends="xproto xextproto xtrans xcmiscproto kbproto bigreqsproto
inputproto xf86bigfontproto libxcb-devel"
short_desc="Base X libraries from Xorg"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://xorg.freedesktop.org/"
license="MIT"
distfiles="${XORG_SITE}/lib/$pkgname-$version.tar.bz2"
checksum=b7c748be3aa16ec2cbd81edc847e9b6ee03f88143ab270fb59f58a044d34e441
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" libtool automake xorg-util-macros xproto xtrans"
pre_configure() {
autoreconf -fi
}
fi
do_configure() {
CFLAGS_FOR_BUILD="-fPIC" ./configure ${configure_args}
}
post_install() {
vlicense COPYING
}
libX11-devel_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/man
}
}