annotate src/glew.mk @ 5893:53a6c7df43f8

Mesa 3D: Update to version 21.1.8. * src/mesa.mk: Update version and checksum. * src/mesa-2-uninitialized.patch: Remove file. * dist-files.mk: Remove file from list.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 16 Sep 2021 22:37:45 +0200
parents d5a5b8e659de
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2271
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 408
diff changeset
3
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
4 PKG := glew
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 422
diff changeset
5 $(PKG)_IGNORE :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3048
diff changeset
6 $(PKG)_VERSION := 1.9.0
2684
14f1e48fe31e update package glew
Mark Brand <mabrand@mabrand.nl>
parents: 2671
diff changeset
7 $(PKG)_CHECKSUM := 9291f5c5afefd482c7f3e91ffb3cd4716c6c9ffe
639
14310a48d979 update version of package glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents: 448
diff changeset
8 $(PKG)_SUBDIR := glew-$($(PKG)_VERSION)
14310a48d979 update version of package glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents: 448
diff changeset
9 $(PKG)_FILE := glew-$($(PKG)_VERSION).tgz
422
d2f5eb27e051 improved download URLs for all SourceForge packages to ensure that the selected SOURCEFORGE_MIRROR is really used
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/glew/glew/$($(PKG)_VERSION)/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
11 $(PKG)_DEPS :=
232
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
14 $(WGET) -q -O- 'http://sourceforge.net/projects/glew/files/glew/' | \
4384
d5a5b8e659de update PKG_UPDATE rules
John D
parents: 3480
diff changeset
15 $(SED) -n 's,.*glew/\([0-9][^"]*\)/".*,\1,p' | \
1033
dd28c487a6b1 improved version recognition of packages: boost freetype gcc glew libgee mingwrt openssl pcre pdcurses w32api wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents: 956
diff changeset
16 head -1
232
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
2271
3e532768cd27 Make the glew package build and install GLEWmx.
Martin Lambers <marlam@marlam.de>
parents: 1992
diff changeset
20 # Build libGLEW
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
21 cd '$(1)' && $(MXE_CC) -O2 -DGLEW_STATIC -Iinclude -c -o glew.o src/glew.c
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
22 cd '$(1)' && $(MXE_AR) cr libGLEW.a glew.o
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
23 $(MXE_RANLIB) '$(1)/libGLEW.a'
1535
c38635d65658 package glew: make use of the provided pkg-config file
Martin Lambers <marlam@marlam.de>
parents: 1462
diff changeset
24 $(SED) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2684
diff changeset
25 -e "s|@prefix@|$(HOST_PREFIX)|g" \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
26 -e "s|@libdir@|$(HOST_LIBDIR)|g" \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
27 -e "s|@exec_prefix@|$(HOST_BINDIR)|g" \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
28 -e "s|@includedir@|$(HOST_INCDIR)/GL|g" \
1535
c38635d65658 package glew: make use of the provided pkg-config file
Martin Lambers <marlam@marlam.de>
parents: 1462
diff changeset
29 -e "s|@version@|$(glew_VERSION)|g" \
1839
ffb336a0e80b bugfix for the pkg-config script of package glew
Martin Lambers <marlam@marlam.de>
parents: 1826
diff changeset
30 -e "s|@cflags@|-DGLEW_STATIC|g" \
ffb336a0e80b bugfix for the pkg-config script of package glew
Martin Lambers <marlam@marlam.de>
parents: 1826
diff changeset
31 -e "s|-l@libname@|-lGLEW -lopengl32|g" \
1535
c38635d65658 package glew: make use of the provided pkg-config file
Martin Lambers <marlam@marlam.de>
parents: 1462
diff changeset
32 < '$(1)'/glew.pc.in > '$(1)'/glew.pc
2271
3e532768cd27 Make the glew package build and install GLEWmx.
Martin Lambers <marlam@marlam.de>
parents: 1992
diff changeset
33
3e532768cd27 Make the glew package build and install GLEWmx.
Martin Lambers <marlam@marlam.de>
parents: 1992
diff changeset
34 # Build libGLEWmx
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
35 cd '$(1)' && $(MXE_CC) -O2 -DGLEW_STATIC -DGLEW_MX -Iinclude -c -o glewmx.o src/glew.c
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
36 cd '$(1)' && $(MXE_AR) cr libGLEWmx.a glewmx.o
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
37 $(MXE_RANLIB) '$(1)/libGLEWmx.a'
2271
3e532768cd27 Make the glew package build and install GLEWmx.
Martin Lambers <marlam@marlam.de>
parents: 1992
diff changeset
38 $(SED) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2684
diff changeset
39 -e "s|@prefix@|$(HOST_PREFIX)|g" \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
40 -e "s|@libdir@|$(HOST_LIBDIR)|g" \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
41 -e "s|@exec_prefix@|$(HOST_BINDIR)|g" \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
42 -e "s|@includedir@|$(HOST_INCDIR)/GL|g" \
2271
3e532768cd27 Make the glew package build and install GLEWmx.
Martin Lambers <marlam@marlam.de>
parents: 1992
diff changeset
43 -e "s|@version@|$(glew_VERSION)|g" \
3e532768cd27 Make the glew package build and install GLEWmx.
Martin Lambers <marlam@marlam.de>
parents: 1992
diff changeset
44 -e "s|@cflags@|-DGLEW_STATIC -DGLEW_MX|g" \
3e532768cd27 Make the glew package build and install GLEWmx.
Martin Lambers <marlam@marlam.de>
parents: 1992
diff changeset
45 -e "s|-l@libname@|-lGLEWmx -lopengl32|g" \
3e532768cd27 Make the glew package build and install GLEWmx.
Martin Lambers <marlam@marlam.de>
parents: 1992
diff changeset
46 < '$(1)'/glew.pc.in > '$(1)'/glewmx.pc
3e532768cd27 Make the glew package build and install GLEWmx.
Martin Lambers <marlam@marlam.de>
parents: 1992
diff changeset
47
3e532768cd27 Make the glew package build and install GLEWmx.
Martin Lambers <marlam@marlam.de>
parents: 1992
diff changeset
48 # Install
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
49 $(INSTALL) -d '$(HOST_LIBDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
50 $(INSTALL) -m644 '$(1)/libGLEW.a' '$(HOST_LIBDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
51 $(INSTALL) -m644 '$(1)/libGLEW.a' '$(HOST_LIBDIR)/libglew32s.a'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
52 $(INSTALL) -m644 '$(1)/libGLEWmx.a' '$(HOST_LIBDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
53 $(INSTALL) -d '$(HOST_LIBDIR)/pkgconfig'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
54 $(INSTALL) -m644 '$(1)/glew.pc' '$(HOST_LIBDIR)/pkgconfig/'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
55 $(INSTALL) -m644 '$(1)/glewmx.pc' '$(HOST_LIBDIR)/pkgconfig/'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
56 $(INSTALL) -d '$(HOST_INCDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
57 $(INSTALL) -d '$(HOST_INCDIR)/GL'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
58 $(INSTALL) -m644 '$(1)/include/GL/glew.h' '$(1)/include/GL/wglew.h' '$(HOST_INCDIR)/GL/'
1992
a8709467c874 package glew: add test program
Tony Theodore <tonyt@logyst.com>
parents: 1971
diff changeset
59
2271
3e532768cd27 Make the glew package build and install GLEWmx.
Martin Lambers <marlam@marlam.de>
parents: 1992
diff changeset
60 # Test
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
61 '$(MXE_CC)' \
1992
a8709467c874 package glew: add test program
Tony Theodore <tonyt@logyst.com>
parents: 1971
diff changeset
62 -W -Wall -Werror -ansi -pedantic \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
63 '$(2).c' -o '$(HOST_BINDIR)/test-glew.exe' \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
64 `'$(MXE_PKG_CONFIG)' glew --cflags --libs`
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
65 '$(MXE_CC)' \
2271
3e532768cd27 Make the glew package build and install GLEWmx.
Martin Lambers <marlam@marlam.de>
parents: 1992
diff changeset
66 -W -Wall -Werror -ansi -pedantic \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
67 '$(2).c' -o '$(HOST_BINDIR)/test-glewmx.exe' \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
68 `'$(MXE_PKG_CONFIG)' glewmx --cflags --libs`
232
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
69 endef