freebsd-ports/math/xgfe/files/patch-aa
Martin Wilke 3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- 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)
2008-04-19 17:56:05 +00:00

44 lines
1,006 B
Text

--- Makefile.freebsd-gcc.orig Sun Jun 7 13:12:00 1998
+++ Makefile.freebsd-gcc Fri May 24 04:40:34 2002
@@ -7,13 +7,14 @@
####### Compiler, tools and options
-CC = gcc
-CFLAGS = -Wall -W
-INCPATH = -I$(QTDIR)/include
-LINK = gcc
+#CC = gcc
+CXXFLAGS += ${PTHREAD_CFLAGS}
+QTDIR = $(QT_PREFIX)
+INCPATH = -I$(LOCALBASE)/include
+LINK = $(CXX)
LFLAGS =
-LIBS = -L$(QTDIR)/lib -lqt -L/usr/X11R6/lib -lX11
-MOC = moc
+LIBS = -L$(LOCALBASE)/lib -lqt-mt -lX11 ${PTHREAD_LIBS}
+MOC = ${QTDIR}/bin/moc
####### Files
@@ -254,16 +255,16 @@
.SUFFIXES: .cpp .cxx .cc .C .c
.cpp.o:
- $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
- $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
- $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
- $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<