pkgsrc/x11/xlockmore/Makefile.common
ryoon 1bb728d29a Update to 5.34
* This change also bumps the version of x11/xlockmore-lite.
* Change primary MASTER_SITES to http, ftp is not fetchabel for me.

Changes:
sssss
 changed from 30 sec to 5 sec.  Define -DMIN_DPMS=3 at compile-time
    if you would like to change it to be sooner.
  life mode fix for hexagons, life forms would not map certain screen sizes
  life mode: Added new neighbor 9 ship, added asym ships for neighbor 12
    S356/B46, and added some new oscillators including a neighbor 6 p16.
    Now (mostly) use generated file from java app and life2d.xml.
  life3d mode: Added new some new oscillators including a neighbor 12 p10
    S456/B3.  Also new puffers and gliders found.  Now use generated file
    from java app and life3d.xml.
  loop mode: made new small loops less frequent

5.33
  Took out mode description on screen for WIN32 as it seems to
    mess up the screen frequently.
  life updates:
    added 2 more triangle rules from Carter Bays' applet.
    added a few more life forms to life (hexagonal)
    added a non-totalistic rule to life (square)  known as Rule 3/2ab3
      but for consistency it is known here as S2a2b2c2d3/B3.
  life3d added new life forms to truncated octahedral.
  ant/demon/life updates for -neighbors 5 or 7.  Now with better
    pentagons.  ant with -neighbors 5 should now work properly (7 removed).
  loop update added Byl and Chou-Reggia (1&2) loops, changed colors to be
    more traditional

5.32
  life3d update for -neighbors 14, new truncated octahedral life form.
  ant & demon updates for -neighbors 5 or 7

5.31
  -xinerama option added off by default. [Untested as I do not have true
    multiscreen.  I tried with Xnest but I do not think this ever worked
    with Xinerama.]
  cppcheck fixed minor issues in xlock subdirectory and with pyro2 and
    invert.

5.30
  atlantis, atunnel, biof, bubble3d, cage, fire, gears, invert, lament,
    moebius, morph3d, noof, pipes, rubik, sballs, sierpinski3d, skewb,
    sproingies, stairs, and superquadrics added to Windows version (atunnel,
    fire, lament, and sballs lack textures).
  skewb mode now scrambles, taken out of unstable category.
  Undo a cleanup in vroot.h, as xlock exits on startup with a BadWindow
    on pievwm and tvtwm.
2011-09-17 12:45:32 +00:00

128 lines
4 KiB
Text

# $NetBSD: Makefile.common,v 1.59 2011/09/17 12:45:32 ryoon 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.34
CATEGORIES= x11
MASTER_SITES= http://www.tux.org/~bagleyd/xlock/${DISTNAME}/ \
ftp://ibiblio.org/pub/Linux/X11/screensavers/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@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
CONFIGURE_ARGS+= --enable-appdefaultdir=${PREFIX}/lib/X11/app-defaults
CONFIGURE_ENV+= ac_cv_x_app_defaults=${PREFIX}/lib/X11/app-defaults
.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
.else
. if ${X11_TYPE} != "native" || !exists(${X11BASE}/lib${LIBABISUFFIX}/libXdpms.a)
BUILDLINK_TRANSFORM+= l:Xdpms:Xext
. endif
DPMS_ENV= no_dpms= ac_dpms_includes=${BUILDLINK_PREFIX.xextproto}/include ac_dpms_libraries=${BUILDLINK_PREFIX.libXext}/lib
CONFIGURE_ENV+= ac_cv_path_dpms=${DPMS_ENV:Q}
.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/libXinerama/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
XINERAMA_ENV= no_xenerama= ac_xinerama_includes=${BUILDLINK_PREFIX.libXinerama}/include ac_xinerama_libraries=${BUILDLINK_PREFIX.libXinerama}/lib
CONFIGURE_ENV+= ac_cv_path_xinerama=${XINERAMA_ENV:Q}
# 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