summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-mud/gmudix/files/gmudix-1.0-as-needed.patch')
-rw-r--r--games-mud/gmudix/files/gmudix-1.0-as-needed.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/games-mud/gmudix/files/gmudix-1.0-as-needed.patch b/games-mud/gmudix/files/gmudix-1.0-as-needed.patch
new file mode 100644
index 000000000000..838376ef256f
--- /dev/null
+++ b/games-mud/gmudix/files/gmudix-1.0-as-needed.patch
@@ -0,0 +1,28 @@
+--- configure.in
++++ configure.in
+@@ -8,7 +8,8 @@
+ AC_PROG_MAKE_SET
+
+ dnl Checks for libraries.
+-PKG_CHECK_MODULES(BASE_DEPENDENCIES, gtk+-2.0 >= 2.0.0)
++PKG_CHECK_MODULES(GTK, gtk+-2.0)
++PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
+
+ dnl Checks for header files.
+ AC_HEADER_STDC
+--- src/Makefile.am
++++ src/Makefile.am
+@@ -1,10 +1,5 @@
+ bin_PROGRAMS = gmudix
+ gmudix_SOURCES = alias.c commands.c file.c gui_alias.c gui_capture.c gui_character.c gui_color.c gui_font.c gui_general.c gui_macro.c gui_main.c gui_path.c gui_preferences.c gui_tab.c gui_timer.c gui_trigger.c gui_user.c gui_variable.c history.c log.c macro.c mccp.c mudix.c net.c path.c process.c string.c tabs.c telnet.c timer.c trigger.c user.c variable.c
+-INCLUDES = -Wall -I.. -I../include `pkg-config --cflags gtk+-2.0`
+-gmudix_LDFLAGS = -lz `pkg-config --libs gtk+-2.0` `pkg-config --libs gthread-2.0`
+-
+-if DEBUG_SYMBOLS
+-CFLAGS := $(CFLAGS) -O2 -g
+-else
+-CFLAGS := $(CFLAGS) -O2
+-endif
++AM_CFLAGS = -Wall
++INCLUDES = -I.. -I../include $(GTK_CFLAGS) $(GTHREAD_CFLAGS)
++LDADD = -lz $(GTK_LIBS) $(GTHREAD_LIBS)