33 lines
963 B
Bash
33 lines
963 B
Bash
# Template build file for 'sessreg'.
|
|
pkgname=sessreg
|
|
version=1.1.0
|
|
revision=4
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libX11-devel"
|
|
short_desc="Manage utmp/wtmp entries for xdm"
|
|
homepage="http://xorg.freedesktop.org"
|
|
license="MIT"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
distfiles="${XORG_SITE}/app/$pkgname-$version.tar.bz2"
|
|
checksum=551177657835e0902b5eee7b19713035beaa1581bbd3c6506baa553e751e017c
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
# musl does not define _WTMPX_FILE, use WTMP_FILE instead.
|
|
CFLAGS="-D_WTMPX_FILE=WTMP_FILE -D_PATH_WTMPX=_PATH_WTMP"
|
|
# musl does not define _UTMPX_FILE, use UTMP_FILE instead.
|
|
CFLAGS+=" -D_UTMPX_FILE=UTMP_FILE -D_PATH_UTMPX=_PATH_UTMP"
|
|
;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
local _gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }')
|
|
if [ "${_gccver%%.*}" -gt 5 ]; then
|
|
sed -e 's/\$(CPP) \$(DEFS)/$(CPP) -P $(DEFS)/' -i man/Makefile.in
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|