pkgsrc/x11/xlockmore/Makefile.common
tron 825becfdf0 Update "xlockmore" package to version 5.28. Changes since 5.27:
- invert: build failures from Sun Studio Express C++ like this:
    Error, manymatchover: Overloading ambiguity between "operator^(const
    TwoJet, double)" and "built-in operator^(int, int)" fixed by casting
    to double, thanks to Tim Mooney <Tim.Mooney AT ndsu.edu>.
- life3d:
    4 more rhombic dodecahedron S3/B3 patterns including a period 4 pattern
      (only S3/B3 period 2 and less patterns left from Bays' papers).
    Glider code revamped to make more maintainable, using populateGlider().
    unsigned int fix thanks to Jouk Jansen.
    Added new cube gliders from Bays 2006 3D Life paper and found a few
      patterns for the gliders to crash into.  (S23B5, S25B5, S27B5, S35B5,
      S36B5, S37B5, S38B5, S4B5, S47B5, S57B6, S58B5, S8B5).
    New mode option added "+draw", this turns off drawing to the screen
      to speed up searches, and more importantly, make less annoying :)
- life: resyncing with my Java code.
    Switched how static triangular forms are stored
    Added a lots of new triangular patterns, including 2 gunship triangular
      patterns.  Also added handful of other patterns.
    Reading memory on uninitialized variables fix thanks to Jouk Jansen.
    "+draw" mode option added.
    Pentagonal (Cairo Tiling) life added with glider shooters.
      "xlock -mode life -rule S23B346 -neighbors 7" or
      "xlock -mode life -pent2".
    New gliders found by David Bagley, one in 5 neighbors pentagonal life
      (-rule S24B2) "xlock -mode life -pent", the other in 9 neighbor
      triangular life "xlock -mode life -neighbors 9" (-rule S3B34).
      Associated periodic patterns for each added.
    Added more symmetries and now have all the random symmetries
      (at least I think so) for squares, hexagaons, triangles, and
      pentagons.
- Macro FTGL213 added for new FTGL library.  If you need it to compile
    text3d2.cc, make sure it compiles with -DFTGL213.  Should work
    automatically for VMS though, thanks to Jouk Jansen.

Approved by Hubert Feyrer.
2009-04-16 12:31:18 +00:00

116 lines
3.3 KiB
Text

# $NetBSD: Makefile.common,v 1.54 2009/04/16 12:31:18 tron Exp $
#
# This Makefile.common is included by:
#
# x11/xlockmore/Makefile
# x11/xlockmore-lite/Makefile
#
# If these packages are updated, please remember to reset any PKGREVISIONs
# in those Makefiles.
DISTNAME= xlockmore-5.28
CATEGORIES= x11
MASTER_SITES= ftp://ftp.tux.org/pub/tux/bagleyd/xlockmore/${DISTNAME}/ \
ftp://ibiblio.org/pub/Linux/X11/screensavers/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= hubertf@NetBSD.org
HOMEPAGE= http://www.tux.org/~bagleyd/xlockmore.html
CONFLICTS+= xlockmore-[0-9]* xlockmore-lite-[0-9]*
DISTINFO_FILE?= ${.CURDIR}/../xlockmore/distinfo
PATCHDIR?= ${.CURDIR}/../xlockmore/patches
PLIST_SRC?= ${.CURDIR}/../xlockmore/PLIST
PKG_DESTDIR_SUPPORT= user-destdir
PKG_INSTALLATION_TYPES= overwrite pkgviews
.include "../../mk/bsd.prefs.mk"
PKG_OPTIONS_VAR= PKG_OPTIONS.xlockmore
PKG_SUPPORTED_OPTIONS= xlockmore-allow-root xlockmore-dpms
.if ${OPSYS} == "NetBSD"
PKG_SUPPORTED_OPTIONS+= oss
.endif
PKG_SUGGESTED_OPTIONS= xlockmore-allow-root xlockmore-dpms
PKG_OPTIONS_LEGACY_VARS+=XLOCK_DISABLE_ALLOW_ROOT:-xlockmore-allow-root
PKG_OPTIONS_LEGACY_VARS+=XLOCK_NO_DPMS:-xlockmore-dpms
.include "../../mk/bsd.options.mk"
USE_LANGUAGES= c c++
USE_TOOLS+= xmkmf
USE_X11BASE= YES
XLOCK_SOUNDDIR= ${PREFIX}/lib/X11/xlock/sounds
XLOCK_MODULEDIR= ${PREFIX}/lib/X11/xlock/modules
DEFINES+= -DDEF_MODULEPATH="\"${XLOCK_MODULEDIR}\""
CPPFLAGS+= ${DEFINES}
CXXFLAGS+= ${DEFINES}
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --without-motif
CONFIGURE_ARGS+= --without-editres
CONFIGURE_ARGS+= --without-dtsaver
CONFIGURE_ARGS+= --without-rplay
CONFIGURE_ARGS+= --without-nas
CONFIGURE_ARGS+= --without-gtk
.if ${OPSYS} == "NetBSD"
XLOCK_AUDIOPLAY?= /usr/bin/audioplay
CONFIGURE_ARGS+= --enable-def-play=${XLOCK_AUDIOPLAY:Q}
.endif
.if empty(PKG_OPTIONS:Mxlockmore-dpms)
CONFIGURE_ARGS+= --without-dpms
.endif
.if empty(PKG_OPTIONS:Mxlockmore-allow-root)
CONFIGURE_ARGS+= --disable-allow-root
.endif
#
# Special permissions of bin/xlock if any.
#
.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" || \
${OPSYS} == "DragonFly" || ${OPSYS} == "SunOS"
SPECIAL_PERMS+= bin/xlock ${SETUID_ROOT_PERMS}
.elif ${OPSYS} == "Linux"
# setgid shadow should be enough for modern Linux
SPECIAL_PERMS+= bin/xlock ${REAL_ROOT_USER} shadow 2511
.endif
BUILDLINK_DEPMETHOD.libXt?= build
.include "../../x11/libICE/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
# Set the complete paths to the sound files and set the default xlock
# mode/screensaver.
#
post-patch:
cd ${WRKSRC}/xlock; \
${MV} -f XLock.ad XLock.ad.presed; \
${SED} -e "s|/usr/lib/|${PREFIX}/lib/|g" \
XLock.ad.presed > XLock.ad; \
${RM} -f XLock.ad.presed
.if defined(XLOCK_DEFAULT_MODE) && !empty(XLOCK_DEFAULT_MODE)
cd ${WRKSRC}/xlock; \
${MV} -f XLock.ad XLock.ad.presed; \
${SED} -e "s|^\(XLock.mode:[ ]*\).*|\1${XLOCK_DEFAULT_MODE}|" \
XLock.ad.presed > XLock.ad; \
${RM} -f XLock.ad.presed
.endif
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${XLOCK_SOUNDDIR}
cd ${WRKSRC}/sounds; \
for file in *.au; do \
${INSTALL_DATA} $$file ${DESTDIR}${XLOCK_SOUNDDIR}; \
done