freebsd-ports/x11-toolkits/gnocl/files/patch-src_Makefile
Pietro Cerutti 648d1cac5c - Fix build with Tcl != 8.6
Reported by:	bapt
2013-02-06 09:36:00 +00:00

20 lines
743 B
Text

--- src/Makefile.orig 2013-01-31 10:52:21.000000000 +0100
+++ src/Makefile 2013-02-01 14:35:59.000000000 +0100
@@ -16,13 +16,12 @@
TCL_VERSION := $(shell echo 'puts $$tcl_version' | tclsh)
ADDCFLAGS := -DVERSION=\"$(VERSION)\" \
- -DUSE_TCL_STUBS $(shell pkg-config --cflags gtk+-2.0) \
- -I/usr/include/tcl$(TCL_VERSION) \
- -I/usr/include/libglade-2.0
+ -DUSE_TCL_STUBS $(shell pkg-config --cflags gtk+-2.0 libglade-2.0 gtk+-unix-print-2.0) \
+ -I%%LOCALBASE%%/include/tcl$(TCL_VERSION)
LIBS := $(shell pkg-config \
- --libs gtk+-2.0 libglade-2.0 libnotify) \
- -ltclstub$(TCL_VERSION)
+ --libs gtk+-2.0 gtk+-unix-print-2.0 libglade-2.0 libnotify) \
+ %%LOCALBASE%%/lib/libtclstub%%SHORT_TCL_VER%%.a
GTK_OBJ := \
aboutDialog.o \