freebsd-ports/games/zangband/Makefile

58 lines
1.4 KiB
Makefile

# 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
USES= perl5
USE_GMAKE= yes
USE_AUTOTOOLS= automake14 autoconf
USE_PERL5= build
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}
NO_STAGE= yes
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>