summaryrefslogtreecommitdiffstats
path: root/games/zangband/Makefile
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2001-08-24 13:06:50 +0000
committerdwcjr <dwcjr@FreeBSD.org>2001-08-24 13:06:50 +0000
commit08d6dbef65ad6171d537926f4c725fda8fa82a17 (patch)
treea273568658b40bc0439d4d2d64fa84396d269456 /games/zangband/Makefile
parent9cd1ca73529ac2732f8a084a7fdadbd5b564f0ff (diff)
downloadFreeBSD-ports-08d6dbef65ad6171d537926f4c725fda8fa82a17.zip
FreeBSD-ports-08d6dbef65ad6171d537926f4c725fda8fa82a17.tar.gz
Update to 2.6.1
Make standalone port PR: 30017 Submitted by: maintainer
Diffstat (limited to 'games/zangband/Makefile')
-rw-r--r--games/zangband/Makefile63
1 files changed, 10 insertions, 53 deletions
diff --git a/games/zangband/Makefile b/games/zangband/Makefile
index 4c71164..7c1b6b9 100644
--- a/games/zangband/Makefile
+++ b/games/zangband/Makefile
@@ -6,73 +6,35 @@
#
PORTNAME= zangband
-PORTVERSION= 2.4.0${JA_VERSION}
-PORTREVISION= 1
+PORTVERSION= 2.6.1
CATEGORIES+= games
MASTER_SITES= ftp://clockwork.dementia.org/angband/Variant/ZAngband/ \
- ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/ \
- ${JA_MASTER_SITE}
-DISTFILES= ${PORTNAME}-${E_VERSION:S/.//g}-src.zip \
- ${JA_DISTFILE}
+ ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/
DIST_SUBDIR= ${PORTNAME}
-EXTRACT_ONLY= ${PORTNAME}-${E_VERSION:S/.//g}-src.zip
MAINTAINER= makoto@pinpott.spnet.ne.jp
-USE_ZIP= yes
-EXTRACT_BEFORE_ARGS= -qa
USE_XLIB= yes
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --datadir=${PREFIX}/lib \
+ --with-setgid=${SHAREGRP}
NO_CDROM= Possible copyright infringement
-PKGDIR?= ${.CURDIR}
-WRKSRC= ${WRKDIR}/ZAngband
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PKGMESSAGE= ${WRKDIR}/MESSAGE
-PLIST= ${WRKDIR}/PLIST
PLIST_SUB+= ANGBANDBIN=${ANGBANDBIN} ANGBANDLIB=${ANGBANDLIB}
SHAREOWN= games
SHAREGRP= games
-BINOWN= games
-BINGRP= games
+BINOWN= ${SHAREOWN}
+BINGRP= ${SHAREGRP}
BINMODE= 2755
-MAKE_ARGS+= ANGBANDLIB=${PREFIX}/${ANGBANDLIB}
ANGBANDLIB?= lib/${PORTNAME}
ANGBANDBIN?= bin/${PORTNAME}
-E_VERSION= ${PORTVERSION:S/${JA_VERSION}//}
-
-.if defined(JAPANESE)
-PATCH_VERSION?= 010223
-JA_VERSION= .j${PATCH_VERSION}
-JA_DISTFILE= zj${E_VERSION:S/.//g}ux-${PATCH_VERSION}.tgz
-.endif
-
-.if defined(JAPANESE)
-pre-patch:
- (cd ${WRKSRC} ; ${TAR} zxf ${DISTDIR}/${DIST_SUBDIR}/zj${E_VERSION:S/.//g}ux-${PATCH_VERSION}.tgz)
- (cd ${WRKSRC}/src ; ${PATCH} -p1 -l -s < ../zj${E_VERSION:S/.//g}.patch ; ${PATCH} -p1 -l -s < ${FILESDIR}/makefile-adjust.patch)
-.endif
-
-pre-build:
- ${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
- ${CP} ${WRKSRC}/src/makefile.std ${WRKSRC}/src/Makefile
- @${SED} -e "s|%%PREFIX%%|${PREFIX}|g;s|%%ANGBANDBIN%%|${ANGBANDBIN}|g;s|%%ANGBANDLIB%%|${ANGBANDLIB}|g" ${FILESDIR}/MESSAGE.in > ${PKGMESSAGE}
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/testing ${PREFIX}/${ANGBANDBIN}
- ${MKDIR} ${PREFIX}/${ANGBANDLIB}
- ${CP} -rp ${WRKSRC}/lib/* ${PREFIX}/${ANGBANDLIB}
- ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}/lib
-.if defined(USE_Z_SCORES)
- test -f ${PREFIX}/${ANGBANDLIB}/apex/scores.raw || \
- ${CP} ${PREFIX}/${ANGBANDLIB}/apex/z_scores.raw \
- ${ANGBANDLIB}/apex/scores.raw
-.else
- test -f ${PREFIX}/${ANGBANDLIB}/apex/scores.raw || \
- ${TOUCH} ${PREFIX}/${ANGBANDLIB}/apex/scores.raw
-.endif
+post-install:
(cd ${PREFIX}/${ANGBANDLIB} && \
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} apex data ; \
${CHMOD} 755 . ; \
@@ -80,12 +42,7 @@ do-install:
${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}
-post-build:
- @${RM} -f ${PLIST}
-.for i in pkg-plist.a ${JA_PLIST} pkg-plist.b
- @${CAT} ${PKGDIR}/${i} >> ${PLIST}
-.endfor
-
.include <bsd.port.mk>
OpenPOWER on IntegriCloud