2013-01-18 10:30:34 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.76 2013/01/18 15:30:34 ajacoutot Exp $
|
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 15:16:45 -04:00
|
|
|
|
2013-01-18 10:30:34 -05:00
|
|
|
COMMENT= screen saver and locker for the X Window System
|
2008-11-29 06:29:07 -05:00
|
|
|
|
2013-01-18 10:30:34 -05:00
|
|
|
DISTNAME= xscreensaver-5.20
|
2012-09-02 05:36:55 -04:00
|
|
|
|
2006-11-09 03:27:51 -05:00
|
|
|
CATEGORIES= x11
|
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 15:16:45 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.jwz.org/xscreensaver/
|
|
|
|
|
2003-10-08 13:13:14 -04:00
|
|
|
# BSD
|
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 15:16:45 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-06-03 01:38:32 -04:00
|
|
|
|
2013-01-18 10:30:34 -05:00
|
|
|
WANTLIB += GL GLU ICE SM X11 Xcomposite Xcursor Xdamage Xext Xfixes
|
|
|
|
WANTLIB += Xi Xinerama Xmu Xpm Xrandr Xrender Xt Xxf86misc Xxf86vm
|
|
|
|
WANTLIB += atk-1.0 c cairo expat fontconfig freetype gdk-x11-2.0
|
|
|
|
WANTLIB += gdk_pixbuf-2.0 gdk_pixbuf_xlib-2.0 gio-2.0 glade-2.0
|
|
|
|
WANTLIB += gle glib-2.0 gmodule-2.0 gobject-2.0 gtk-x11-2.0 jpeg
|
|
|
|
WANTLIB += m pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 png
|
|
|
|
WANTLIB += pthread pthread-stubs util xcb xcb-render xcb-shm xml2
|
|
|
|
WANTLIB += z
|
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 15:16:45 -04:00
|
|
|
|
2006-11-03 17:44:02 -05:00
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
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 15:16:45 -04:00
|
|
|
|
2008-03-17 14:59:39 -04:00
|
|
|
MODULES= devel/gettext \
|
|
|
|
textproc/intltool
|
2002-03-26 21:53:59 -05:00
|
|
|
|
2013-01-18 10:30:34 -05:00
|
|
|
RUN_DEPENDS= devel/desktop-file-utils
|
2008-11-29 06:29:07 -05:00
|
|
|
|
2013-01-18 10:30:34 -05:00
|
|
|
LIB_DEPENDS= devel/libglade2 \
|
2012-09-02 05:36:55 -04:00
|
|
|
graphics/gdk-pixbuf2 \
|
|
|
|
graphics/gle
|
2002-03-26 21:53:59 -05:00
|
|
|
|
2012-09-02 06:04:22 -04:00
|
|
|
# ${FILESDIR}/migrate-xscreensaver-config.sh needs xsltproc
|
|
|
|
BUILD_DEPENDS += textproc/libxslt
|
|
|
|
|
|
|
|
# see pre-configure
|
|
|
|
BUILD_DEPENDS += devel/xdg-utils
|
2013-01-18 10:30:34 -05:00
|
|
|
RUN_DEPENDS += devel/xdg-utils
|
2012-09-02 06:04:22 -04:00
|
|
|
|
2002-06-25 22:36:03 -04:00
|
|
|
USE_GMAKE= Yes
|
2012-09-02 05:36:55 -04:00
|
|
|
USE_GROFF= Yes
|
2002-08-26 22:46:17 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2005-06-03 01:38:32 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2012-09-02 05:36:55 -04:00
|
|
|
CONFIGURE_ARGS= --with-hackdir="${PREFIX}/libexec/xscreensaver" \
|
2013-01-18 10:30:34 -05:00
|
|
|
--with-x-app-defaults="${PREFIX}/lib/X11/app-defaults" \
|
|
|
|
--without-pam
|
2012-09-02 05:36:55 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2007-07-18 07:26:30 -04:00
|
|
|
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
2010-12-06 12:37:59 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -liconv -lintl"
|
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 15:16:45 -04:00
|
|
|
|
2013-01-18 10:30:34 -05:00
|
|
|
# Create desktop files from xscreensaver xml files for use by
|
|
|
|
# freedesktop compliant screensavers.
|
2008-10-27 15:49:39 -04:00
|
|
|
post-extract:
|
2008-11-29 06:29:07 -05:00
|
|
|
cp ${FILESDIR}/migrate-xscreensaver-config.sh ${WRKSRC}/hacks/config
|
|
|
|
cp ${FILESDIR}/xscreensaver-config.xsl ${WRKSRC}/hacks/config
|
2008-10-27 15:49:39 -04:00
|
|
|
|
2012-09-02 06:04:22 -04:00
|
|
|
pre-configure:
|
|
|
|
perl -pi -e 's,gnome-open,xdg-open,g' ${WRKSRC}/configure
|
|
|
|
|
2002-03-26 16:51:41 -05:00
|
|
|
post-install:
|
2008-11-29 06:29:07 -05:00
|
|
|
# remove conflict on games/circuit, misc/deco
|
|
|
|
for i in circuit deco ; do \
|
|
|
|
mv ${PREFIX}/man/man6/$${i}.6 ${PREFIX}/man/man6/x$${i}.6 ; \
|
|
|
|
mv ${PREFIX}/libexec/xscreensaver/$${i} \
|
|
|
|
${PREFIX}/libexec/xscreensaver/x$${i} && \
|
|
|
|
mv ${PREFIX}/share/xscreensaver/config/$${i}.xml \
|
|
|
|
${PREFIX}/share/xscreensaver/config/x$${i}.xml && \
|
|
|
|
mv ${WRKSRC}/hacks/config/$${i}.xml \
|
|
|
|
${WRKSRC}/hacks/config/x$${i}.xml ; done
|
|
|
|
cd ${WRKSRC}/hacks/config && \
|
|
|
|
for i in ${WRKSRC}/hacks/config/*.xml; do \
|
|
|
|
/bin/sh migrate-xscreensaver-config.sh $${i} ; done
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/screensavers/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/hacks/config/*.desktop \
|
|
|
|
${PREFIX}/share/applications/screensavers/
|
2002-03-26 16:51:41 -05:00
|
|
|
|
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 15:16:45 -04:00
|
|
|
.include <bsd.port.mk>
|