Mercurial > mxe-octave
annotate src/freeglut.mk @ 2201:1177e9d46712
update package freeglut
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Tue, 03 Jan 2012 10:56:09 +0100 |
parents | 8b909011187a |
children | f653602a0500 |
rev | line source |
---|---|
641
dab071eac9c0
simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents:
565
diff
changeset
|
1 # This file is part of mingw-cross-env. |
714
29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents:
641
diff
changeset
|
2 # See doc/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 # freeglut |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 PKG := freeglut |
1353
bad481f2a6bd
upgrade package freeglut
Volker Grabsch <vog@notjusthosting.com>
parents:
1352
diff
changeset
|
6 $(PKG)_IGNORE := |
2201 | 7 $(PKG)_VERSION := 2.8.0 |
8 $(PKG)_CHECKSUM := 4debbe559c6c9841ce1abaddc9d461d17c6083b1 | |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_SUBDIR := freeglut-$(word 1,$(subst -, ,$($(PKG)_VERSION))) |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 $(PKG)_FILE := freeglut-$($(PKG)_VERSION).tar.gz |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 $(PKG)_WEBSITE := http://freeglut.sourceforge.net/ |
2201 | 12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/freeglut/freeglut/$($(PKG)_VERSION)/$($(PKG)_FILE) |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 $(PKG)_DEPS := gcc |
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 |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1353
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 |
2040
8b909011187a
package freeglut: add pkg-config support
Mark Brand <mabrand@mabrand.nl>
parents:
1993
diff
changeset
|
22 cd '$(1)' && ./autogen.sh |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 cd '$(1)' && ./configure \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 --host='$(TARGET)' \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 --disable-shared \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 --prefix='$(PREFIX)/$(TARGET)' \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 --enable-replace-glut \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 --disable-debug \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 --without-progs \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 --without-x |
1993
91aa4270e0e9
package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1466
diff
changeset
|
31 $(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
|
32 |
91aa4270e0e9
package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1466
diff
changeset
|
33 '$(TARGET)-gcc' \ |
91aa4270e0e9
package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1466
diff
changeset
|
34 -W -Wall -Werror -ansi -pedantic \ |
91aa4270e0e9
package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1466
diff
changeset
|
35 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-freeglut.exe' \ |
2040
8b909011187a
package freeglut: add pkg-config support
Mark Brand <mabrand@mabrand.nl>
parents:
1993
diff
changeset
|
36 `'$(TARGET)-pkg-config' glut --cflags --libs` |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 endef |