blob: a90399ae9967da680a755851fcb3162632c5c712 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: nethack
# Date created: 13 February 1995
# Whom: asami
#
# $FreeBSD$
#
PORTNAME= nethack
PORTVERSION= 1.0.5.19970924
PORTREVISION= 4
CATEGORIES= japanese games
MASTER_SITES= ftp://ftp.nethack.org/pub/nethack/nh322/src/ \
ftp://ftp.wtower.com/nethack/sources/
DISTNAME= ${PORTNAME}-3.2.2
PATCH_SITES= ftp://mitsuko.jaist.ac.jp/pub/nethack/
PATCHFILES= j${PORTNAME}-${PORTVERSION}.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= A dungeon explorin', slashin', hackin' game
BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf
RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
NO_LATEST_LINK= yes
.include <bsd.port.pre.mk>
USE_XORG= xaw xpm
USE_GMAKE= yes
MAN6= dlb.6 dgn_comp.6 lev_comp.6 nethack.6 recover.6
pre-configure:
@cd ${WRKSRC}/sys/unix; ${SH} setup.sh
pre-install:
@cd ${WRKSRC}/doc; ${CHMOD} 644 *.6
@cd ${WRKSRC}/doc; ${MAKE} PREFIX=${PREFIX} manpages
post-install:
${INSTALL_DATA} ${WRKSRC}/win/X11/nh_icon.xpm ${PREFIX}/lib/jnethackdir
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/ja/nethack
${INSTALL_MAN} ${WRKSRC}/doc/jGuidebook.txt ${PREFIX}/share/doc/ja/nethack
${INSTALL_MAN} ${FILESDIR}/README ${PREFIX}/share/doc/ja/nethack
.for i in README.j ChangeLog.j INSTALL.j
${INSTALL_MAN} ${WRKSRC}/$i ${PREFIX}/share/doc/ja/nethack
.endfor
.endif
${MKDIR} ${PREFIX}/share/examples/ja/nethack
${INSTALL_DATA} ${WRKSRC}/win/X11/nethack.rc ${PREFIX}/share/examples/ja/nethack
${INSTALL_DATA} ${WRKSRC}/win/X11/JNetHack.ad ${PREFIX}/share/examples/ja/nethack
.for i in ibm nh10
${INSTALL_DATA} ${WRKSRC}/win/X11/$i.bdf ${PREFIX}/share/examples/ja/nethack
${LOCALBASE}/bin/bdftopcf ${PREFIX}/share/examples/ja/nethack/$i.bdf \
> ${PREFIX}/share/examples/ja/nethack/$i.pcf
${RM} ${PREFIX}/share/examples/ja/nethack/$i.bdf
${GZIP_CMD} ${PREFIX}/share/examples/ja/nethack/$i.pcf
.endfor
${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|