mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
Update games/nethack34:
- Support QT3 - Add knob for WITHOUT_SHELL PR: 41768 46939 Submitted by: User & <freebsd@stevenwills.com>, KATO Tsuguru <tkato@prontomail.com>
This commit is contained in:
parent
d3eccd2d99
commit
de857028c1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=72948
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user