From: Thomas Debesse Date: Wed, 29 Sep 2021 13:42:57 +0000 (+0200) Subject: gtkglext: some fixes and improvements X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f2cd10d026749770660609e68fea8c3013cf7e72;p=xonotic%2Fnetradiant.git gtkglext: some fixes and improvements --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b2fa296e..0f766cab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ if (APPLE) endif () set(BUILTIN_GTKGLEXT_BUILT OFF CACHE INTERNAL "...") -if (EXISTS "${BUILTINS_PKGCONFIG_DIR}gtkglext-1.0.pc") +if (EXISTS "${BUILTINS_PKGCONFIG_DIR}/gtkglext-1.0.pc") set(BUILTIN_GTKGLEXT_BUILT ON) endif () @@ -373,12 +373,14 @@ if (BUILTIN_GTKGLEXT) set(GTKGLEXT_CFLAGS "$ENV{CFLAGS} ${GTKGLEXT_CFLAGS}") + + set(CONFIGURE_OPTIONS --disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf + --disable-dependency-tracking --without-x) + if (NOT CMAKE_BUILD_TYPE MATCHES Release) - set(GTKGLEXT_CFLAGS "${GTKGLEXT_CFLAGS} -g") + set(CONFIGURE_OPTIONS "${CONFIGURE_OPTIONS} --disable-debug") endif () - set(CONFIGURE_OPTIONS --disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf) - if (APPLE) set(GTKGLEXT_GIT_TAG macos) else () @@ -395,8 +397,8 @@ if (BUILTIN_GTKGLEXT) GIT_REPOSITORY https://gitlab.gnome.org/illwieckz/gtkglext.git GIT_TAG ${GTKGLEXT_GIT_TAG} BUILD_IN_SOURCE ON - CONFIGURE_COMMAND export CFLAGS=${GTKGLEXT_LDFLAGS} - CONFIGURE_COMMAND && export LDFLAGS=${GTKGLEXT_CFLAGS} + CONFIGURE_COMMAND export CFLAGS=${GTKGLEXT_CFLAGS} + CONFIGURE_COMMAND && export LDFLAGS=${GTKGLEXT_LDFLAGS} CONFIGURE_COMMAND && export NOCONFIGURE=1 CONFIGURE_COMMAND && ./autogen.sh CONFIGURE_COMMAND && ./configure --prefix "${BUILTINS_INSTALL_DIR}" ${CONFIGURE_OPTIONS}