freebsd-ports/games/noegnud-nethack-deet/Makefile
Pav Lucistnik b3ed5741b5 noeGNUd aims to be the ultimate User Interface ( UI ) for nethack. comibining
character mode, 2D tilesets and 3d graphics, all interchangeable at runtime to
allow the serious nethack player ultimate freedom of interface to the game that
allows ultimate freedom of gameplay and imagination.

noegnud-data is the foundamental data for noeGNUd which all noeGNUd games
depend on it. noegnud-nethack, noegnud-nethack-deet, noegnud-slashem, and
noegnud-littlehack are the four variant games that noeGNUd support.
noegnud-addons installs tilesets and sound themes.

PR:		ports/65318
Submitted by:	Leland Wang <llwang@infor.org>
2005-02-18 13:12:51 +00:00

66 lines
1.9 KiB
Makefile

# New ports collection makefile for: noegnud-nethack-deet
# Date created: 7 April 2004
# Whom: Leland Wang <llwang@infor.org>
#
# $FreeBSD$
#
PORTNAME= noegnud
PORTVERSION= 0.8.3
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}:noegnud,nethack
MASTER_SITE_SUBDIR= ${PORTNAME}/:noegnud \
nethack/:nethack
PKGNAMESUFFIX= -nethack-deet
DISTFILES= ${DISTNAME}_linux_src-minimal${EXTRACT_SUFX}:noegnud \
nethack-342.tgz:nethack
EXTRACT_ONLY= ${DISTNAME}_linux_src-minimal${EXTRACT_SUFX}
MAINTAINER= llwang@infor.org
COMMENT= The noeGNUd UI for Nethack with DeeT's hack font patch
RUN_DEPENDS= ${LOCALBASE}/share/${NOEGNUDVERSION}/data/gui:${PORTSDIR}/games/noegnud-data
NOEGNUDVERSION= ${PORTNAME}-0.8.0
USE_BISON= yes
USE_GL= yes
WANT_SDL= yes
USE_SDL= sdl image mixer
WRKSRC= ${WRKDIR}/${DISTNAME}/variants
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
ALL_TARGET= nh342-dt
INSTALL_TARGET= install_nh342-dt
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 502103
USE_REINPLACE= yes
.endif
pre-everything::
.if ${HAVE_SDL}
@${ECHO_MSG} "This port depends on SDL with OpenGL support."
@${ECHO_MSG} "If your SDL does not support OpenGL, hit ^C now and reinstall SDL"
@${ECHO_MSG} "with OpenGL support turned on."
.endif
post-extract:
@${CP} ${DISTDIR}/nethack-342.tgz ${WRKSRC}/tarballs
(cd ${WRKSRC} && ${MAKE} nethack-3.4.2-deet)
post-patch:
(cd ${WRKSRC} && ${MAKE} ${NOEGNUDVERSION}-nethack-3.4.2-deet)
@(${PATCH} ${PATCH_ARGS} < ${FILESDIR}/noegnud-nethack-deet.patch)
.if ${OSVERSION} < 502103
@${REINPLACE_CMD} -e 's/regex\.h/gnuregex\.h/' \
${WRKSRC}/nethack-3.4.2-deet/src/sounds.c \
${PATCH_WRKSRC}/noegnud/noegnud_textcolour.c \
${PATCH_WRKSRC}/noegnud/noegnud_textcolour.h \
${PATCH_WRKSRC}/noegnud/noegnud_textcolouring.c
.endif
do-configure:
(cd ${WRKSRC} && ${MAKE} ${NOEGNUDVERSION}-nethack-3.4.2-deet/Makefile)
.include <bsd.port.post.mk>