1
0
forked from ports/contrib

56 lines
1.3 KiB
Plaintext
Raw Normal View History

2007-04-11 06:22:44 +10:00
# Description: A screen saver and locker daemon for xorg.
2020-07-12 18:48:11 +00:00
# URL: https://www.jwz.org/xscreensaver/
2014-11-10 23:28:07 +11:00
# Maintainer: Danny Rawlins, crux at romster dot me
2021-06-27 20:20:04 +00:00
# Depends on: bc fortune gdk-pixbuf-xlib giflib glu intltool libglade linux-pam xorg-libxmu xorg-libxi
2007-04-11 06:22:44 +10:00
name=xscreensaver
2021-10-14 15:21:15 +11:00
version=6.02
2007-04-11 06:22:44 +10:00
release=1
source=(https://www.jwz.org/$name/$name-$version.tar.gz
2019-02-03 00:49:45 -06:00
$name.pam)
2007-04-11 06:22:44 +10:00
2021-06-27 20:20:04 +00:00
unpack_source() {
for file in ${source[@]}; do
case ${file##*/} in
$name-$version.tar.gz)
tar xfvz $(get_filename $file) -C $SRC ;;
*)
cp $(get_filename $file) $SRC ;;
esac
done
}
2007-04-11 06:22:44 +10:00
build() {
2008-08-16 21:36:37 +10:00
cd $name-$version
2014-11-19 12:42:44 +11:00
2007-04-11 06:22:44 +10:00
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
2008-03-05 02:13:46 +11:00
--with-x-app-defaults='/etc/X11/app-defaults' \
2007-04-11 06:22:44 +10:00
--enable-locking \
2007-11-15 05:29:54 +11:00
--enable-root-passwd \
--disable-nls \
2007-11-15 05:29:54 +11:00
--with-dpms-ext \
--with-xinerama-ext \
--with-xshm-ext \
--with-proc-interrupts \
--with-shadow \
2007-07-19 11:51:54 +10:00
--with-pixbuf \
--with-jpeg \
2007-04-11 06:22:44 +10:00
--without-motif \
--without-gle \
--without-setuid-hacks
make
2007-11-15 05:29:54 +11:00
make install_prefix=$PKG install
chmod 755 $PKG/usr/bin/xscreensaver
install -d $PKG/usr/share/wallpapers
2019-02-03 00:49:45 -06:00
echo "NotShowIn=KDE;GNOME;" >> $PKG/usr/share/applications/xscreensaver-properties.desktop
2019-02-03 00:49:45 -06:00
# PAM service file
2020-12-27 19:18:16 +11:00
install -D -m 0644 $SRC/$name.pam $PKG/etc/pam.d/$name
2019-03-15 00:15:32 +11:00
rm -r $PKG/usr/share/{locale,xscreensaver/config/README}
2007-04-11 06:22:44 +10:00
}