summaryrefslogtreecommitdiff
path: root/sysutils/torsmo/Makefile
blob: f128f92edae2fe9b5770d08e8a99fbd1457251e6 (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
46
47
48
49
# $NetBSD: Makefile,v 1.7 2010/02/19 21:21:20 joerg Exp $

DISTNAME=		torsmo-0.18
PKGREVISION=		1
CATEGORIES=		sysutils
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=torsmo/}

MAINTAINER=		ghen@NetBSD.org
HOMEPAGE=		http://torsmo.sourceforge.net/
COMMENT=		Tyopoytaorvelo System Monitor

PKG_DESTDIR_SUPPORT=	user-destdir

NOT_FOR_PLATFORM=	Darwin-*-*

GNU_CONFIGURE=		yes

EGDIR=			${PREFIX}/share/examples/torsmo
DOCDIR=			${PREFIX}/share/doc/torsmo

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 share/examples/torsmo
INSTALLATION_DIRS+=	share/doc/torsmo

.include "../../mk/bsd.prefs.mk"

.if ${X11_TYPE} == "modular"
CONFIGURE_ARGS+=	--x-includes=${PREFIX}/include
CONFIGURE_ARGS+=	--x-libraries=${PREFIX}/lib
.endif

.if (${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" \
			  || ${OPSYS} == "OpenBSD" || ${OPSYS} == "Linux")
SPECIAL_PERMS+=	bin/torsmo ${REAL_ROOT_USER} kmem 2555
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/torsmo ${DESTDIR}${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/torsmo.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
	${INSTALL_DATA} ${WRKSRC}/torsmorc.sample ${DESTDIR}${EGDIR}/
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}/
	${INSTALL_DATA} ${WRKSRC}/readme.html ${DESTDIR}${DOCDIR}/

BUILDLINK_DEPMETHOD.libXt?=	build

.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"