2000-04-09 13:35:57 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2000/04/09 17:36:32 espie Exp $
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
DISTNAME= slash-e8
|
|
|
|
CATEGORIES= games
|
2000-03-24 17:11:32 -05:00
|
|
|
NEED_VERSION= 1.121
|
2000-04-09 13:35:57 -04:00
|
|
|
FAKE=No
|
1999-09-28 15:07:33 -04:00
|
|
|
MASTER_SITES0= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITES1= http://www.rz.tu-ilmenau.de/~wi019/Slash/
|
1999-03-06 22:05:15 -05:00
|
|
|
MASTER_SITE_SUBDIR= nethack
|
1999-09-28 15:07:33 -04:00
|
|
|
DISTFILES= nethack-3.2.2.tar.gz:0 Slash-Unix.tar.gz:1
|
1998-07-28 21:22:23 -04:00
|
|
|
|
1999-09-28 15:07:33 -04:00
|
|
|
|
|
|
|
MAINTAINER= espie@openbsd.org
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2000-02-12 03:02:07 -05:00
|
|
|
LICENSE_TYPE= GPL
|
2000-02-15 00:03:51 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= YES
|
|
|
|
PERMIT_PACKAGE_FTP= YES
|
|
|
|
PERMIT_DISTFILES_CDROM= YES
|
|
|
|
PERMIT_DISTFILES_FTP= YES
|
2000-02-12 03:02:07 -05:00
|
|
|
|
1998-07-28 21:22:23 -04:00
|
|
|
USE_GMAKE= yes
|
1998-11-08 20:49:54 -05:00
|
|
|
USE_X11= yes
|
1998-07-28 21:22:23 -04:00
|
|
|
|
1999-05-09 17:51:50 -04:00
|
|
|
NHDIR= ${PREFIX}/lib/slashdir
|
|
|
|
MAKE_ENV+= NHDIR=${NHDIR}
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
post-extract:
|
2000-02-10 20:09:59 -05:00
|
|
|
@cd ${WRKDIR}; mv nethack-3.2.2 ${DISTNAME}
|
|
|
|
@cd ${WRKDIR}; mv dat/* ${DISTNAME}/dat
|
|
|
|
@cp ${FILESDIR}/blkmar.des ${WRKSRC}/dat
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
pre-patch:
|
1999-09-28 15:07:33 -04:00
|
|
|
@cd ${WRKSRC}; ${PATCH} -p1 -s < ${WRKDIR}/slashe8.dif
|
|
|
|
@cd ${WRKSRC}; ${PATCH} -p1 -s < ${WRKDIR}/e8p1.dif
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC}/sys/unix; ${SH} setup.sh
|
|
|
|
|
|
|
|
post-install:
|
2000-02-10 20:09:59 -05:00
|
|
|
@mkdir -p ${PREFIX}/lib/X11/fonts/hack
|
|
|
|
@mkdir -p ${PREFIX}/share/doc/nethack
|
1999-09-28 15:07:33 -04:00
|
|
|
@cd ${WRKSRC}/doc; ${CHMOD} 644 *.6
|
1998-07-28 21:22:23 -04:00
|
|
|
@cd ${WRKSRC}/doc; PREFIX='${PREFIX}' INSTALL_MAN='${INSTALL_MAN}' ${MAKE} manpages
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/share/doc/nethack
|
1999-09-28 15:07:33 -04:00
|
|
|
@cd ${WRKSRC}/win/X11 && \
|
2000-02-10 20:09:59 -05:00
|
|
|
sed -e "s/^NetHack/Slash/; s/^!NetHack/!Slash/" <NetHack.ad > Slash && \
|
1999-05-09 17:51:50 -04:00
|
|
|
${INSTALL_DATA} Slash ${PREFIX}/lib/X11/app-defaults && \
|
1999-09-28 15:07:33 -04:00
|
|
|
${X11BASE}/bin/bdftopcf ibm.bdf | /usr/bin/gzip > ibm.pcf.gz && \
|
|
|
|
${X11BASE}/bin/bdftopcf nh10.bdf | /usr/bin/gzip > nh10.pcf.gz && \
|
1998-07-28 21:22:23 -04:00
|
|
|
${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
|
2000-02-10 20:09:59 -05:00
|
|
|
@cat ${PKGDIR}/DESCR
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|