mesa3d-headers: remove installation of OpenVG headers
[buildroot-gz.git] / package / libglew / libglew.mk
blob7af3affb9180e5b5175090f0a6df72e82fced14c
1 ################################################################################
3 # libglew
5 ################################################################################
7 LIBGLEW_VERSION = 2.0.0
8 LIBGLEW_SOURCE = glew-$(LIBGLEW_VERSION).tgz
9 LIBGLEW_SITE = http://sourceforge.net/projects/glew/files/glew/$(LIBGLEW_VERSION)
10 LIBGLEW_LICENSE = BSD-3c, MIT
11 LIBGLEW_LICENSE_FILES = LICENSE.txt
12 LIBGLEW_INSTALL_STAGING = YES
13 LIBGLEW_DEPENDENCIES = libgl xlib_libX11 xlib_libXext xlib_libXi xlib_libXmu
15 # using $TARGET_CONFIGURE_OPTS breaks compilation
16 define LIBGLEW_BUILD_CMDS
17 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
18 GLEW_DEST="/usr" LIBDIR="/usr/lib" \
19 AR="$(TARGET_AR)" CC="$(TARGET_CC)" \
20 LD="$(TARGET_CC)" STRIP="$(TARGET_STRIP)" \
21 POPT="$(TARGET_CFLAGS)" LDFLAGS.EXTRA="$(TARGET_LDFLAGS)"
22 endef
24 define LIBGLEW_INSTALL_STAGING_CMDS
25 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
26 GLEW_DEST="$(STAGING_DIR)/usr" LIBDIR="$(STAGING_DIR)/usr/lib" \
27 $(TARGET_CONFIGURE_OPTS) install
28 endef
30 define LIBGLEW_INSTALL_TARGET_CMDS
31 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
32 GLEW_DEST="$(TARGET_DIR)/usr" LIBDIR="$(TARGET_DIR)/usr/lib" \
33 $(TARGET_CONFIGURE_OPTS) install
34 endef
36 $(eval $(generic-package))