summaryrefslogtreecommitdiff
path: root/games/xtris/Makefile
blob: 4ddfe7b13826c2b28293189d32fa3261eab6eca1 (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
# $NetBSD: Makefile,v 1.19 2008/06/15 11:15:44 joerg Exp $
#

DISTNAME=	xtris-1.15
PKGREVISION=	2
CATEGORIES=	games x11
MASTER_SITES=	http://www.iagora.com/~espel/xtris/

MAINTAINER=	opp@MuFFiN.Org
HOMEPAGE=	http://www.iagora.com/~espel/xtris/xtris.html
COMMENT=	Multi-player version of a popular game for the X Window system

PKG_DESTDIR_SUPPORT=	user-destdir

WRKSRC=		${WRKDIR}/xtris
USE_X11BASE=	yes
LIBS.SunOS+=	-lsocket -lnsl
MAKE_ENV+=	LIBS=${LIBS:Q}

SETGIDGAME=	yes
SPECIAL_PERMS+=	bin/xtris ${SETGID_GAMES_PERMS}
SPECIAL_PERMS+=	bin/xtbot ${SETGID_GAMES_PERMS}
SPECIAL_PERMS+=	bin/xtserv ${SETGID_GAMES_PERMS}

.include "options.mk"

INSTALLATION_DIRS=	bin ${PREFIX}/${PKGMANDIR}/man6

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xtris ${DESTDIR}${PREFIX}/bin/xtris
	${INSTALL_PROGRAM} ${WRKSRC}/xtbot ${DESTDIR}${PREFIX}/bin/xtbot
	${INSTALL_PROGRAM} ${WRKSRC}/xtserv ${DESTDIR}${PREFIX}/bin/xtserv
	${INSTALL_MAN} ${WRKSRC}/xtris.6 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/xtris.6
	${INSTALL_MAN} ${WRKSRC}/xtbot.6 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/xtbot.6
	${INSTALL_MAN} ${WRKSRC}/xtserv.6 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/xtserv.6

.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"