Mercurial > mxe-octave
annotate src/freeglut.mk @ 6217:f08da4fc56d6
* freeglut.mk: Depend on xi if not using system X11 libraries.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 09 May 2022 09:40:24 -0400 |
parents | dba78afaaad1 |
children | 51bb9fd02236 |
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) |
6217
f08da4fc56d6
* freeglut.mk: Depend on xi if not using system X11 libraries.
John W. Eaton <jwe@octave.org>
parents:
6191
diff
changeset
|
11 $(PKG)_DEPS := mesa xi |
f08da4fc56d6
* freeglut.mk: Depend on xi if not using system X11 libraries.
John W. Eaton <jwe@octave.org>
parents:
6191
diff
changeset
|
12 ifeq ($(USE_SYSTEM_X11_LIBS),no) |
f08da4fc56d6
* freeglut.mk: Depend on xi if not using system X11 libraries.
John W. Eaton <jwe@octave.org>
parents:
6191
diff
changeset
|
13 $(PKG)_DEPS += xi |
f08da4fc56d6
* freeglut.mk: Depend on xi if not using system X11 libraries.
John W. Eaton <jwe@octave.org>
parents:
6191
diff
changeset
|
14 endif |
6191
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
15 |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
16 $(PKG)_CMAKE_FLAGS := |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
19 $(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
|
20 $(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
|
21 head -1 |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 endef |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 define $(PKG)_BUILD |
6191
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
25 mkdir '$(1)/build' |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
26 cd '$(1)/build' && cmake \ |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
27 $($(PKG)_CMAKE_FLAGS) \ |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
28 $(CMAKE_CCACHE_FLAGS) \ |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
29 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
30 -DFREEGLUT_REPLACE_GLUT=ON \ |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
31 -DFREEGLUT_BUILD_DEMOS=OFF \ |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
32 $(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
|
33 $(1) |
1993
91aa4270e0e9
package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1466
diff
changeset
|
34 |
6191
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
35 cmake --build '$(1)/build' |
dba78afaaad1
glut: Update to v3.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
36 DESTDIR='$(3)' cmake --install '$(1)/build' |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 endef |