1995-05-14 04:35:19 +02:00
|
|
|
# New ports collection makefile for: nethack
|
|
|
|
# Date created: 13 February 1995
|
|
|
|
# Whom: asami
|
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1995-05-14 04:35:19 +02:00
|
|
|
#
|
|
|
|
|
2000-04-11 16:15:53 +02:00
|
|
|
PORTNAME= nethack
|
|
|
|
PORTVERSION= 1.0.5.19970924
|
2009-01-23 17:28:36 +01:00
|
|
|
PORTREVISION= 4
|
1996-11-11 11:13:07 +01:00
|
|
|
CATEGORIES= japanese games
|
2002-03-31 15:10:50 +02:00
|
|
|
MASTER_SITES= ftp://ftp.nethack.org/pub/nethack/nh322/src/ \
|
|
|
|
ftp://ftp.wtower.com/nethack/sources/
|
2000-04-11 16:15:53 +02:00
|
|
|
DISTNAME= ${PORTNAME}-3.2.2
|
1995-05-14 04:35:19 +02:00
|
|
|
|
1996-11-30 02:06:18 +01:00
|
|
|
PATCH_SITES= ftp://mitsuko.jaist.ac.jp/pub/nethack/
|
2000-04-11 16:15:53 +02:00
|
|
|
PATCHFILES= j${PORTNAME}-${PORTVERSION}.gz
|
1995-05-14 04:35:19 +02:00
|
|
|
|
2003-05-22 05:24:22 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A dungeon explorin', slashin', hackin' game
|
1996-08-30 13:07:40 +02:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf
|
|
|
|
RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
|
|
|
|
mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
|
2004-07-23 22:27:07 +02:00
|
|
|
|
2002-07-07 18:47:13 +02:00
|
|
|
NO_LATEST_LINK= yes
|
|
|
|
|
2009-04-08 14:17:47 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/ja/nethack
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/ja/nethack
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
.endif
|
|
|
|
|
2000-09-12 15:04:00 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-03-11 16:57:05 +01:00
|
|
|
USE_XORG= xaw xpm
|
1995-05-14 04:35:19 +02:00
|
|
|
USE_GMAKE= yes
|
1996-11-13 13:41:39 +01:00
|
|
|
MAN6= dlb.6 dgn_comp.6 lev_comp.6 nethack.6 recover.6
|
1995-05-14 04:35:19 +02:00
|
|
|
|
|
|
|
pre-configure:
|
1997-07-12 18:53:39 +02:00
|
|
|
@cd ${WRKSRC}/sys/unix; ${SH} setup.sh
|
1995-05-14 04:35:19 +02:00
|
|
|
|
|
|
|
pre-install:
|
1999-08-22 21:01:07 +02:00
|
|
|
@cd ${WRKSRC}/doc; ${CHMOD} 644 *.6
|
1996-08-30 13:07:40 +02:00
|
|
|
@cd ${WRKSRC}/doc; ${MAKE} PREFIX=${PREFIX} manpages
|
1995-05-14 04:35:19 +02:00
|
|
|
|
1998-11-22 16:40:15 +01:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/win/X11/nh_icon.xpm ${PREFIX}/lib/jnethackdir
|
2009-04-08 14:17:47 +02:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/win/X11/nethack.rc ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/win/X11/JNetHack.ad ${EXAMPLESDIR}
|
|
|
|
.for i in ibm nh10
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/win/X11/$i.bdf ${EXAMPLESDIR}
|
|
|
|
@${LOCALBASE}/bin/bdftopcf ${EXAMPLESDIR}/$i.bdf \
|
|
|
|
> ${EXAMPLESDIR}/$i.pcf
|
|
|
|
@${RM} ${EXAMPLESDIR}/$i.bdf
|
|
|
|
${GZIP_CMD} ${EXAMPLESDIR}/$i.pcf
|
|
|
|
.endfor
|
|
|
|
.endif
|
1998-11-22 16:40:15 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2009-04-08 14:17:47 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/jGuidebook.txt ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${FILESDIR}/README ${DOCSDIR}
|
1998-11-22 16:40:15 +01:00
|
|
|
.for i in README.j ChangeLog.j INSTALL.j
|
2009-04-08 14:17:47 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/$i ${DOCSDIR}
|
1998-11-22 16:40:15 +01:00
|
|
|
.endfor
|
2009-04-08 14:17:47 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1998-11-22 16:40:15 +01:00
|
|
|
.endif
|
|
|
|
|
2000-09-12 15:04:00 +02:00
|
|
|
.include <bsd.port.post.mk>
|