mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
7acef1cd7a
spelled out (many of which are ${PKGDIR}/MESSAGE -> ${PKGMESSAGE} type fixes that shouldn't have been necessary) and the string "/pkg/" appear.
61 lines
1.8 KiB
Makefile
61 lines
1.8 KiB
Makefile
# New ports collection makefile for: nethack
|
|
# Date created: 13 February 1995
|
|
# Whom: asami
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nethack
|
|
PORTVERSION= 1.0.5.19970924
|
|
CATEGORIES= japanese games
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
MASTER_SITE_SUBDIR= nethack
|
|
DISTNAME= ${PORTNAME}-3.2.2
|
|
|
|
PATCH_SITES= ftp://mitsuko.jaist.ac.jp/pub/nethack/
|
|
PATCHFILES= j${PORTNAME}-${PORTVERSION}.gz
|
|
|
|
MAINTAINER= max@FreeBSD.org
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${XFREE86_VERSION} == 4
|
|
BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11/XFree86-4-clients
|
|
RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients
|
|
.endif
|
|
|
|
USE_XPM= yes
|
|
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
|
|
${X11BASE}/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>
|