2021-05-24 21:49:01 +02:00
|
|
|
# $NetBSD: Makefile,v 1.21 2021/05/24 19:55:09 wiz Exp $
|
2001-06-05 20:11:38 +02:00
|
|
|
|
2006-04-16 03:00:06 +02:00
|
|
|
DISTNAME= xalarm-3.06
|
2021-05-24 21:49:01 +02:00
|
|
|
PKGREVISION= 5
|
2001-06-05 20:11:38 +02:00
|
|
|
CATEGORIES= time
|
2006-04-16 03:00:06 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_XCONTRIB:=utilities/}
|
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
|
|
|
|
|
|
|
|
DEPENDS+= skill>=4.0:../../sysutils/skill
|
|
|
|
|
|
|
|
USE_IMAKE= yes
|
|
|
|
|
|
|
|
FORTUNE= "Sorry, xfortune is unavailable - no fortune!"
|
|
|
|
YOW= "Sorry, xyow is unavailable - no yow!"
|
|
|
|
KILL= /bin/kill # should this be in bsd.pkg.mk ?
|
|
|
|
|
2015-10-14 22:17:24 +02:00
|
|
|
# does not directly support Xaw3d
|
|
|
|
BUILDLINK_TRANSFORM+= l:Xaw:Xaw3d
|
|
|
|
.PHONY: buildlink-Xaw3d-inc-hack
|
|
|
|
pre-configure: buildlink-Xaw3d-inc-hack
|
|
|
|
|
|
|
|
buildlink-Xaw3d-inc-hack: buildlink-directories
|
|
|
|
cd ${BUILDLINK_DIR}/include/X11 && ln -s Xaw3d Xaw
|
|
|
|
|
2001-06-05 20:11:38 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if defined(XALARM_USE_YOW)
|
2013-02-17 19:55:44 +01:00
|
|
|
DEPENDS+= emacs20>=20.7:../../editors/emacs
|
2001-06-05 20:11:38 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
2015-10-15 06:59:30 +02:00
|
|
|
. if exists(/usr/games/fortune)
|
2001-06-05 20:11:38 +02:00
|
|
|
FORTUNE= `/usr/games/fortune`
|
2015-10-15 06:59:30 +02:00
|
|
|
. endif
|
2001-06-05 20:11:38 +02:00
|
|
|
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...
|
2015-10-15 06:59:30 +02:00
|
|
|
${RUN}YOW=`${FIND} ${LOCALBASE}/libexec/emacs -name yow -print 2>/dev/null | ${SORT} -rn | ${HEAD} -1` ; \
|
|
|
|
if ${TEST} "x$${YOW}" = "x" ; then \
|
|
|
|
YOW=${YOW:Q} ; \
|
|
|
|
fi ; ${SETENV} YOW="$${YOW}" \
|
2001-06-05 20:11:38 +02:00
|
|
|
${SED} -e "s|@PRG@|\`$${YOW}\`|" \
|
|
|
|
-e 's|@XPRG@|xyow|' \
|
|
|
|
${FILESDIR}/xprg > ${WRKSRC}/xyow
|
|
|
|
.else
|
2015-10-15 06:59:30 +02:00
|
|
|
${RUN}${SED} -e 's|@PRG@|${YOW}|' \
|
2001-06-05 20:11:38 +02:00
|
|
|
-e 's|@XPRG@|xyow|' \
|
|
|
|
${FILESDIR}/xprg > ${WRKSRC}/xyow
|
|
|
|
.endif
|
2015-10-15 06:59:30 +02:00
|
|
|
${RUN}${SED} -e 's|@PRG@|${FORTUNE}|' \
|
2001-06-05 20:11:38 +02:00
|
|
|
-e 's|@XPRG@|xfortune|' \
|
|
|
|
${FILESDIR}/xprg > ${WRKSRC}/xfortune
|
2015-10-15 06:59:30 +02:00
|
|
|
${RUN}${SED} -e 's|@SKILL@|${LOCALBASE}/bin/skill|' \
|
2001-06-05 20:11:38 +02:00
|
|
|
-e 's|@GREP@|${GREP}|' \
|
|
|
|
-e 's|@KILL@|${KILL}|' ${FILESDIR}/fns.h.in > ${WRKSRC}/fns.h
|
2015-10-15 06:59:30 +02:00
|
|
|
${RUN}${CP} ${FILESDIR}/XAlarm-color.ad ${WRKSRC}/
|
2001-06-05 20:11:38 +02:00
|
|
|
|
2007-02-02 18:13:56 +01:00
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
2015-12-08 22:02:11 +01:00
|
|
|
.include "../../x11/libXaw3d/buildlink3.mk"
|
2001-06-05 20:11:38 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|