Package: z88 / 13.0.0+dfsg2-6

70_use_pkg_config.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Use pkg-config to find gtk and glib include paths.
 update: Use gtkglext as summary pkg-config 
Author: Micah Gersten <micahg@ubuntu.com>, Gert Wollny <gewo@debian.org>
Last-Update: 2018-04-13

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -14,8 +14,11 @@
 #  MESSAGE( FATAL_ERROR "This application requires GTK. One of these components is missing. Please verify configuration")
 #ENDIF (GTK_FOUND)
 
-INCLUDE_DIRECTORIES ( /usr/include/gtk-2.0/ /usr/lib/gtk-2.0/include /usr/include/atk-1.0 /usr/include/cairo /usr/include/pango-1.0 /usr/include/glib-2.0 /usr/lib/glib-2.0/include /usr/include/pixman-1 /usr/include/freetype2 /usr/include/directfb /usr/include/libpng12 /usr/include/gtkglext-1.0 /usr/lib/gtkglext-1.0/include /usr/include/gdk-pixbuf-2.0/)
-LINK_LIBRARIES ( gtk-x11-2.0 gdk-x11-2.0 atk-1.0 pangoft2-1.0 gdk_pixbuf-2.0 m pangocairo-1.0 gio-2.0 cairo pango-1.0 freetype fontconfig gobject-2.0 gmodule-2.0 glib-2.0 GL GLU gtkglext-x11-1.0 gdkglext-x11-1.0)
+include ( FindPkgConfig )
+pkg_check_modules ( GTKGLEXT gtkglext-1.0 REQUIRED)
+
+INCLUDE_DIRECTORIES (${GTKGLEXT_INCLUDE_DIRS})
+LINK_LIBRARIES (${GTKGLEXT_LIBRARIES} m)
 
 #  GTK_INCLUDE_DIR   - Directories to include to use GTK
 #  GTK_LIBRARIES     - Files to link against to use GTK