openbsd-ports/games/slash/Makefile
espie a813079932 Kill a large set of deprecated variables.
Thoroughly unsubtle, most mkdir -p should probably be INSTALL* at
*install stage, and echo/ECHO_MSG is somewhat unsorted.

It's quite possible I missed a few automated changes...
2000-02-11 01:09:59 +00:00

49 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2000/02/11 01:10:02 espie Exp $
DISTNAME= slash-e8
CATEGORIES= games
MASTER_SITES0= ${MASTER_SITE_GNU}
MASTER_SITES1= http://www.rz.tu-ilmenau.de/~wi019/Slash/
MASTER_SITE_SUBDIR= nethack
DISTFILES= nethack-3.2.2.tar.gz:0 Slash-Unix.tar.gz:1
NEED_VERSION= 1.121
MAINTAINER= espie@openbsd.org
USE_GMAKE= yes
USE_X11= yes
NHDIR= ${PREFIX}/lib/slashdir
MAKE_ENV+= NHDIR=${NHDIR}
post-extract:
@cd ${WRKDIR}; mv nethack-3.2.2 ${DISTNAME}
@cd ${WRKDIR}; mv dat/* ${DISTNAME}/dat
@cp ${FILESDIR}/blkmar.des ${WRKSRC}/dat
pre-patch:
@cd ${WRKSRC}; ${PATCH} -p1 -s < ${WRKDIR}/slashe8.dif
@cd ${WRKSRC}; ${PATCH} -p1 -s < ${WRKDIR}/e8p1.dif
pre-configure:
@cd ${WRKSRC}/sys/unix; ${SH} setup.sh
post-install:
@mkdir -p ${PREFIX}/lib/X11/fonts/hack
@mkdir -p ${PREFIX}/share/doc/nethack
@cd ${WRKSRC}/doc; ${CHMOD} 644 *.6
@cd ${WRKSRC}/doc; PREFIX='${PREFIX}' INSTALL_MAN='${INSTALL_MAN}' ${MAKE} manpages
${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/share/doc/nethack
@cd ${WRKSRC}/win/X11 && \
sed -e "s/^NetHack/Slash/; s/^!NetHack/!Slash/" <NetHack.ad > Slash && \
${INSTALL_DATA} Slash ${PREFIX}/lib/X11/app-defaults && \
${X11BASE}/bin/bdftopcf ibm.bdf | /usr/bin/gzip > ibm.pcf.gz && \
${X11BASE}/bin/bdftopcf nh10.bdf | /usr/bin/gzip > nh10.pcf.gz && \
${INSTALL_DATA} ibm.pcf.gz ${PREFIX}/lib/X11/fonts/hack && \
${INSTALL_DATA} nh10.pcf.gz ${PREFIX}/lib/X11/fonts/hack
${X11BASE}/bin/mkfontdir ${X11BASE}/lib/X11/fonts/hack
@cat ${PKGDIR}/DESCR
.include <bsd.port.mk>