Mercurial > mxe-octave
annotate src/opencsg.mk @ 3480:13be64f9f16d
move version info from index.html to src/*.mk files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 31 Jan 2014 16:04:01 -0500 |
parents | 5ef49fb3299d |
children |
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 := | |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
6 $(PKG)_VERSION := 1.3.2 |
2167 | 7 $(PKG)_CHECKSUM := e2b4abf169ae3e319eb5f6d9ae6136fa96710a05 |
2029 | 8 $(PKG)_SUBDIR := OpenCSG-$($(PKG)_VERSION) |
9 $(PKG)_FILE := OpenCSG-$($(PKG)_VERSION).tar.gz | |
10 $(PKG)_URL := http://www.opencsg.org/$($(PKG)_FILE) | |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := freeglut glew qt |
2029 | 12 |
13 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
14 $(WGET) -q -O- 'http://www.opencsg.org/#download' | \ |
2029 | 15 grep 'OpenCSG-' | \ |
16 $(SED) -n 's,.*OpenCSG-\([0-9][^>]*\)\.tar.*,\1,p' | \ | |
17 head -1 | |
18 endef | |
19 | |
20 define $(PKG)_BUILD | |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
21 cd '$(1)/src' && '$(MXE_QMAKE)' src.pro |
2030
e85998eb5167
style improvements for package opencsg
Mark Brand <mabrand@mabrand.nl>
parents:
2029
diff
changeset
|
22 $(MAKE) -C '$(1)/src' -j '$(JOBS)' |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
23 $(INSTALL) -m644 '$(1)/include/opencsg.h' '$(HOST_INCDIR)' |
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
24 $(INSTALL) -m644 '$(1)/lib/libopencsg.a' '$(HOST_LIBDIR)' |
2038
128a84239ad4
package opencsg: install test program without sed
Mark Brand <mabrand@mabrand.nl>
parents:
2036
diff
changeset
|
25 |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
26 cd '$(1)/example' && '$(MXE_QMAKE)' example.pro |
2030
e85998eb5167
style improvements for package opencsg
Mark Brand <mabrand@mabrand.nl>
parents:
2029
diff
changeset
|
27 $(MAKE) -C '$(1)/example' -j '$(JOBS)' |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
28 $(INSTALL) -m755 '$(1)/example/release/opencsgexample.exe' '$(HOST_BINDIR)/test-opencsg.exe' |
2029 | 29 endef |