pkgsrc/x11/xlockmore/Makefile

78 lines
2.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.49 2002/06/13 13:03:17 lukem Exp $
1997-11-03 01:53:23 +01:00
# FreeBSD Id: Makefile,v 1.23 1997/10/10 09:24:38 tg Exp
1997-11-03 01:50:26 +01:00
#
Update to 5.04. Move patch-ac to patch-ab. New since last BETA2: + pacman AI update with trackmouse thanks to Edwin de Jong <mauddib at gmx dot net> + C++ fixes, memcpy prefered over bcopy, random start. New since last BETA: * Changed delay on several GL modes. They were too fast on my GeForce4. * bounce drawing errors fixed on my nVidia fixed ant: fudged the truchet lines a bit more for squares and hexagons. molecule needs to be protected from pipes by a "glDrawBuffer(GL_BACK);" thanks to Jouk Jansen. molecule needs to be protected from pipes by a "glDrawBuffer(GL_BACK);" thanks to Jouk Jansen. Patch from Marcelo Vianna <mfvianna at centroin dot com dot br> to get his modes (cage,moebius,morph3d,rubik) working on NVidia under XFree (NVidia has a policy to not release code open source and the bug crashes the system requiring a hard reset). Since skewb is similar that was done as well by maintainer. configure changes for 2.53, added option for .ad installation dir, check for xlockrc and pam. flag debugged for xpm, do not set byte order for ZPixmap. Flag ripples now flow left to right and from bottom to top. Combined XLock-jp.ad into XLock.ad fontset to use regular (not bold/italic) font/fontset as default, fix for sound.c using DEF_PLAY, and a fix for customName thanks to Shingo Yamaguchi <shingo at kip dot iis dot toyama-u dot ac dot jp>. nice changes were causing problems, set_priority used instead thanks to Felicia Neff <fn at panix dot com>. (VMS still uses nice). noof mode added from GLUT demos thanks to Dave Riesz <driesz at cpl dot net>. USE_XPM changed to HAVE_XPM to be compatible with xscreensaver.
2002-05-17 00:19:54 +02:00
DISTNAME= xlockmore-5.04
1997-11-03 01:50:26 +01:00
CATEGORIES= x11
MASTER_SITES= ftp://ftp.tux.org/pub/tux/bagleyd/xlockmore/ \
${MASTER_SITE_XCONTRIB:=applications/}
Update xlockmore to 5.03. Changes: GL updates: lament (light and color are more realistic), gears (misc updates) and atlantis (first try) for a thanks to Eric Lassauge ported from xscreensaver (VMS patch for atlantis from Jouk Jansen). logout button Array out of bounds fix thanks to Tom Schmidt. ant,bug,coral,crystal,daisy,demon,decay,dragon,goop,loop,slip,sphere, tetris,turtle,voters,wator,wire,&xjack fix and squaretate fix for 1x1 screens, thanks to Tom Schmidt for helping out. juggle updated for xscreensaver... thanks to Tim Auckland <Tim.Auckland@Procket.com>. I made similar MODE_ changes throughout. loop update to make flaws closer to the initial loop, without this it could be quite slow pacman update/rewrite: level generator added, dots added thanks to Edwin de Jong <mauddib@gmx.net> 2 erase modes ported from xscreensaver, thanks to Jouk Jansen. Also added features to make these 2 modes more random. Fix to set back line width. standalone maze from Ephraim Yawitz fyawitz@actcom.co.il back into maze mode for interactive feature. RedHat fixes (VMS Intrinsic.h placement, rpm & configure updates) and update to text3d.cc (removed blank, cleanups, and wander animation) thanks to Eric Lassauge. sounds can now be randomized using directories thanks to Jouk Jansen. Also a fix for sel_image wildcard selection for VMS, thanks to Tom Schmidt for noticing it does not work on UNIX machines. swarm -size was inconsistent with other tails like worm and julia. It now uses -cycles thanks to Frank v Waveren <fvw@var.cx>. fire, lament, sballs fixes on SGI Marcus Herbert <rhoenie@spam-filter.de> xmlock update for options thanks to Charles Vidal. MI_IS_DRAWN fixes thanks to Jouk Jansen.
2002-01-26 15:38:17 +01:00
EXTRACT_SUFX= .tar.bz2
1997-11-03 01:50:26 +01:00
1998-03-02 17:02:12 +01:00
MAINTAINER= hubertf@netbsd.org
HOMEPAGE= http://www.tux.org/~bagleyd/xlockmore.html
COMMENT= Like the XLock session locker/screen saver, but with more
1997-11-03 01:50:26 +01:00
CHECK_MESA= YES
.include "../../mk/bsd.prefs.mk"
.if defined(XLOCK_LIGHT)
CONFIGURE_ARGS+=--without-gltt --without-ttf --without-opengl --without-mesa \
--without-xpm # --without-cxx XXX doesn't work
CONFIGURE_ENV+= CXX="${CC}" # no dependency on libstdc++
.else
USE_XPM= YES
USE_MESA= YES
CONFIGURE_ARGS+= --with-mesagl
.endif
.if !exists(${X11BASE}/lib/libXdpms.a)
XLOCK_NO_DPMS= YES
.endif
GNU_CONFIGURE= YES
USE_X11BASE= YES
#USE_GMAKE= yes
DEFINES= -DDEFAULT_SOUND_DIR='\"${PREFIX}/lib/X11/xlock/sounds/\"' \
-DDEF_MODULEPATH='\"lib/X11/xlock/modules\"'
CC+= ${DEFINES}
CXX+= ${DEFINES}
CONFIGURE_ARGS+= --without-motif --without-sx \
1997-11-03 01:50:26 +01:00
--without-editres --without-dtsaver --without-rplay \
--without-nas --without-gtk
.if ${OPSYS} == "NetBSD"
CONFIGURE_ARGS+= --enable-def_play='/usr/bin/audioplay ${PREFIX}/lib/X11/xlockmore/'
.endif
1997-11-03 01:50:26 +01:00
.if defined(XLOCK_NO_DPMS)
CONFIGURE_ARGS+= --without-dpms
.endif
post-patch:
for i in xlock/resource.c ; do \
f=${WRKSRC}/$$i ; \
Updatej to 4.17. Changes: + euler2d, new mode thanks to Stephen Montgomery-Smith + <stephen@math.missouri.edu> also some work was done by Tim Auckland + <Tim.Auckland@Procket.com>. See euler2d.tex for theory. & XSync(dsp, True) should not be used in modes as it is hard to log in & when input password characters are randomly dropped. - tetris, you can now play with -trackmouse, row clearing fixed, bonus - pieces. Added a new look to pieces but must be compiled in with - -DBM_PLAIN. - Purify Uninitialized Memory Read found in euler2d, life, and swarm and - a memory leak in juggle. SunOS fix for xcl and juggle and gameless - environment configuration (--disable-interactive) thanks to Tom Schmidt - <tschmidt@micron.com>. bounce, bat, pacman, and braid should look better for password sized windows xcl, new mode control-line combat model race, conversion from xscreensaver thanks to its author Martin Berentsen <berentsen@sent5.uni-duisburg.de>. multi-byte character support for languages like Japanese. Fixed for bomb.c, nose.c, dclock.c, xlock.c, resource.c, iostuff.c, xmlock.c, and xglock.c. Also added new xmlock/XmLock-jp.ad. Thanks to Yokota Hiroshi <yokota@netlab.is.tsukuba.ac.jp>. Maintainer (David Bagley) is a little confused about gettext and settext stuff. swarm improvements thanks to Juan Heguiabehere <juanh@wins.uva.nl>. Now do not fly at 45 degree angles most of the time and longer trails with -size. Noticed some drawing errors on some Sun displays with long trails, probably a Sun hardware problem. euler2d, new mode thanks to Stephen Montgomery-Smith <stephen@math.missouri.edu> also some work was done by Tim Auckland <Tim.Auckland@Procket.com>. See euler2d.tex for theory. added BLANK_ONLY #define if you only want the blank mode. VMS patch for sound thanks to Jouk Jansen <joukj@hrem.stm.tudelft.nl>. sco patch from Ronald Joe Record <rr@sco.com>. Did not take the patches straight so there could be some problems still, but tried to address the issues. (etc/play.sh, spline.cc sqr, t3d.c time inc, and sysv5 build issues). configure should now find Mesa as opengl. Worked before for me... but may work for others now too. Minor warnings removed various files. loop.c now loops can go clockwise too. The program decides which set of rules to use. (Is handedness a requirement for life? (DNA for example has right-handed helices.)) Added some debugging for building rules easier, hexagonal life more fleshed out so RAND_RULES will work until about generation 540. ESound updates by Eric Lassauge <lassauge@mail.dotcom.fr>. xcl, new mode control-line combat model race, conversion from xscreensaver thanks to its author Martin Berentsen <berentsen@sent5.uni-duisburg.de>. juggle.c: fix bug which caused crashes on some machines, less flashy arms, real-time, -pattern random (a true pattern generator), figure moved down and scaled, bouncing, more random, one ball juggling should not come up, and Sun CC 5.0 errors/warnings removed thanks to Tim Auckland <tda10@geocities.com>. HP problems identified for life.c and shape.c, no code changes since it seems to be a strange bug in the HP cc compiler when using both -O and -g flags (default). HP CC warnings removed in solitare.cc, xlock.c, resource.c, dclock.c, decay.c, goop.c, ico.c, juggle.c, starfish.c, t3d.c, tetris.c, erase*.*. Updated configure and README for compiling and linking through HP's cc. Still some open problems. Some arbitrary sized arrays removed in xlock.c, resource.c, and mode.c, do not believe them to be security problems. HP_PASSWDETC - due to possible security problems this will no longer compile by default, pointed out by Theo de Raadt <deraadt@cvs.openbsd.org>. Sun CC 5.0 warnings changes cover all modes with options. skewb mode added as an unstable GL mode. Its in development. Not much yet... I just have the corners drawn so far and no real movement yet. Its like a Rubik's Cube but with diagonal cuts that cut through the the center of the cube on a skewed angle. mult-byte character support for languages like Japanese. Fixed for bomb.c, nose.c, iostuff.c, xmlock.c, and xglock.c. Also added new xmlock/XmLock-jp.ad. Thanks to Yokota Hiroshi <yokota@netlab.is.tsukuba.ac.jp>. Buffer overrun security fix does not allow root access directly but the encrypted password file may be found in memory. This vulnerability was discovered by Brock Tellier with additional research by Anthony Osborne at the COVERT Labs of PGP Security, Inc. Now allocate memory instead of an arbitrary limit on mode name length. run mode added, its a hack but it sort of works. :) Also changed resource.c to make a special case for it. would be nice if password window worked too... Will probably crash and burn on multiscreens, random mode, etc. run like: xlock -mode run -geometrystring geometry -runprogram xclock xlock -mode run -geometrystring g -runprogram xlogo xlock -mode run -geometrystring none -runprogram xfishtank (May be having a little problem with the none option...) _NOT_ a good idea to recursively run xlock Not fond of the name of the mode or its option names... so if you have better names in mind ... tell me. Moved to unstable (due to VMS and -debug problems). ico.c most flashing removed. FullRandom added and now rotates more randomly, rotates in the proper direction (looking at it from the top, I guess its wrong if you think it should be on a glass table and the view is underneath...) and changes when it hits the end of the screen. and changes when it hits the end of the screen. Linewidth and points added as well. rubik.c update for stickers and cube roundness variables now set in macro, considering creating a new skewb mode (its a like a rubik's cube but with diagonal cuts). XFree86 4.0 fixes for DPMS and XCloseDisplay thanks to Jeremy Buhler <jbuhler@cs.washington.edu>. Call to XCloseDisplay was causing problems, removing it should not, right? More fixes for DPMS, this time for NetBSD. Thanks to <hubert.feyrer@rz.uni-regensburg.de> solitare.cc Solaris CC warnings removed and fixed shapes when in password window. xalock removed from distribution + Updated since BETA1 & New since BETA - Updated since BETA
2000-08-15 05:54:16 +02:00
[ -f $$f.BAK ] || ${MV} $$f $$f.BAK ; \
${SED} \
-e 's|@PREFIX@|${PREFIX}|g' \
<$$f.BAK >$$f ; \
done
.if defined(XLOCK_DEFAULT_MODE) && ${XLOCK_DEFAULT_MODE} != ""
cd ${WRKSRC}/xlock; \
[ -f XLock.ad.BAK ] || ${MV} XLock.ad XLock.ad.BAK ; \
${SED} \
-e 's/^\(XLock.mode:[ ]*\).*/\1${XLOCK_DEFAULT_MODE}/' \
XLock.ad.BAK >XLock.ad
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/xlockmore
${INSTALL_DATA} \
${WRKSRC}/sounds/thank-you.au \
${WRKSRC}/sounds/identify-please.au \
${WRKSRC}/sounds/not-programmed.au \
${WRKSRC}/sounds/complete.au \
${PREFIX}/lib/X11/xlockmore
.include "../../mk/bsd.pkg.mk"