Mercurial > mxe-octave
annotate src/freeglut.mk @ 6161:8fcac4d6d983 release
of-queueing: Fix syntax error with Octave 7 (bug #62314).
* src/of-queueing-1-octave7.patch: Add new file.
* dist-files.mk: Include new patch.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 14 Apr 2022 19:27:13 +0200 |
parents | 13be64f9f16d |
children | dba78afaaad1 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2201
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. |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 PKG := freeglut |
1353
bad481f2a6bd
upgrade package freeglut
Volker Grabsch <vog@notjusthosting.com>
parents:
1352
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 := 2.8.0 |
2201 | 7 $(PKG)_CHECKSUM := 4debbe559c6c9841ce1abaddc9d461d17c6083b1 |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := freeglut-$(word 1,$(subst -, ,$($(PKG)_VERSION))) |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_FILE := freeglut-$($(PKG)_VERSION).tar.gz |
2201 | 10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/freeglut/freeglut/$($(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 := |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
4b2785ed648e
new package: freeglut (by Bart van Andel)
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/freeglut/files/freeglut/' | \ |
1352
4b00bed64ac9
improved version recognition of package freeglut
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
15 $(SED) -n 's,.*freeglut-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1353
diff
changeset
|
16 head -1 |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 endef |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 define $(PKG)_BUILD |
2040
8b909011187a
package freeglut: add pkg-config support
Mark Brand <mabrand@mabrand.nl>
parents:
1993
diff
changeset
|
20 cd '$(1)' && ./autogen.sh |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
23 $(ENABLE_SHARED_OR_STATIC) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
24 --prefix='$(HOST_PREFIX)' \ |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 --enable-replace-glut \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 --disable-debug \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 --without-progs \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 --without-x |
1993
91aa4270e0e9
package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1466
diff
changeset
|
29 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= EXPORT_FLAGS='-DFREEGLUT_STATIC' |
91aa4270e0e9
package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1466
diff
changeset
|
30 |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
31 '$(MXE_CC)' \ |
1993
91aa4270e0e9
package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1466
diff
changeset
|
32 -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:
3013
diff
changeset
|
33 '$(2).c' -o '$(HOST_BINDIR)/test-freeglut.exe' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
34 `'$(MXE_PKG_CONFIG)' glut --cflags --libs` |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 endef |