Merge remote-tracking branch 'origin/NetHack-3.6.0'
This commit is contained in:
@@ -201,6 +201,22 @@ WINX11OBJ = Window.o dialogs.o winX.o winmap.o winmenu.o winmesg.o \
|
||||
WINQTSRC = ../win/Qt/qt_win.cpp ../win/Qt/qt_clust.cpp ../win/Qt/qttableview.cpp
|
||||
WINQTOBJ = qt_win.o qt_clust.o qttableview.o tile.o
|
||||
#
|
||||
# Files for a Qt 4 or 5 port
|
||||
#
|
||||
WINQT4SRC = ../win/Qt4/qt4bind.cpp ../win/Qt4/qt4click.cpp \
|
||||
../win/Qt4/qt4clust.cpp ../win/Qt4/qt4delay.cpp \
|
||||
../win/Qt4/qt4glyph.cpp ../win/Qt4/qt4icon.cpp ../win/Qt4/qt4inv.cpp \
|
||||
../win/Qt4/qt4key.cpp ../win/Qt4/qt4line.cpp ../win/Qt4/qt4main.cpp \
|
||||
../win/Qt4/qt4map.cpp ../win/Qt4/qt4menu.cpp ../win/Qt4/qt4msg.cpp \
|
||||
../win/Qt4/qt4plsel.cpp ../win/Qt4/qt4rip.cpp ../win/Qt4/qt4set.cpp \
|
||||
../win/Qt4/qt4stat.cpp ../win/Qt4/qt4str.cpp ../win/Qt4/qt4streq.cpp \
|
||||
../win/Qt4/qt4svsel.cpp ../win/Qt4/qt4win.cpp ../win/Qt4/qt4xcmd.cpp \
|
||||
../win/Qt4/qt4yndlg.cpp
|
||||
WINQT4OBJ = qt4bind.o qt4click.o qt4clust.o qt4delay.o qt4glyph.o qt4icon.o \
|
||||
qt4inv.o qt4key.o qt4line.o qt4main.o qt4map.o qt4menu.o qt4msg.o \
|
||||
qt4plsel.o qt4rip.o qt4set.o qt4stat.o qt4str.o qt4streq.o qt4svsel.o \
|
||||
qt4win.o qt4xcmd.o qt4yndlg.o tile.o
|
||||
#
|
||||
# Files for a Gnome port
|
||||
#
|
||||
WINGNOMESRC = ../win/gnome/gnaskstr.c ../win/gnome/gnbind.c \
|
||||
@@ -253,9 +269,12 @@ WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11
|
||||
# WINX11LIB = -lXaw -lXmu -lXext -lXt -lXpm -lX11 -lm
|
||||
# WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -lm # BSD/OS 2.0
|
||||
#
|
||||
# libraries for Qt
|
||||
# libraries for Qt 3
|
||||
WINQTLIB = -L$(QTDIR)/lib -lqt
|
||||
#
|
||||
# libraries for Qt 4
|
||||
WINQT4LIB = `pkg-config QtGui --libs`
|
||||
#
|
||||
# libraries for KDE (with Qt)
|
||||
WINKDELIB = -lkdecore -lkdeui -lXext
|
||||
#
|
||||
@@ -360,7 +379,7 @@ GENCSRC = monstr.c vis_tab.c #tile.c
|
||||
# all windowing-system-dependent .c (for dependencies and such)
|
||||
WINCSRC = $(WINTTYSRC) $(WINX11SRC) $(WINGNOMESRC) $(WINGEMSRC)
|
||||
# all windowing-system-dependent .cpp (for dependencies and such)
|
||||
WINCXXSRC = $(WINQTSRC) $(WINBESRC)
|
||||
WINCXXSRC = $(WINQTSRC) $(WINQT4SRC) $(WINBESRC)
|
||||
|
||||
# Files for window system chaining. Requires SYSCF; include via HINTSRC/HINTOBJ
|
||||
CHAINSRC = ../win/chain/wc_chainin.c ../win/chain/wc_chainout.c \
|
||||
@@ -486,7 +505,7 @@ objects.o:
|
||||
$(CC) $(CFLAGS) -c objects.c
|
||||
@rm -f $(MAKEDEFS)
|
||||
|
||||
# Qt windowport meta-object-compiler output
|
||||
# Qt 3 windowport meta-object-compiler output
|
||||
qt_kde0.moc: ../include/qt_kde0.h
|
||||
$(QTDIR)/bin/moc -o qt_kde0.moc ../include/qt_kde0.h
|
||||
|
||||
@@ -496,6 +515,28 @@ qt_win.moc: ../include/qt_win.h
|
||||
qttableview.moc: ../include/qttableview.h
|
||||
$(QTDIR)/bin/moc -o qttableview.moc ../include/qttableview.h
|
||||
|
||||
# Qt 4 windowport meta-object-compiler output
|
||||
qt4kde0.moc : ../win/Qt4/qt4kde0.h
|
||||
$(QTDIR)/bin/moc -o qt4kde0.moc ../win/Qt4/qt4kde0.h
|
||||
qt4main.moc : ../win/Qt4/qt4main.h
|
||||
$(QTDIR)/bin/moc -o qt4main.moc ../win/Qt4/qt4main.h
|
||||
qt4map.moc : ../win/Qt4/qt4map.h
|
||||
$(QTDIR)/bin/moc -o qt4map.moc ../win/Qt4/qt4map.h
|
||||
qt4menu.moc : ../win/Qt4/qt4menu.h
|
||||
$(QTDIR)/bin/moc -o qt4menu.moc ../win/Qt4/qt4menu.h
|
||||
qt4msg.moc : ../win/Qt4/qt4msg.h
|
||||
$(QTDIR)/bin/moc -o qt4msg.moc ../win/Qt4/qt4msg.h
|
||||
qt4plsel.moc : ../win/Qt4/qt4plsel.h
|
||||
$(QTDIR)/bin/moc -o qt4plsel.moc ../win/Qt4/qt4plsel.h
|
||||
qt4set.moc : ../win/Qt4/qt4set.h
|
||||
$(QTDIR)/bin/moc -o qt4set.moc ../win/Qt4/qt4set.h
|
||||
qt4stat.moc : ../win/Qt4/qt4stat.h
|
||||
$(QTDIR)/bin/moc -o qt4stat.moc ../win/Qt4/qt4stat.h
|
||||
qt4xcmd.moc : ../win/Qt4/qt4xcmd.h
|
||||
$(QTDIR)/bin/moc -o qt4xcmd.moc ../win/Qt4/qt4xcmd.h
|
||||
qt4yndlg.moc : ../win/Qt4/qt4yndlg.h
|
||||
$(QTDIR)/bin/moc -o qt4yndlg.moc ../win/Qt4/qt4yndlg.h
|
||||
|
||||
# build monst.o and objects.o before executing '$(MAKE) makedefs'
|
||||
$(MAKEDEFS): $(FIRSTOBJ) \
|
||||
../util/makedefs.c $(CONFIG_H) ../include/permonst.h \
|
||||
@@ -737,6 +778,52 @@ qt_clust.o: ../win/Qt/qt_clust.cpp ../include/qt_clust.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt/qt_clust.cpp
|
||||
qttableview.o: ../win/Qt/qttableview.cpp ../include/qttableview.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt/qttableview.cpp
|
||||
qt4bind.o : ../win/Qt4/qt4bind.cpp $(HACK_H) ../win/Qt4/qt4bind.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4bind.cpp
|
||||
qt4click.o : ../win/Qt4/qt4click.cpp $(HACK_H) ../win/Qt4/qt4click.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4click.cpp
|
||||
qt4clust.o : ../win/Qt4/qt4clust.cpp $(HACK_H) ../win/Qt4/qt4clust.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4clust.cpp
|
||||
qt4delay.o : ../win/Qt4/qt4delay.cpp $(HACK_H) ../win/Qt4/qt4delay.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4delay.cpp
|
||||
qt4glyph.o : ../win/Qt4/qt4glyph.cpp $(HACK_H) ../win/Qt4/qt4glyph.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4glyph.cpp
|
||||
qt4icon.o : ../win/Qt4/qt4icon.cpp $(HACK_H) ../win/Qt4/qt4icon.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4icon.cpp
|
||||
qt4inv.o : ../win/Qt4/qt4inv.cpp $(HACK_H) ../win/Qt4/qt4inv.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4inv.cpp
|
||||
qt4key.o : ../win/Qt4/qt4key.cpp $(HACK_H) ../win/Qt4/qt4key.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4key.cpp
|
||||
qt4line.o : ../win/Qt4/qt4line.cpp $(HACK_H) ../win/Qt4/qt4line.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4line.cpp
|
||||
qt4main.o : ../win/Qt4/qt4main.cpp $(HACK_H) qt4main.moc ../win/Qt4/qt4main.h qt4kde0.moc
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4main.cpp
|
||||
qt4map.o : ../win/Qt4/qt4map.cpp $(HACK_H) qt4map.moc ../win/Qt4/qt4map.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4map.cpp
|
||||
qt4menu.o : ../win/Qt4/qt4menu.cpp $(HACK_H) qt4menu.moc ../win/Qt4/qt4menu.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4menu.cpp
|
||||
qt4msg.o : ../win/Qt4/qt4msg.cpp $(HACK_H) qt4msg.moc ../win/Qt4/qt4msg.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4msg.cpp
|
||||
qt4plsel.o : ../win/Qt4/qt4plsel.cpp $(HACK_H) qt4plsel.moc ../win/Qt4/qt4plsel.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4plsel.cpp
|
||||
qt4rip.o : ../win/Qt4/qt4rip.cpp $(HACK_H) ../win/Qt4/qt4rip.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4rip.cpp
|
||||
qt4set.o : ../win/Qt4/qt4set.cpp $(HACK_H) qt4set.moc ../win/Qt4/qt4set.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4set.cpp
|
||||
qt4stat.o : ../win/Qt4/qt4stat.cpp $(HACK_H) qt4stat.moc ../win/Qt4/qt4stat.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4stat.cpp
|
||||
qt4str.o : ../win/Qt4/qt4str.cpp ../win/Qt4/qt4str.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4str.cpp
|
||||
qt4streq.o : ../win/Qt4/qt4streq.cpp $(HACK_H) ../win/Qt4/qt4streq.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4streq.cpp
|
||||
qt4svsel.o : ../win/Qt4/qt4svsel.cpp $(HACK_H) ../win/Qt4/qt4svsel.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4svsel.cpp
|
||||
qt4win.o : ../win/Qt4/qt4win.cpp $(HACK_H) ../win/Qt4/qt4win.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4win.cpp
|
||||
qt4xcmd.o : ../win/Qt4/qt4xcmd.cpp $(HACK_H) qt4xcmd.moc ../win/Qt4/qt4xcmd.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4xcmd.cpp
|
||||
qt4yndlg.o : ../win/Qt4/qt4yndlg.cpp $(HACK_H) qt4yndlg.moc ../win/Qt4/qt4yndlg.h
|
||||
$(CXX) $(CXXFLAGS) -c ../win/Qt4/qt4yndlg.cpp
|
||||
wc_chainin.o: ../win/chain/wc_chainin.c $(HACK_H)
|
||||
$(CC) $(CFLAGS) -c ../win/chain/wc_chainin.c
|
||||
wc_chainout.o: ../win/chain/wc_chainout.c $(HACK_H)
|
||||
|
||||
@@ -20,8 +20,8 @@ VARDIR = $(HACKDIR)
|
||||
|
||||
POSTINSTALL=cp -n sys/unix/sysconf $(INSTDIR)/sysconf; $(CHOWN) $(GAMEUID) $(INSTDIR)/sysconf; $(CHGRP) $(GAMEGRP) $(INSTDIR)/sysconf; chmod $(VARFILEPERM) $(INSTDIR)/sysconf;
|
||||
|
||||
CFLAGS=-g -O -I../include -DNOTPARMDECL $(CFLAGS1) -DDLB
|
||||
CFLAGS1=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
|
||||
CFLAGS=-g -O -I../include -DNOTPARMDECL -DDLB
|
||||
CFLAGS+=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
|
||||
CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" -DSECURE
|
||||
CFLAGS+=-DTIMED_DELAY
|
||||
CFLAGS+=-DHACKDIR=\"$(HACKDIR)\"
|
||||
|
||||
50
sys/unix/hints/linux-qt4
Normal file
50
sys/unix/hints/linux-qt4
Normal file
@@ -0,0 +1,50 @@
|
||||
#
|
||||
# NetHack 3.6 linux-x11 $NHDT-Date: 1432512814 2015/05/25 00:13:34 $ $NHDT-Branch: master $:$NHDT-Revision: 1.12 $
|
||||
# Copyright (c) Kenneth Lorber, Kensington, Maryland, 2007.
|
||||
# NetHack may be freely redistributed. See license for details.
|
||||
#
|
||||
#-PRE
|
||||
# Linux hints file
|
||||
# This hints file provides a single-user Qt4 build for Linux, specifically
|
||||
# for Ubuntu dapper.
|
||||
|
||||
|
||||
#PREFIX=/usr
|
||||
PREFIX=$(wildcard ~)/nh/install
|
||||
HACKDIR=$(PREFIX)/games/lib/$(GAME)dir
|
||||
SHELLDIR = $(PREFIX)/games
|
||||
INSTDIR=$(HACKDIR)
|
||||
VARDIR = $(HACKDIR)
|
||||
|
||||
|
||||
POSTINSTALL= cp -n sys/unix/sysconf $(INSTDIR)/sysconf; $(CHOWN) $(GAMEUID) $(INSTDIR)/sysconf; $(CHGRP) $(GAMEGRP) $(INSTDIR)/sysconf; chmod $(VARFILEPERM) $(INSTDIR)/sysconf;
|
||||
POSTINSTALL+= bdftopcf win/X11/nh10.bdf > $(INSTDIR)/nh10.pcf; (cd $(INSTDIR); mkfontdir);
|
||||
|
||||
CFLAGS=-O -I../include -DNOTPARMDECL
|
||||
CFLAGS+=-DHACKDIR=\"$(HACKDIR)\"
|
||||
CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\"
|
||||
CFLAGS+=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
|
||||
CFLAGS+=-DTIMED_DELAY
|
||||
CFLAGS+=-DDUMPLOG
|
||||
CFLAGS+=-DCONFIG_ERROR_SECURE=FALSE
|
||||
CFLAGS+=-DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS
|
||||
CFLAGS+=`pkg-config QtGui --cflags`
|
||||
|
||||
LINK=g++
|
||||
CXX=g++
|
||||
|
||||
WINSRC = $(WINQT4SRC)
|
||||
WINOBJ = $(WINQT4OBJ)
|
||||
WINLIB = $(WINQT4LIB)
|
||||
|
||||
VARDATND = nhtiles.bmp rip.xpm nhsplash.xpm pet_mark.xbm pilemark.xbm
|
||||
|
||||
QTDIR=/usr
|
||||
|
||||
CHOWN=true
|
||||
CHGRP=true
|
||||
VARDIRPERM = 0755
|
||||
VARFILEPERM = 0600
|
||||
GAMEPERM = 0755
|
||||
|
||||
# note: needs libxt-dev libxaw7-dev libx11-dev bdftopcf
|
||||
@@ -20,10 +20,12 @@ VARDIR = $(HACKDIR)
|
||||
POSTINSTALL= cp -n sys/unix/sysconf $(INSTDIR)/sysconf; $(CHOWN) $(GAMEUID) $(INSTDIR)/sysconf; $(CHGRP) $(GAMEGRP) $(INSTDIR)/sysconf; chmod $(VARFILEPERM) $(INSTDIR)/sysconf;
|
||||
POSTINSTALL+= bdftopcf win/X11/nh10.bdf > $(INSTDIR)/nh10.pcf; (cd $(INSTDIR); mkfontdir);
|
||||
|
||||
CFLAGS=-O -I../include -DNOTPARMDECL $(CFLAGS1) $(CFLAGS3)
|
||||
CFLAGS=-O -I../include -DNOTPARMDECL
|
||||
CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\"
|
||||
CFLAGS1=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
|
||||
CFLAGS3=-DX11_GRAPHICS -DDEFAULT_WINDOW_SYS=\"X11\" -DNOTTYGRAPHICS
|
||||
CFLAGS+=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
|
||||
CFLAGS+=-DX11_GRAPHICS -DDEFAULT_WINDOW_SYS=\"X11\" -DNOTTYGRAPHICS
|
||||
CFLAGS+=-DDUMPLOG
|
||||
CFLAGS+=-DCONFIG_ERROR_SECURE=FALSE
|
||||
|
||||
LINK=$(CC)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user