annotate src/opencsg.mk @ 7207:9ed6500e56d3 default tip @

maint: Merge release to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 17 May 2024 20:16:41 +0200
parents 13be64f9f16d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
3
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
4 PKG := opencsg
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
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
eb85218611eb update package opencsg
Mark Brand <mabrand@mabrand.nl>
parents: 2038
diff changeset
7 $(PKG)_CHECKSUM := e2b4abf169ae3e319eb5f6d9ae6136fa96710a05
2029
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := OpenCSG-$($(PKG)_VERSION)
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
9 $(PKG)_FILE := OpenCSG-$($(PKG)_VERSION).tar.gz
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
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
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
12
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
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
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
15 grep 'OpenCSG-' | \
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
16 $(SED) -n 's,.*OpenCSG-\([0-9][^>]*\)\.tar.*,\1,p' | \
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
17 head -1
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
18 endef
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
19
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
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
36e64b79cb3a new package opencsg
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
29 endef