Annotation of pkgsrc/x11/xlockmore/Makefile, Revision 1.39
1.39 ! hubertf 1: # $NetBSD: Makefile,v 1.38 2000/11/30 01:16:16 jwise Exp $
1.2 hubertf 2: # FreeBSD Id: Makefile,v 1.23 1997/10/10 09:24:38 tg Exp
1.1 hubertf 3: #
4:
1.39 ! hubertf 5: DISTNAME= xlockmore-5.00
1.1 hubertf 6: CATEGORIES= x11
1.31 tron 7: MASTER_SITES= ftp://ftp.tux.org/pub/tux/bagleyd/xlockmore/ \
8: ${MASTER_SITE_XCONTRIB:=applications/}
1.1 hubertf 9:
1.9 hubertf 10: MAINTAINER= hubertf@netbsd.org
1.18 tsarna 11: HOMEPAGE= http://www.tux.org/~bagleyd/xlockmore.html
1.37 rh 12:
13: CHECK_MESA= YES
1.1 hubertf 14:
1.35 itohy 15: .include "../../mk/bsd.prefs.mk"
16:
17: .if !defined(XLOCK_LIGHT)
1.36 rh 18: USE_MESA= YES
1.35 itohy 19: .endif
1.1 hubertf 20:
1.38 jwise 21: .if !exists(${X11BASE}/lib/libXdpms.a)
22: XLOCK_NO_DPMS= YES
23: .endif
24:
1.33 tron 25: GNU_CONFIGURE= YES
26: USE_X11BASE= YES
1.35 itohy 27: .if defined(XLOCK_LIGHT)
28: CONFIGURE_ARGS+= --without-mesagl --without-xpm # --without-cxx XXX doesn't work
29: CONFIGURE_ENV+= "CXX=${CC}" # no dependency on libstdc++
30: .else
1.33 tron 31: USE_XPM= YES
1.35 itohy 32: CONFIGURE_ARGS+= --with-mesagl
33: .endif
34: CONFIGURE_ARGS+= --without-motif --without-sx \
1.1 hubertf 35: --without-editres --without-dtsaver --without-rplay \
1.21 tron 36: --without-nas --without-gtk
1.35 itohy 37: .if ${OPSYS} == "NetBSD"
38: CONFIGURE_ARGS+= --enable-def_play='/usr/bin/audioplay ${PREFIX}/lib/X11/xlockmore/'
1.38 jwise 39: .endif
40:
41: .if defined(XLOCK_NO_DPMS)
42: CONFIGURE_ARGS+= --without-dpms
1.35 itohy 43: .endif
1.29 hubertf 44:
45: post-patch:
46: for i in xlock/sound.c xlock/resource.c ; do \
47: f=${WRKSRC}/$$i ; \
1.30 hubertf 48: [ -f $$f.BAK ] || ${MV} $$f $$f.BAK ; \
49: ${SED} \
1.29 hubertf 50: -e 's|@PREFIX@|${PREFIX}|g' \
51: <$$f.BAK >$$f ; \
52: done
1.35 itohy 53: .if defined(XLOCK_DEFAULT_MODE) && ${XLOCK_DEFAULT_MODE} != ""
54: cd ${WRKSRC}/xlock; \
55: [ -f XLock.ad.BAK ] || ${MV} XLock.ad XLock.ad.BAK ; \
56: ${SED} \
57: -e 's/^\(XLock.mode:[ ]*\).*/\1${XLOCK_DEFAULT_MODE}/' \
58: XLock.ad.BAK >XLock.ad
59: .endif
1.29 hubertf 60:
61: post-install:
62: ${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/xlockmore
63: ${INSTALL_DATA} \
64: ${WRKSRC}/sounds/thank-you.au \
65: ${WRKSRC}/sounds/identify-please.au \
66: ${WRKSRC}/sounds/not-programmed.au \
67: ${WRKSRC}/sounds/complete.au \
68: ${PREFIX}/lib/X11/xlockmore
1.1 hubertf 69:
1.12 agc 70: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>