![Bernd Kuhls](/assets/img/avatar_default.png)
"The inclusion of GLU is historical. [...] It's not needed for GLEW to build or run, but it's opt-out that reason. I'd recommend using -DGLEW_NO_GLU since GLU is rarely seen in modern codebases nowadays." https://github.com/nigels-com/glew/issues/192#issuecomment-411641657 This patch prevents libglu being added to the "Requires:" section of glew.pc fixing libglew detection in the supertuxkart package -- Checking for module 'glew>=2.1' -- Package 'glu', required by 'glew', not found after libglu is removed as dependency of supertuxkart. Supertuxkart already uses -DGLEW_NO_GLU: https://github.com/supertuxkart/stk-code/blob/master/CMakeLists.txt#L224 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
40 lines
1.3 KiB
Makefile
40 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# libglew
|
|
#
|
|
################################################################################
|
|
|
|
LIBGLEW_VERSION = 2.1.0
|
|
LIBGLEW_SOURCE = glew-$(LIBGLEW_VERSION).tgz
|
|
LIBGLEW_SITE = http://sourceforge.net/projects/glew/files/glew/$(LIBGLEW_VERSION)
|
|
LIBGLEW_LICENSE = BSD-3-Clause, MIT
|
|
LIBGLEW_LICENSE_FILES = LICENSE.txt
|
|
LIBGLEW_INSTALL_STAGING = YES
|
|
LIBGLEW_DEPENDENCIES = libgl xlib_libX11 xlib_libXext xlib_libXi xlib_libXmu
|
|
|
|
# using $TARGET_CONFIGURE_OPTS breaks compilation
|
|
define LIBGLEW_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
GLEW_NO_GLU="-DGLEW_NO_GLU" \
|
|
GLEW_DEST="/usr" LIBDIR="/usr/lib" \
|
|
AR="$(TARGET_AR)" CC="$(TARGET_CC)" \
|
|
LD="$(TARGET_CC)" STRIP="$(TARGET_STRIP)" \
|
|
POPT="$(TARGET_CFLAGS)" LDFLAGS.EXTRA="$(TARGET_LDFLAGS)"
|
|
endef
|
|
|
|
define LIBGLEW_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
GLEW_NO_GLU="-DGLEW_NO_GLU" \
|
|
GLEW_DEST="$(STAGING_DIR)/usr" LIBDIR="$(STAGING_DIR)/usr/lib" \
|
|
$(TARGET_CONFIGURE_OPTS) install
|
|
endef
|
|
|
|
define LIBGLEW_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
GLEW_NO_GLU="-DGLEW_NO_GLU" \
|
|
GLEW_DEST="$(TARGET_DIR)/usr" LIBDIR="$(TARGET_DIR)/usr/lib" \
|
|
$(TARGET_CONFIGURE_OPTS) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|