summaryrefslogtreecommitdiff
path: root/x11/xdaemon/Makefile
blob: 42a3fd93a7fac421714de09be4ee4c6777b56675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $NetBSD: Makefile,v 1.20 2009/04/08 22:43:26 joerg Exp $

DISTNAME=	xdaemon-1.2
CATEGORIES=	games x11
MASTER_SITES=	${MASTER_SITE_LOCAL}
DISTFILES=	Daemon.README \
		${IMAGES:=_bw.xbm} \
		${IMAGES:=_color.xpm} \
		${IMAGES:=_icon.xbm} \
		${IMAGES:=_mask.xbm} \

MAINTAINER=	hubertf@NetBSD.org
HOMEPAGE=	http://www.NetBSD.org/
COMMENT=	BSD Daemon sticking on your desktop (like xteddy)

PKG_DESTDIR_SUPPORT=	user-destdir

DEPENDS+=	xteddy-1.*:../../x11/xteddy

CONFLICTS+=	xdaemon-2.*

WRKSRC=		${WRKDIR}
NO_CONFIGURE=	yes
NO_BUILD=	yes
DIST_SUBDIR=	xdaemon

IMAGES=		xdaemon xdaemon2 xnetbsd-flag xnetbsd-flag2

INSTALLATION_DIRS=	bin share/doc share/xteddy/pixmaps

do-extract:
	@${MKDIR} ${WRKSRC}
	@${ECHO} Bringing daemonic powers to you!

do-install:
.for img in ${IMAGES}
.for sufx in _bw.xbm _color.xpm _icon.xbm _mask.xbm
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${img}${sufx} ${DESTDIR}${PREFIX}/share/xteddy/pixmaps/${img}${sufx}
.endfor # sufx
	${RM} -f ${DESTDIR}${PREFIX}/bin/${img}
	${LN} -s xteddy ${DESTDIR}${PREFIX}/bin/${img}
.endfor # img
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/Daemon.README ${DESTDIR}${PREFIX}/share/doc/xdaemon.README

.include "../../mk/bsd.pkg.mk"