blob: 7c1b6b95ffa91391468269bd4be9c0f183b46c69 (
plain) (
blame)
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
|
# New ports collection makefile for: zangband
# Date created: 29 May 2000
# Whom: Makoto YAMAKURA <makoto@pinpott.spnet.ne.jp>
#
# $FreeBSD$
#
PORTNAME= zangband
PORTVERSION= 2.6.1
CATEGORIES+= games
MASTER_SITES= ftp://clockwork.dementia.org/angband/Variant/ZAngband/ \
ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= makoto@pinpott.spnet.ne.jp
USE_XLIB= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --datadir=${PREFIX}/lib \
--with-setgid=${SHAREGRP}
NO_CDROM= Possible copyright infringement
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PKGMESSAGE= ${WRKDIR}/MESSAGE
PLIST_SUB+= ANGBANDBIN=${ANGBANDBIN} ANGBANDLIB=${ANGBANDLIB}
SHAREOWN= games
SHAREGRP= games
BINOWN= ${SHAREOWN}
BINGRP= ${SHAREGRP}
BINMODE= 2755
ANGBANDLIB?= lib/${PORTNAME}
ANGBANDBIN?= bin/${PORTNAME}
post-install:
(cd ${PREFIX}/${ANGBANDLIB} && \
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} apex data ; \
${CHMOD} 755 . ; \
${CHMOD} -R ug+rw,o-rw * ; \
${CHMOD} -R o+r help xtra ; \
${CHMOD} 1777 save user \
)
@${SED} -e "s|%%PREFIX%%|${PREFIX}|g;s|%%ANGBANDBIN%%|${ANGBANDBIN}|g;s|%%ANGBANDLIB%%|${ANGBANDLIB}|g" ${FILESDIR}/MESSAGE.in > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|