summaryrefslogtreecommitdiff
path: root/games/nethack34
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-01-12 02:08:49 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-01-12 02:08:49 +0000
commitde857028c16545c9bd3f37438358619144232743 (patch)
tree82ce9167f75036210ee60e1d4d93cdfbdc09c304 /games/nethack34
parentFix building on sparc64 and alpha. (diff)
Update games/nethack34:
- Support QT3 - Add knob for WITHOUT_SHELL PR: 41768 46939 Submitted by: User & <freebsd@stevenwills.com>, KATO Tsuguru <tkato@prontomail.com>
Notes
Notes: svn path=/head/; revision=72948
Diffstat (limited to 'games/nethack34')
-rw-r--r--games/nethack34/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/games/nethack34/Makefile b/games/nethack34/Makefile
index aaa9a84d27a7..fed50efc0645 100644
--- a/games/nethack34/Makefile
+++ b/games/nethack34/Makefile
@@ -37,10 +37,12 @@ LIB_DEPENDS+= gnugetopt:${PORTSDIR}/devel/libgnugetopt
USE_GNOME= yes
GRAPHICS= GNOME_GRAPHICS
.elif defined(WITH_QT_GRAPHICS)
+PORTREVISION= 1
PKGNAMESUFFIX= -qt
-USE_QT_VER= 2
-MAKE_ENV+= QTCPPFLAGS="${QTCPPFLAGS}" QTCFGLIBS="${QTCFGLIBS}" \
- MOC="${MOC}" LIBQT="-l${QTNAME}"
+USE_QT_VER= 3
+MAKE_ENV+= QTCPPFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \
+ QTCFGLIBS="${QTCFGLIBS} ${PTHREAD_LIBS}" \
+ MOC="${MOC}" LIBQT="-lqt-mt"
GRAPHICS= QT_GRAPHICS
.elif defined(WITH_TTY_GRAPHICS) || defined(WITHOUT_X11)
PKGNAMESUFFIX= -nox11
@@ -76,6 +78,9 @@ post-patch:
.endfor
${REINPLACE_CMD} -e 's|<regex.h>|<gnuregex.h>|g' ${WRKSRC}/src/sounds.c
${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/win/Qt/qt_win.cpp
+.if defined(WITHOUT_SHELL)
+ @${REINPLACE_CMD} -e 's|#define SHELL|/* #define SHELL|' ${WRKSRC}/include/unixconf.h
+.endif
pre-configure:
@cd ${WRKSRC}/sys/unix; ${SH} setup.sh