From: Erwin Rol <[email protected]> Signed-off-by: Erwin Rol <[email protected]> --- rules/glew.in | 17 +++++++++++ rules/glew.make | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+), 0 deletions(-) create mode 100644 rules/glew.in create mode 100644 rules/glew.make
diff --git a/rules/glew.in b/rules/glew.in new file mode 100644 index 0000000..0d2f2f4 --- /dev/null +++ b/rules/glew.in @@ -0,0 +1,17 @@ +## SECTION=multimedia_xorg_support_libs + +config GLEW + bool + select XORG_LIB_X11 + select XORG_SERVER_EXT_GLX + select MESALIB + prompt "glew" + help + The OpenGL Extension Wrangler Library (GLEW) is a cross-platform + open-source C/C++ extension loading library. GLEW provides + efficient run-time mechanisms for determining which OpenGL + extensions are supported on the target platform. OpenGL core + and extension functionality is exposed in a single header file. + GLEW has been tested on a variety of operating systems, + including Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris. + diff --git a/rules/glew.make b/rules/glew.make new file mode 100644 index 0000000..209f723 --- /dev/null +++ b/rules/glew.make @@ -0,0 +1,87 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 by Erwin Rol <[email protected]> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_GLEW) += glew + +# +# Paths and names +# +GLEW_VERSION := 1.5.2 +GLEW := glew-$(GLEW_VERSION) +GLEW_SUFFIX := tgz +GLEW_URL := $(PTXCONF_SETUP_SFMIRROR)/glew/$(GLEW_VERSION)/$(GLEW).$(GLEW_SUFFIX) +GLEW_SOURCE := $(SRCDIR)/$(GLEW).$(GLEW_SUFFIX) +GLEW_DIR := $(BUILDDIR)/$(GLEW) +GLEW_LICENSE := unknown + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(GLEW_SOURCE): + @$(call targetinfo) + @$(call get, GLEW) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +GLEW_CONF_TOOL := NO + +# +# The makefile expects ld == gcc, so we set the tools +# seperately and not use the CROSS_TOOLS variable +# +GLEW_MAKE_OPT := \ + CC=$(CROSS_CC) \ + LD=$(CROSS_CC) \ + AR=$(CROSS_AR) \ + STRIP=$(CROSS_STRIP) \ + CFLAGS.EXTRA='$(CROSS_CPPFLAGS)' \ + LDFLAGS.EXTRA='$(CROSS_LDFLAGS)' \ + LDFLAGS.GL='`$(CROSS_ENV) eval $$PKG_CONFIG --libs glu`' \ + GLEW_DEST=$(GLEW_PKGDIR)/usr \ + BINDIR=$(GLEW_PKGDIR)/usr/bin \ + LIBDIR=$(GLEW_PKGDIR)/usr/lib \ + INCDIR=$(GLEW_PKGDIR)/usr/include/GL + + +GLEW_INSTALL_OPT := \ + $(GLEW_MAKE_OPT) \ + install + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/glew.targetinstall: + @$(call targetinfo) + + @$(call install_init, glew) + @$(call install_fixup, glew,PACKAGE,glew) + @$(call install_fixup, glew,PRIORITY,optional) + @$(call install_fixup, glew,VERSION,$(GLEW_VERSION)) + @$(call install_fixup, glew,SECTION,base) + @$(call install_fixup, glew,AUTHOR,"Erwin Rol <[email protected]>") + @$(call install_fixup, glew,DEPENDS,) + @$(call install_fixup, glew,DESCRIPTION,missing) + + @$(call install_copy, glew, 0, 0, 0644, -, /usr/lib/libGLEW.so.1.5.2) + @$(call install_link, glew, libGLEW.so.1.5.2, /usr/lib/libGLEW.so.1) + @$(call install_link, glew, libGLEW.so.1.5.2, /usr/lib/libGLEW.so) + + @$(call install_finish, glew) + + @$(call touch) + +# vim: syntax=make -- 1.6.0.6 -- ptxdist mailing list [email protected]
