mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-29 10:01:56 +00:00
Touch-ups for GLEW 1.5.2 release. Add dist-src target
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@573 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
cf0a8739ca
commit
e72fe268e8
56
Makefile
56
Makefile
@ -46,10 +46,12 @@ LIBDIR ?= $(GLEW_DEST)/lib
|
|||||||
INCDIR ?= $(GLEW_DEST)/include/GL
|
INCDIR ?= $(GLEW_DEST)/include/GL
|
||||||
SHARED_OBJ_EXT ?= o
|
SHARED_OBJ_EXT ?= o
|
||||||
TARDIR = ../glew-$(GLEW_VERSION)
|
TARDIR = ../glew-$(GLEW_VERSION)
|
||||||
TARBALL = ../glew_$(GLEW_VERSION).tar.gz
|
TARBALL = ../glew-$(GLEW_VERSION).tar.gz
|
||||||
|
|
||||||
DIST_DIR = glew-$(GLEW_VERSION)
|
DIST_DIR = glew-$(GLEW_VERSION)
|
||||||
DIST_WIN32 = glew-$(GLEW_VERSION)-win32.zip
|
DIST_WIN32 = glew-$(GLEW_VERSION)-win32.zip
|
||||||
|
DIST_SRC_ZIP = glew-$(GLEW_VERSION).zip
|
||||||
|
DIST_SRC_TGZ = glew-$(GLEW_VERSION).tgz
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
INSTALL = install
|
INSTALL = install
|
||||||
@ -168,6 +170,7 @@ tardist:
|
|||||||
mkdir $(TARDIR)
|
mkdir $(TARDIR)
|
||||||
cp -a . $(TARDIR)
|
cp -a . $(TARDIR)
|
||||||
find $(TARDIR) -name CVS -o -name .cvsignore | xargs $(RM) -r
|
find $(TARDIR) -name CVS -o -name .cvsignore | xargs $(RM) -r
|
||||||
|
find $(TARDIR) -name .svn | xargs $(RM) -r
|
||||||
$(MAKE) -C $(TARDIR) distclean
|
$(MAKE) -C $(TARDIR) distclean
|
||||||
$(MAKE) -C $(TARDIR)
|
$(MAKE) -C $(TARDIR)
|
||||||
$(MAKE) -C $(TARDIR) distclean
|
$(MAKE) -C $(TARDIR) distclean
|
||||||
@ -193,10 +196,53 @@ dist-win32:
|
|||||||
unix2dos $(TARDIR)/doc/*.txt
|
unix2dos $(TARDIR)/doc/*.txt
|
||||||
unix2dos $(TARDIR)/doc/*.html
|
unix2dos $(TARDIR)/doc/*.html
|
||||||
unix2dos $(TARDIR)/*.txt
|
unix2dos $(TARDIR)/*.txt
|
||||||
rm ../$(DIST_WIN32)
|
rm -f ../$(DIST_WIN32)
|
||||||
cd .. && zip -rv9 $(DIST_WIN32) $(DIST_DIR)
|
cd .. && zip -rv9 $(DIST_WIN32) $(DIST_DIR)
|
||||||
|
|
||||||
|
dist-src:
|
||||||
|
$(RM) -r $(TARDIR)
|
||||||
|
mkdir -p $(TARDIR)
|
||||||
|
mkdir -p $(TARDIR)/bin
|
||||||
|
mkdir -p $(TARDIR)/lib
|
||||||
|
cp -a auto $(TARDIR)
|
||||||
|
$(RM) -Rf $(TARDIR)/auto/registry
|
||||||
|
cp -a build $(TARDIR)
|
||||||
|
cp -a config $(TARDIR)
|
||||||
|
cp -a src $(TARDIR)
|
||||||
|
cp -a doc $(TARDIR)
|
||||||
|
cp -a include $(TARDIR)
|
||||||
|
cp -a *.txt $(TARDIR)
|
||||||
|
cp -a Makefile $(TARDIR)
|
||||||
|
find $(TARDIR) -name '*.o' | xargs $(RM) -r
|
||||||
|
find $(TARDIR) -name '*.pic_o' | xargs $(RM) -r
|
||||||
|
find $(TARDIR) -name '*~' | xargs $(RM) -r
|
||||||
|
find $(TARDIR) -name CVS -o -name .cvsignore | xargs $(RM) -r
|
||||||
|
find $(TARDIR) -name .svn | xargs $(RM) -r
|
||||||
|
unix2dos $(TARDIR)/config/*
|
||||||
|
unix2dos $(TARDIR)/auto/core/*
|
||||||
|
unix2dos $(TARDIR)/auto/extensions/*
|
||||||
|
find $(TARDIR) -name '*.h' | xargs unix2dos
|
||||||
|
find $(TARDIR) -name '*.c' | xargs unix2dos
|
||||||
|
find $(TARDIR) -name '*.txt' | xargs unix2dos
|
||||||
|
find $(TARDIR) -name '*.html' | xargs unix2dos
|
||||||
|
find $(TARDIR) -name '*.sh' | xargs unix2dos
|
||||||
|
find $(TARDIR) -name '*.pl' | xargs unix2dos
|
||||||
|
find $(TARDIR) -name 'Makefile' | xargs unix2dos
|
||||||
|
rm -f ../$(DIST_SRC_ZIP)
|
||||||
|
cd .. && zip -rv9 $(DIST_SRC_ZIP) $(DIST_DIR)
|
||||||
|
dos2unix $(TARDIR)/config/*
|
||||||
|
dos2unix $(TARDIR)/auto/core/*
|
||||||
|
dos2unix $(TARDIR)/auto/extensions/*
|
||||||
|
find $(TARDIR) -name '*.h' | xargs dos2unix
|
||||||
|
find $(TARDIR) -name '*.c' | xargs dos2unix
|
||||||
|
find $(TARDIR) -name '*.txt' | xargs dos2unix
|
||||||
|
find $(TARDIR) -name '*.html' | xargs dos2unix
|
||||||
|
find $(TARDIR) -name '*.sh' | xargs dos2unix
|
||||||
|
find $(TARDIR) -name '*.pl' | xargs dos2unix
|
||||||
|
find $(TARDIR) -name 'Makefile' | xargs dos2unix
|
||||||
|
cd .. && env GZIP=-9 tar cvzf $(DIST_SRC_TGZ) $(DIST_DIR)
|
||||||
|
|
||||||
extensions:
|
extensions:
|
||||||
$(MAKE) -C auto
|
$(MAKE) -C auto
|
||||||
|
|
||||||
.PHONY: clean distclean tardist dist-win32
|
.PHONY: clean distclean tardist dist-win32 dist-src
|
||||||
|
@ -118,8 +118,8 @@ my %fnc_ignore_list = (
|
|||||||
"ProgramLocalParameter4fARB" => "ARB_vertex_program",
|
"ProgramLocalParameter4fARB" => "ARB_vertex_program",
|
||||||
"ProgramLocalParameter4fvARB" => "ARB_vertex_program",
|
"ProgramLocalParameter4fvARB" => "ARB_vertex_program",
|
||||||
"ProgramStringARB" => "ARB_vertex_program",
|
"ProgramStringARB" => "ARB_vertex_program",
|
||||||
"glXCreateContextAttribsARB" => "GLX_ARB_create_context",
|
"glXCreateContextAttribsARB" => "ARB_create_context_profile",
|
||||||
"wglCreateContextAttribsARB" => "WGL_ARB_create_context",
|
"wglCreateContextAttribsARB" => "WGL_ARB_create_context_profile",
|
||||||
);
|
);
|
||||||
|
|
||||||
my %regex = (
|
my %regex = (
|
||||||
@ -142,7 +142,7 @@ sub normalize_prototype
|
|||||||
s/\<.*\>//g; # remove <comments> from direct state access extension
|
s/\<.*\>//g; # remove <comments> from direct state access extension
|
||||||
s/\<.*$//g; # remove incomplete <comments> from direct state access extension
|
s/\<.*$//g; # remove incomplete <comments> from direct state access extension
|
||||||
s/\s*\(\s*/ \(/; # exactly one space before ( and none after
|
s/\s*\(\s*/ \(/; # exactly one space before ( and none after
|
||||||
s/\s*\)\s*/\)/; # no after before or after )
|
s/\s*\)\s*/\)/; # no space before or after )
|
||||||
s/\s*\*([a-zA-Z])/\* $1/; # "* identifier"
|
s/\s*\*([a-zA-Z])/\* $1/; # "* identifier"
|
||||||
s/\*wgl/\* wgl/; # "* wgl"
|
s/\*wgl/\* wgl/; # "* wgl"
|
||||||
s/\*glX/\* glX/; # "* glX"
|
s/\*glX/\* glX/; # "* glX"
|
||||||
|
@ -237,6 +237,34 @@ EOT
|
|||||||
# fix const correctness in GL_ARB_shader_objects
|
# fix const correctness in GL_ARB_shader_objects
|
||||||
# perl -e 's/(.+glUniform.*(fv|iv).+)(GLfloat\*.+|GLint\*.+)/\1const \3/;' -pi $1/GL_ARB_shader_objects
|
# perl -e 's/(.+glUniform.*(fv|iv).+)(GLfloat\*.+|GLint\*.+)/\1const \3/;' -pi $1/GL_ARB_shader_objects
|
||||||
|
|
||||||
|
# Filter out profile enumerations from GLX_ARB_create_context
|
||||||
|
grep -v "_PROFILE_" $1/GLX_ARB_create_context > tmp
|
||||||
|
mv tmp $1/GLX_ARB_create_context
|
||||||
|
|
||||||
|
# Filter only profile related enumerations for GLX_ARB_create_context_profile
|
||||||
|
head -n2 $1/GLX_ARB_create_context_profile > tmp
|
||||||
|
grep "_PROFILE_" $1/GLX_ARB_create_context_profile >> tmp
|
||||||
|
mv tmp $1/GLX_ARB_create_context_profile
|
||||||
|
|
||||||
|
# Filter out profile enumerations from WGL_ARB_create_context
|
||||||
|
grep -v "_PROFILE_" $1/WGL_ARB_create_context > tmp
|
||||||
|
mv tmp $1/WGL_ARB_create_context
|
||||||
|
|
||||||
|
# Filter only profile related enumerations for WGL_ARB_create_context_profile
|
||||||
|
head -n2 $1/WGL_ARB_create_context_profile > tmp
|
||||||
|
grep "_PROFILE_" $1/WGL_ARB_create_context_profile >> tmp
|
||||||
|
mv tmp $1/WGL_ARB_create_context_profile
|
||||||
|
|
||||||
|
# add missing function to GLX_NV_copy_image
|
||||||
|
cat >> $1/GLX_NV_copy_image <<EOT
|
||||||
|
void glXCopyImageSubDataNV (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth)
|
||||||
|
EOT
|
||||||
|
|
||||||
|
# add missing function to WGL_NV_copy_image
|
||||||
|
cat >> $1/WGL_NV_copy_image <<EOT
|
||||||
|
BOOL wglCopyImageSubDataNV (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth)
|
||||||
|
EOT
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
rm -f $1/*.bak
|
rm -f $1/*.bak
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
GLEW_MAJOR = 1
|
GLEW_MAJOR = 1
|
||||||
GLEW_MINOR = 5
|
GLEW_MINOR = 5
|
||||||
GLEW_MICRO = 1
|
GLEW_MICRO = 2
|
||||||
GLEW_VERSION = $(GLEW_MAJOR).$(GLEW_MINOR).$(GLEW_MICRO)
|
GLEW_VERSION = $(GLEW_MAJOR).$(GLEW_MINOR).$(GLEW_MICRO)
|
||||||
GLEW_NAME = GLEW
|
GLEW_NAME = GLEW
|
||||||
SO_MAJOR = $(GLEW_MAJOR).$(GLEW_MINOR)
|
SO_MAJOR = $(GLEW_MAJOR).$(GLEW_MINOR)
|
||||||
|
Loading…
Reference in New Issue
Block a user