Mercurial > mxe-octave
annotate src/freeglut.mk @ 1353:bad481f2a6bd
upgrade package freeglut
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 27 Oct 2010 13:41:32 +0200 |
parents | 4b00bed64ac9 |
children | 2726fbef533c |
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 := |
bad481f2a6bd
upgrade package freeglut
Volker Grabsch <vog@notjusthosting.com>
parents:
1352
diff
changeset
|
7 $(PKG)_VERSION := 2.6.0 |
bad481f2a6bd
upgrade package freeglut
Volker Grabsch <vog@notjusthosting.com>
parents:
1352
diff
changeset
|
8 $(PKG)_CHECKSUM := 68306c4486c13d005a4e4d54035e0c0b1bdc220b |
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/ |
1353
bad481f2a6bd
upgrade package freeglut
Volker Grabsch <vog@notjusthosting.com>
parents:
1352
diff
changeset
|
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/freeglut/freeglut/$($(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 |
1352
4b00bed64ac9
improved version recognition of package freeglut
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
16 $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/freeglut/files/) | \ |
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' | \ |
4b00bed64ac9
improved version recognition of package freeglut
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
18 tail -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 |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
22 $(SED) -i 's,Windows\.h,windows.h,' '$(1)/src/freeglut_internal.h' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
23 $(SED) -i 's,WindowsX\.h,windowsx.h,' '$(1)/src/freeglut_internal.h' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
24 $(SED) -i 's,MMSystem\.h,mmsystem.h,' '$(1)/src/freeglut_internal.h' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
25 $(SED) -i 's,Windows\.h,windows.h,' '$(1)/include/GL/freeglut_std.h' |
547
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 cd '$(1)' && ./configure \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 --host='$(TARGET)' \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 --disable-shared \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 --prefix='$(PREFIX)/$(TARGET)' \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 --enable-replace-glut \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 --disable-debug \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 --without-progs \ |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 --without-x |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
4b2785ed648e
new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 endef |