Mercurial > mxe-octave
annotate src/opencsg.mk @ 2333:f653602a0500
Rebrand to new project name MXE
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 28 Mar 2012 15:46:58 +0200 |
parents | eb85218611eb |
children | f48c5b085a38 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2167
diff
changeset
|
1 # This file is part of MXE. |
2029 | 2 # See doc/index.html for further information. |
3 | |
4 # opencsg | |
5 PKG := opencsg | |
6 $(PKG)_IGNORE := | |
2167 | 7 $(PKG)_VERSION := 1.3.2 |
8 $(PKG)_CHECKSUM := e2b4abf169ae3e319eb5f6d9ae6136fa96710a05 | |
2029 | 9 $(PKG)_SUBDIR := OpenCSG-$($(PKG)_VERSION) |
10 $(PKG)_FILE := OpenCSG-$($(PKG)_VERSION).tar.gz | |
11 $(PKG)_WEBSITE := http://www.opencsg.org/ | |
12 $(PKG)_URL := http://www.opencsg.org/$($(PKG)_FILE) | |
13 $(PKG)_DEPS := gcc freeglut glew qt | |
14 | |
15 define $(PKG)_UPDATE | |
16 wget -q -O- 'http://www.opencsg.org/#download' | \ | |
17 grep 'OpenCSG-' | \ | |
18 $(SED) -n 's,.*OpenCSG-\([0-9][^>]*\)\.tar.*,\1,p' | \ | |
19 head -1 | |
20 endef | |
21 | |
22 define $(PKG)_BUILD | |
2030
e85998eb5167
style improvements for package opencsg
Mark Brand <mabrand@mabrand.nl>
parents:
2029
diff
changeset
|
23 cd '$(1)/src' && '$(TARGET)-qmake' src.pro |
e85998eb5167
style improvements for package opencsg
Mark Brand <mabrand@mabrand.nl>
parents:
2029
diff
changeset
|
24 $(MAKE) -C '$(1)/src' -j '$(JOBS)' |
2038
128a84239ad4
package opencsg: install test program without sed
Mark Brand <mabrand@mabrand.nl>
parents:
2036
diff
changeset
|
25 $(INSTALL) -m644 '$(1)/include/opencsg.h' '$(PREFIX)/$(TARGET)/include/' |
128a84239ad4
package opencsg: install test program without sed
Mark Brand <mabrand@mabrand.nl>
parents:
2036
diff
changeset
|
26 $(INSTALL) -m644 '$(1)/lib/libopencsg.a' '$(PREFIX)/$(TARGET)/lib/' |
128a84239ad4
package opencsg: install test program without sed
Mark Brand <mabrand@mabrand.nl>
parents:
2036
diff
changeset
|
27 |
2030
e85998eb5167
style improvements for package opencsg
Mark Brand <mabrand@mabrand.nl>
parents:
2029
diff
changeset
|
28 cd '$(1)/example' && '$(TARGET)-qmake' example.pro |
e85998eb5167
style improvements for package opencsg
Mark Brand <mabrand@mabrand.nl>
parents:
2029
diff
changeset
|
29 $(MAKE) -C '$(1)/example' -j '$(JOBS)' |
2038
128a84239ad4
package opencsg: install test program without sed
Mark Brand <mabrand@mabrand.nl>
parents:
2036
diff
changeset
|
30 $(INSTALL) -m755 '$(1)/example/release/opencsgexample.exe' '$(PREFIX)/$(TARGET)/bin/test-opencsg.exe' |
2029 | 31 endef |