mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
3e4ed01146
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+ Thanks to all Helpers: Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr, ehaupt, nox, itetcu, flz, pav PR: 116263 Tested on: pointyhat Approved by: portmgr (pav)
125 lines
3.7 KiB
Plaintext
125 lines
3.7 KiB
Plaintext
diff -ruN sys.orig/unix/Makefile.src sys/unix/Makefile.src
|
|
--- sys.orig/unix/Makefile.src Sun Dec 7 15:39:13 2003
|
|
+++ sys/unix/Makefile.src Wed Jun 30 08:27:32 2004
|
|
@@ -146,19 +146,29 @@
|
|
# directories. The ones given below is the usual spot for linux systems.
|
|
# The paths are for glibconfig.h and gnomesupport.h respectively.
|
|
#
|
|
-GNOMEINC=-I/usr/lib/glib/include -I/usr/lib/gnome-libs/include -I../win/gnome
|
|
+GNOMEINC= $(shell ${GNOME_CONFIG} --cflags gnomeui)
|
|
|
|
# flags for debugging:
|
|
# CFLAGS = -g -I../include
|
|
|
|
-CFLAGS = -O -I../include
|
|
+CFLAGS += -I../include
|
|
+ifeq ("$(GRAPHICS)","X11_GRAPHICS")
|
|
+CFLAGS += -DX11_GRAPHICS -I${LOCALBASE}/include
|
|
+endif
|
|
+ifeq ("$(GRAPHICS)","QT_GRAPHICS")
|
|
+CFLAGS += -DQT_GRAPHICS
|
|
+endif
|
|
+ifeq ("$(GRAPHICS)","GNOME_GRAPHICS")
|
|
+CFLAGS += -DGNOME_GRAPHICS ${CPPFLAGS}
|
|
+endif
|
|
+
|
|
LFLAGS =
|
|
|
|
# The Qt and Be window systems are written in C++, while the rest of
|
|
# NetHack is standard C. If using Qt, uncomment the LINK line here to get
|
|
# the C++ libraries linked in.
|
|
-CXXFLAGS = $(CFLAGS) -I. -I$(QTDIR)/include
|
|
-CXX=g++
|
|
+CXXFLAGS += -I. -I../include ${QTCPPFLAGS}
|
|
+#CXX=g++
|
|
#LINK=g++
|
|
# For cross-compiling, eg. with gcc on Linux (see also CC further up):
|
|
#CXX=arm-linux-g++
|
|
@@ -215,7 +225,26 @@
|
|
#
|
|
#
|
|
WINSRC = $(WINTTYSRC)
|
|
+ifeq ("$(GRAPHICS)","X11_GRAPHICS")
|
|
+WINSRC += $(WINX11SRC)
|
|
+endif
|
|
+ifeq ("$(GRAPHICS)","QT_GRAPHICS")
|
|
+WINSRC += $(WINQTSRC)
|
|
+endif
|
|
+ifeq ("$(GRAPHICS)","GNOME_GRAPHICS")
|
|
+WINSRC += $(WINGNOMESRC)
|
|
+endif
|
|
+
|
|
WINOBJ = $(WINTTYOBJ)
|
|
+ifeq ("$(GRAPHICS)","X11_GRAPHICS")
|
|
+WINOBJ += $(WINX11OBJ)
|
|
+endif
|
|
+ifeq ("$(GRAPHICS)","QT_GRAPHICS")
|
|
+WINOBJ += $(WINQTOBJ)
|
|
+endif
|
|
+ifeq ("$(GRAPHICS)","GNOME_GRAPHICS")
|
|
+WINOBJ += $(WINGNOMEOBJ)
|
|
+endif
|
|
|
|
# on some systems the termcap library is in -ltermcap or -lcurses
|
|
# on 386 Xenix, the -ltermlib tputs() seems not to work; use -lcurses instead
|
|
@@ -231,23 +260,23 @@
|
|
# WINTTYLIB = -lcurses
|
|
# WINTTYLIB = -lcurses16
|
|
# WINTTYLIB = -lncurses
|
|
WINTTYLIB = -ltermlib
|
|
#
|
|
# libraries for X11
|
|
# If USE_XPM is defined in config.h, you will also need -lXpm here.
|
|
-WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11
|
|
+WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -L${LOCALBASE}/lib
|
|
# WINX11LIB = -lXaw -lXmu -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
|
|
-WINQTLIB = -L$(QTDIR)/lib -lqt
|
|
+WINQTLIB = ${QTCFGLIBS} ${LIBQT}
|
|
#
|
|
# libraries for KDE (with Qt)
|
|
WINKDELIB = -lkdecore -lkdeui -lXext
|
|
#
|
|
# libraries for Gnome
|
|
-WINGNOMELIB = -lgnomeui -lgnome -lart_lgpl -lgtk -lgdk -lpopt
|
|
+WINGNOMELIB = $(shell ${GNOME_CONFIG} --libs gnomeui) ${LDFLAGS}
|
|
#
|
|
# libraries for Gem port
|
|
WINGEMLIB = -le_gem -lgem
|
|
@@ -256,6 +285,15 @@
|
|
WINBELIB = -lbe
|
|
|
|
WINLIB = $(WINTTYLIB)
|
|
+ifeq ("$(GRAPHICS)","X11_GRAPHICS")
|
|
+WINLIB += $(WINX11LIB)
|
|
+endif
|
|
+ifeq ("$(GRAPHICS)","QT_GRAPHICS")
|
|
+WINLIB += $(WINQTLIB)
|
|
+endif
|
|
+ifeq ("$(GRAPHICS)","GNOME_GRAPHICS")
|
|
+WINLIB += $(WINGNOMELIB)
|
|
+endif
|
|
|
|
# any other strange libraries your system needs (for Sysunix only -- the more
|
|
# specialized targets should already be right)
|
|
@@ -461,13 +499,13 @@
|
|
|
|
# Qt windowport meta-object-compiler output
|
|
qt_kde0.moc: ../include/qt_kde0.h
|
|
- $(QTDIR)/bin/moc -o qt_kde0.moc ../include/qt_kde0.h
|
|
+ ${MOC} -o qt_kde0.moc ../include/qt_kde0.h
|
|
|
|
qt_win.moc: ../include/qt_win.h
|
|
- $(QTDIR)/bin/moc -o qt_win.moc ../include/qt_win.h
|
|
+ ${MOC} -o qt_win.moc ../include/qt_win.h
|
|
|
|
qttableview.moc: ../include/qttableview.h
|
|
- $(QTDIR)/bin/moc -o qttableview.moc ../include/qttableview.h
|
|
+ ${MOC} -o qttableview.moc ../include/qttableview.h
|
|
|
|
$(MAKEDEFS): ../util/makedefs.c $(CONFIG_H) ../include/permonst.h \
|
|
../include/objclass.h ../include/monsym.h \
|