pkgsrc-ng/emulators/free42/patches/patch-gtk_Makefile
2014-08-11 13:27:10 +02:00

19 lines
933 B
Plaintext

$NetBSD: patch-gtk_Makefile,v 1.1 2014/03/10 08:38:25 he Exp $
Remove references to X11 headers and libs, allow them to
be controlled by pkgsrc. Also allow CXXFLAGS to be added to.
--- gtk/Makefile.orig 2013-12-09 00:49:20.000000000 +0000
+++ gtk/Makefile
@@ -15,8 +15,8 @@
# along with this program; if not, see http://www.gnu.org/licenses/.
###############################################################################
-CXXFLAGS := -MMD -Wall -Wno-parentheses -Wno-write-strings -g -I/usr/X11R6/include -fno-exceptions -fno-rtti $(shell pkg-config --cflags gtk+-2.0) -DVERSION="\"$(shell cat ../VERSION)\""
-LDFLAGS = -L/usr/X11R6/lib
+CXXFLAGS_PRE := -MMD -Wall -Wno-parentheses -Wno-write-strings -g -fno-exceptions -fno-rtti $(shell pkg-config --cflags gtk+-2.0) -DVERSION="\"$(shell cat ../VERSION)\""
+CXXFLAGS += ${CXXFLAGS_PRE}
LIBS := -lXmu $(shell pkg-config --libs gtk+-2.0)
ifeq "$(shell uname -s)" "Linux"