openbsd-ports/x11/xscreensaver/Makefile
lebel abe14b2928 The xscreensaver program waits until the keyboard and mouse have
been idle for a period, and then runs a graphics demo chosen at
random. It turns off as soon as there is any mouse or keyboard
activity. It can also lock the screen (immediately, after a longer
idle period, or on demand.) xscreensaver consists of two parts:
xscreensaver itself, the (the ``driver'' or ``daemon''), which
detects idleness and does locking; and the many graphics demos that
are launched by xscreensaver.
 
Any X program that can draw on the root window can be used with
xscreensaver, regardless of how that program is written, or what
language it is written in, or what libraries it uses. The xscreensaver
daemon takes care of detecting when the user is idle, locking, and
checking passwords and all the other book-keeping; all the other
programs need to do is draw.
 
The benefit that xscreensaver has over the combination of the xlock
and xautolock programs is the ease with which new graphics hacks
can be installed.  You don't need to recompile (or even re-run) the
xscreensaver program to add a new display mode, you just change a
config file.
 
WWW: http://www.jwz.org/xscreensaver/
2001-06-20 19:16:45 +00:00

51 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2001/06/20 19:16:45 lebel Exp $
COMMENT= "screen saver and locker for the X Window System"
VERSION= 3.33
DISTNAME= xscreensaver-${VERSION}
CATEGORIES= x11
NEED_VERSION= 1.402
HOMEPAGE= http://www.jwz.org/xscreensaver/
MAINTAINER= David Lebel <lebel@openbsd.org>
LIB_DEPENDS= gle.3::graphics/gle
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.jwz.org/xscreensaver/
USE_X11= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --enable-subdir="${PREFIX}/libexec/xscreensaver"
CONFIGURE_ARGS+= --with-gle
CONFIGURE_ARGS+= --with-gl
CONFIGURE_ARGS+= --with-xpm
CONFIGURE_ARGS+= --with-zippy=/usr/games/fortune
CONFIGURE_ARGS+= --without-kerberos
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -pthread"
FLAVORS= gtk motif
FLAVOR?= gtk
.if ${FLAVOR:L} == "gtk"
CONFIGURE_ARGS+= --with-gtk --without-motif
LIB_DEPENDS+= gtk.1.2::x11/gtk+
.elif ${FLAVOR:L} == "motif"
CONFIGURE_ENV+= MOTIFHOME=${X11BASE}
CONFIGURE_ARGS+= --with-motif --without-gtk
USE_MOTIF= any
.else
.BEGIN:
@echo "Please choose either the gtk or motif flavor"
@exit 1
.endif
.include <bsd.port.mk>