aboutsummaryrefslogtreecommitdiffstats
path: root/games/zangband/Makefile
blob: 9192507e030e327f4e9df49c7dd70305781413a4 (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
49
50
51
52
53
54
55
56
# Created by: Makoto YAMAKURA <makoto@pinpott.spnet.ne.jp>
# $FreeBSD$

PORTNAME=   zangband
PORTVERSION=    2.6.2
PORTREVISION=   5
CATEGORIES+=    games
MASTER_SITES=   ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/
DIST_SUBDIR=    ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Zangband (Zelazny Angband) with color, X11 support

USE_GMAKE=  yes
USE_AUTOTOOLS=  automake14 autoconf
USE_PERL5_BUILD=yes
CONFIGURE_ARGS= --datadir=${PREFIX}/lib --mandir=${PREFIX}/man \
        --with-setgid=${SHAREGRP}

NO_CDROM=   Possible copyright infringement

WRKSRC=     ${WRKDIR}/${PORTNAME}
PLIST_SUB+= ANGBANDBIN=${ANGBANDBIN} ANGBANDLIB=${ANGBANDLIB}
SUB_FILES=  pkg-message
SUB_LIST=   ANGBANDBIN=${ANGBANDBIN} ANGBANDLIB=${ANGBANDLIB}

SHAREOWN=   games
SHAREGRP=   games
BINOWN=     ${SHAREOWN}
BINGRP=     ${SHAREGRP}
BINMODE=    2755

ANGBANDLIB?=    lib/${PORTNAME}
ANGBANDBIN?=    bin/${PORTNAME}

pre-patch:
    @${REINPLACE_CMD} -i '' -e 's|^aclocal|${ACLOCAL}|' \
        -e 's|^autoheader|${AUTOHEADER}|' \
        -e 's|^automake|${AUTOMAKE}|' \
        -e 's|^autoconf|${AUTOCONF}|' \
            ${WRKSRC}/bootstrap

pre-configure:
    (cd ${WRKSRC} ; ${SH} bootstrap)

post-install:
    (cd ${PREFIX}/${ANGBANDLIB} && \
        ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} apex data ; \
        ${CHMOD} 755 . ; \
        ${CHMOD} -R ug+rw,o-rw * ; \
        ${CHMOD} -R o+r help ; \
        ${CHMOD} 1777 save user \
    )
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>