1690bcad60
It doesn't make sense to let the user configure the XAW_TYPE when only one specific setting (XAW_TYPE=3d) works at all. Thanks, joerg
65 lines
1.9 KiB
Makefile
65 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.20 2015/12/08 21:02:11 rillig Exp $
|
|
|
|
DISTNAME= xalarm-3.06
|
|
PKGREVISION= 4
|
|
CATEGORIES= time
|
|
MASTER_SITES= ${MASTER_SITE_XCONTRIB:=utilities/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
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 ?
|
|
|
|
# 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
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if defined(XALARM_USE_YOW)
|
|
DEPENDS+= emacs20>=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...
|
|
${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}" \
|
|
${SED} -e "s|@PRG@|\`$${YOW}\`|" \
|
|
-e 's|@XPRG@|xyow|' \
|
|
${FILESDIR}/xprg > ${WRKSRC}/xyow
|
|
.else
|
|
${RUN}${SED} -e 's|@PRG@|${YOW}|' \
|
|
-e 's|@XPRG@|xyow|' \
|
|
${FILESDIR}/xprg > ${WRKSRC}/xyow
|
|
.endif
|
|
${RUN}${SED} -e 's|@PRG@|${FORTUNE}|' \
|
|
-e 's|@XPRG@|xfortune|' \
|
|
${FILESDIR}/xprg > ${WRKSRC}/xfortune
|
|
${RUN}${SED} -e 's|@SKILL@|${LOCALBASE}/bin/skill|' \
|
|
-e 's|@GREP@|${GREP}|' \
|
|
-e 's|@KILL@|${KILL}|' ${FILESDIR}/fns.h.in > ${WRKSRC}/fns.h
|
|
${RUN}${CP} ${FILESDIR}/XAlarm-color.ad ${WRKSRC}/
|
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
|
.include "../../x11/libXaw3d/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|