2009-07-07 22:00:27 +02:00
|
|
|
# $NetBSD: Makefile,v 1.13 2009/07/07 20:00:27 joerg Exp $
|
2001-06-05 20:11:38 +02:00
|
|
|
|
2006-04-16 03:00:06 +02:00
|
|
|
DISTNAME= xalarm-3.06
|
2008-11-10 18:21:33 +01:00
|
|
|
PKGREVISION= 1
|
2001-06-05 20:11:38 +02:00
|
|
|
CATEGORIES= time
|
2006-04-16 03:00:06 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_XCONTRIB:=utilities/}
|
|
|
|
EXTRACT_SUFX= .tar.gz
|
2001-06-05 20:11:38 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-06-05 20:11:38 +02:00
|
|
|
COMMENT= X11 interactive alarm clock
|
|
|
|
|
2009-07-07 22:00:27 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2001-06-05 20:11:38 +02:00
|
|
|
DEPENDS+= skill>=4.0:../../sysutils/skill
|
|
|
|
|
|
|
|
USE_IMAKE= yes
|
2006-04-16 03:00:06 +02:00
|
|
|
XAW_TYPE?= 3d
|
2001-06-05 20:11:38 +02:00
|
|
|
|
|
|
|
FORTUNE= "Sorry, xfortune is unavailable - no fortune!"
|
|
|
|
YOW= "Sorry, xyow is unavailable - no yow!"
|
|
|
|
KILL= /bin/kill # should this be in bsd.pkg.mk ?
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if defined(XALARM_USE_YOW)
|
|
|
|
DEPENDS+= emacs>=20.7:../../editors/emacs
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
.if exists(/usr/games/fortune)
|
|
|
|
FORTUNE= `/usr/games/fortune`
|
|
|
|
.endif
|
|
|
|
MAKE_FLAGS+= EXTRA_DEFINES=-DFORKRETURNSPID_T
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
.if defined(XALARM_USE_YOW)
|
|
|
|
# if multiple version emacs of emacs are there, take the higher one...
|
2003-05-10 19:40:00 +02:00
|
|
|
YOW=`${FIND} ${LOCALBASE}/libexec/emacs -name yow -print 2>/dev/null | ${SORT} -rn | ${HEAD} -1` ; \
|
2001-06-05 20:11:38 +02:00
|
|
|
if ${TEST} x$${YOW} = x ; then \
|
|
|
|
YOW=${YOW} ; \
|
|
|
|
fi ; ${SETENV} YOW=$${YOW} \
|
|
|
|
${SED} -e "s|@PRG@|\`$${YOW}\`|" \
|
|
|
|
-e 's|@XPRG@|xyow|' \
|
|
|
|
${FILESDIR}/xprg > ${WRKSRC}/xyow
|
|
|
|
.else
|
|
|
|
${SED} -e 's|@PRG@|${YOW}|' \
|
|
|
|
-e 's|@XPRG@|xyow|' \
|
|
|
|
${FILESDIR}/xprg > ${WRKSRC}/xyow
|
|
|
|
.endif
|
|
|
|
${SED} -e 's|@PRG@|${FORTUNE}|' \
|
|
|
|
-e 's|@XPRG@|xfortune|' \
|
|
|
|
${FILESDIR}/xprg > ${WRKSRC}/xfortune
|
|
|
|
${SED} -e 's|@SKILL@|${LOCALBASE}/bin/skill|' \
|
|
|
|
-e 's|@GREP@|${GREP}|' \
|
|
|
|
-e 's|@KILL@|${KILL}|' ${FILESDIR}/fns.h.in > ${WRKSRC}/fns.h
|
2006-04-16 03:00:06 +02:00
|
|
|
${CP} ${FILESDIR}/XAlarm-color.ad ${WRKSRC}/
|
2001-06-05 20:11:38 +02:00
|
|
|
|
2007-02-02 18:13:56 +01:00
|
|
|
.include "../../x11/libXp/buildlink3.mk"
|
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
2006-04-16 03:00:06 +02:00
|
|
|
.include "../../mk/xaw.buildlink3.mk"
|
2001-06-05 20:11:38 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|