# $Id$ PNAME="xscreensaver" PVER="5.10" PBUILD="r1" PCATEGORIE="x11-misc" STATE="unstable" DESCRIPTION="a screen saver and locker for the x-window-system." HOMEPAGE="http://www.jwz.org/xscreensaver/" DEPEND=">= x11-libs/libXxf86misc-1 >= x11-apps/xwininfo-1 >= x11-libs/libXinerama-1 >= media-libs/netpbm-10 >= media-libs/libjpeg-7 >= sys-libs/zlib-1.2 >= dev-libs/libxml2-2.7 >= x11-libs/gtk2+-2.18 >= dev-libs/glib2-2.22 >= sys-libs/pam-1.1 >= virtual/opengl >= media-libs/gle-3.1.0" SDEPEND=">= x11-proto/xf86vidmodeproto-2.2 >= x11-proto/xextproto-7 >= x11-proto/scrnsaverproto-1 >= x11-proto/recordproto-1 >= x11-proto/xf86miscproto-0.9 >= x11-proto/xineramaproto-1 >= sys-dev/bc-1.06 >= dev-lang/perl-5.10 >= dev-util/pkgconfig-0.23 >= sys-dev/gettext-0.17" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools SRC_URI=( http://www.jwz.org/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/xscreensaver.pam mirror://${PNAME}/${PNAME}-4.24-app-defaults.patch mirror://${PNAME}/${PNAME}-${PVER}-no-intltool.patch mirror://${PNAME}/${PNAME}-${PVER}-randr12.patch mirror://${PNAME}/${PNAME}-${PVER}-glforrestfire.patch mirror://${PNAME}/${PNAME}-${PVER}-phosphor-segv.patch ) UP2DATE="updatecmd ${HOMEPAGE}/download.html | lasttarball gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix app defaults for X11R7 mpatch ${PNAME}-4.24-app-defaults.patch || die # recreate all po files # fix error: po/Makefile.in.in was not created by intltoolize mpatch ${PNAME}-${PVER}-no-intltool.patch || die # add randr-1.2 support mpatch ${PNAME}-${PVER}-randr12.patch || die # fix compilation of glforrestfire with -lopengl mpatch ${PNAME}-${PVER}-glforrestfire.patch || die # fix segfaults in phosphor mpatch ${PNAME}-${PVER}-phosphor-segv.patch || die # rebuild configure autoreconf || die } src_compile() { cd ${SRCDIR} # force app-defaults dir location ac_cv_x_app_defaults=/usr/$(mlibdir)/X11/app-defaults \ mconfigure \ --libexecdir=/usr/$(mlibdir) \ --enable-hackdir=/usr/$(mlibdir)/xscreensaver \ --x-libraries=/usr/$(mlibdir) \ --x-includes=/usr/include \ --with-mit-ext \ --with-dpms-ext \ --with-xf86vmode-ext \ --with-xf86gamma-ext \ --with-randr-ext \ --with-proc-interrupts \ --with-xpm \ --with-xshm-ext \ --with-xdbe-ext \ --enable-locking \ --with-fortune=/usr/bin/fortune \ --without-motif \ --with-gtk \ --with-randr-ext \ --with-xml \ --with-xinerama-ext \ --with-pam \ --without-kerberos \ --with-gl \ --with-gle \ --with-jpeg \ --enable-nls \ || die mmake || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /usr/$(mlibdir)/xscreensaver || die minstalldir /usr/share/gnome/capplets || die minstalldir /usr/share/pixmaps || die mmake install_prefix=${BINDIR} install || die # pam stuff minstallpam xscreensaver.pam xscreensaver || die minstalldocs README || die }