39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Template file for 'xlockmore'
|
|
pkgname=xlockmore
|
|
version=5.74
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--with-xinerama $(vopt_if opengl '--with-opengl --with-mesa')"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="freetype-devel libXt-devel libXext-devel libXinerama-devel
|
|
$(vopt_if opengl 'MesaLib-devel glu-devel')"
|
|
short_desc="Provides the 'xlock' X screen locker"
|
|
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
|
license="MIT"
|
|
homepage="http://sillycycle.com/xlockmore.html"
|
|
changelog="http://sillycycle.com/xlock/xlockmore.README"
|
|
distfiles="http://sillycycle.com/xlock/xlockmore-${version}.tar.xz"
|
|
checksum=488adee067a8be431a586e0d47ef6d7dd86b31768b48f04ee492f2f111165184
|
|
CFLAGS="-D_DEFAULT_SOURCE"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
|
|
makedepends+=" libxcrypt-devel"
|
|
fi
|
|
|
|
build_options="opengl"
|
|
desc_option_opengl="Enable OpenGL modes"
|
|
|
|
pre_configure() {
|
|
export X_EXTRA_LIBS="$LDFLAGS"
|
|
}
|
|
|
|
do_install() {
|
|
make INSTPGMFLAGS= xapploaddir=${DESTDIR}/usr/share/X11/app-defaults \
|
|
bindir=${DESTDIR}/usr/bin mandir=${DESTDIR}/usr/share/man/man1 \
|
|
prefix=${DESTDIR}/usr install
|
|
chmod u+s ${DESTDIR}/usr/bin/xlock
|
|
|
|
sed -n 56,74p xlock/xlock.h > LICENSE
|
|
vlicense LICENSE
|
|
}
|