Mercurial > mxe-octave
annotate src/freeglut.mk @ 6191:dba78afaaad1
glut: Update to v3.2.1
* src/freeglut.mk: update version, checksum, build with cmake
* src/freeglut-1-fixes.patch: update patch
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 30 Apr 2022 08:03:45 -0400 |
parents | 13be64f9f16d |
children | f08da4fc56d6 |
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 := |
6191
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
6 $(PKG)_VERSION := 3.2.1 |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
7 $(PKG)_CHECKSUM := 7a62e0d2caad92ff745bc5037592b2753f0b2f20 |
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) |
6191
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
11 $(PKG)_DEPS := mesa |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
12 |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
13 $(PKG)_CMAKE_FLAGS := |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
16 $(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
|
17 $(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
|
18 head -1 |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 endef |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 define $(PKG)_BUILD |
6191
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
22 mkdir '$(1)/build' |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
23 cd '$(1)/build' && cmake \ |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
24 $($(PKG)_CMAKE_FLAGS) \ |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
25 $(CMAKE_CCACHE_FLAGS) \ |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
26 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
27 -DFREEGLUT_REPLACE_GLUT=ON \ |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
28 -DFREEGLUT_BUILD_DEMOS=OFF \ |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
29 $(if $(filter $(BUILD_STATIC),no),-DFREEGLUT_BUILD_STATIC_LIBS=OFF) \ |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
30 $(1) |
1993
91aa4270e0e9
package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1466
diff
changeset
|
31 |
6191
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
32 cmake --build '$(1)/build' |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
33 DESTDIR='$(3)' cmake --install '$(1)/build' |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 endef |