ports/x11/gromit/files/patch-Makefile
Alexey Dokuchaev eca5aa49bd x11/gromit: revert/redo naive and actually incorrect previous build "fix"
I've noticed that the program started to crash after commit 363f2d5681
due to missing function prototypes (guarded with GDK_DISABLE_DEPRECATED).
While I'm here, add EXAMPLES option and assume the port's maintainership.
2024-03-21 10:23:56 +00:00

8 lines
624 B
Text

--- Makefile.orig 2004-10-13 22:04:27 UTC
+++ Makefile
@@ -7,4 +7,4 @@ propertywatch: propertywatch.c
gcc -o propertywatch propertywatch.c `gtk-config --libs --cflags`
gromit: gromit.c Makefile
- gcc -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -o gromit gromit.c -Wall `pkg-config --libs --cflags gtk+-2.0`
+ ${CC} -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -o gromit gromit.c ${CFLAGS} `pkg-config --libs --cflags gtk+-2.0 x11` -lm