[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / time / xalarm

File: [cvs.NetBSD.org] / pkgsrc / time / xalarm / Makefile (download)

Revision 1.14, Thu May 3 09:55:31 2012 UTC (10 years, 9 months ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2
Changes since 1.13: +2 -3 lines

Drop dependency on libXp (from Imake)

* libXp was used by Xaw8, but it had been obsolated, and in pkgsrc,
  x11/libXaw/buildlink3.mk had been switched to pick up Xaw7 by default.
* With x11/xorg-cf-files, libXp was offered with XawClientLibs,
  but updated to 1.0.4, it was removed.
* And pkgsrc had been switched to use always xorg-cf-files and imake from pkgsrc,
  so all platforms should not require libXp from libXaw with Imake.

Bump PKGREVISION.

# $NetBSD: Makefile,v 1.14 2012/05/03 09:55:31 obache Exp $

DISTNAME=	xalarm-3.06
PKGREVISION=	2
CATEGORIES=	time
MASTER_SITES=	${MASTER_SITE_XCONTRIB:=utilities/}
EXTRACT_SUFX=	.tar.gz

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	X11 interactive alarm clock

PKG_DESTDIR_SUPPORT=	user-destdir

DEPENDS+=	skill>=4.0:../../sysutils/skill

USE_IMAKE=	yes
XAW_TYPE?=	3d

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...
	YOW=`${FIND} ${LOCALBASE}/libexec/emacs -name yow -print 2>/dev/null | ${SORT} -rn | ${HEAD} -1` ;  \
	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
	${CP} ${FILESDIR}/XAlarm-color.ad ${WRKSRC}/

.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/xaw.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"