Mercurial > mxe-octave
comparison src/freeglut.mk @ 547:4b2785ed648e
new package: freeglut (by Bart van Andel)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 12 Nov 2009 02:49:07 +0100 |
parents | |
children | 3687e599eaf7 |
comparison
equal
deleted
inserted
replaced
546:01d6dc74ff44 | 547:4b2785ed648e |
---|---|
1 # Copyright (C) 2009 Volker Grabsch | |
2 # Bart van Andel | |
3 # | |
4 # Permission is hereby granted, free of charge, to any person obtaining | |
5 # a copy of this software and associated documentation files (the | |
6 # "Software"), to deal in the Software without restriction, including | |
7 # without limitation the rights to use, copy, modify, merge, publish, | |
8 # distribute, sublicense, and/or sell copies of the Software, and to | |
9 # permit persons to whom the Software is furnished to do so, subject | |
10 # to the following conditions: | |
11 # | |
12 # The above copyright notice and this permission notice shall be | |
13 # included in all copies or substantial portions of the Software. | |
14 # | |
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
16 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
18 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
19 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
20 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
21 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
22 | |
23 # freeglut | |
24 PKG := freeglut | |
25 $(PKG)_IGNORE := | |
26 $(PKG)_VERSION := 2.6.0-rc1 | |
27 $(PKG)_CHECKSUM := 0bf40f0134695a95032de8cf8305c13dc8d654e5 | |
28 $(PKG)_SUBDIR := freeglut-$(word 1,$(subst -, ,$($(PKG)_VERSION))) | |
29 $(PKG)_FILE := freeglut-$($(PKG)_VERSION).tar.gz | |
30 $(PKG)_WEBSITE := http://freeglut.sourceforge.net/ | |
31 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/freeglut/freeglut/$(word 1,$(subst -, ,$($(PKG)_VERSION)))/$($(PKG)_FILE) | |
32 $(PKG)_DEPS := gcc | |
33 | |
34 define $(PKG)_UPDATE | |
35 wget -q -O- 'http://freeglut.svn.sourceforge.net/viewvc/freeglut/tags/?sortby=date' | \ | |
36 grep '<a name="' | \ | |
37 $(SED) -n 's,.*<a name="FG_\([0-9][^"]*\)".*,\1,p' | \ | |
38 $(SED) 's,_RC,-rc,g; s,_,.,g' | \ | |
39 head -1 | |
40 endef | |
41 | |
42 define $(PKG)_BUILD | |
43 $(SED) 's,Windows\.h,windows.h,' -i '$(1)/src/freeglut_internal.h' | |
44 $(SED) 's,WindowsX\.h,windowsx.h,' -i '$(1)/src/freeglut_internal.h' | |
45 $(SED) 's,MMSystem\.h,mmsystem.h,' -i '$(1)/src/freeglut_internal.h' | |
46 $(SED) 's,Windows\.h,windows.h,' -i '$(1)/include/GL/freeglut_std.h' | |
47 cd '$(1)' && ./configure \ | |
48 --host='$(TARGET)' \ | |
49 --disable-shared \ | |
50 --prefix='$(PREFIX)/$(TARGET)' \ | |
51 --enable-replace-glut \ | |
52 --disable-debug \ | |
53 --without-progs \ | |
54 --without-x | |
55 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= | |
56 endef |