1 ################################################################################
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)"
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
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
36 $(eval
$(generic-package
))