Mercurial > mxe-octave
annotate src/opencsg.mk @ 2365:b5321bdec505
Move full package names from src/*.mk into package list (index.html)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 21:41:44 +0200 |
parents | 99516e73b368 |
children | 4d0f3a9da57e |
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. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
2029 | 3 |
4 PKG := opencsg | |
5 $(PKG)_IGNORE := | |
2167 | 6 $(PKG)_CHECKSUM := e2b4abf169ae3e319eb5f6d9ae6136fa96710a05 |
2029 | 7 $(PKG)_SUBDIR := OpenCSG-$($(PKG)_VERSION) |
8 $(PKG)_FILE := OpenCSG-$($(PKG)_VERSION).tar.gz | |
9 $(PKG)_URL := http://www.opencsg.org/$($(PKG)_FILE) | |
10 $(PKG)_DEPS := gcc freeglut glew qt | |
11 | |
12 define $(PKG)_UPDATE | |
13 wget -q -O- 'http://www.opencsg.org/#download' | \ | |
14 grep 'OpenCSG-' | \ | |
15 $(SED) -n 's,.*OpenCSG-\([0-9][^>]*\)\.tar.*,\1,p' | \ | |
16 head -1 | |
17 endef | |
18 | |
19 define $(PKG)_BUILD | |
2030
e85998eb5167
style improvements for package opencsg
Mark Brand <mabrand@mabrand.nl>
parents:
2029
diff
changeset
|
20 cd '$(1)/src' && '$(TARGET)-qmake' src.pro |
e85998eb5167
style improvements for package opencsg
Mark Brand <mabrand@mabrand.nl>
parents:
2029
diff
changeset
|
21 $(MAKE) -C '$(1)/src' -j '$(JOBS)' |
2038
128a84239ad4
package opencsg: install test program without sed
Mark Brand <mabrand@mabrand.nl>
parents:
2036
diff
changeset
|
22 $(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
|
23 $(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
|
24 |
2030
e85998eb5167
style improvements for package opencsg
Mark Brand <mabrand@mabrand.nl>
parents:
2029
diff
changeset
|
25 cd '$(1)/example' && '$(TARGET)-qmake' example.pro |
e85998eb5167
style improvements for package opencsg
Mark Brand <mabrand@mabrand.nl>
parents:
2029
diff
changeset
|
26 $(MAKE) -C '$(1)/example' -j '$(JOBS)' |
2038
128a84239ad4
package opencsg: install test program without sed
Mark Brand <mabrand@mabrand.nl>
parents:
2036
diff
changeset
|
27 $(INSTALL) -m755 '$(1)/example/release/opencsgexample.exe' '$(PREFIX)/$(TARGET)/bin/test-opencsg.exe' |
2029 | 28 endef |