Mercurial > mxe-octave
annotate src/opencsg.mk @ 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
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 16:59:24 -0400 |
parents | 100e618349f7 |
children | 951da75fd09c |
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 | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
13 $(WGET) -q -O- 'http://www.opencsg.org/#download' | \ |
2029 | 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)' |
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
|
22 $(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
|
23 $(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
|
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)' |
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
|
27 $(INSTALL) -m755 '$(1)/example/release/opencsgexample.exe' '$(HOST_BINDIR)/test-opencsg.exe' |
2029 | 28 endef |