Mercurial > mxe-octave
annotate src/gdcm.mk @ 5893:53a6c7df43f8
Mesa 3D: Update to version 21.1.8.
* src/mesa.mk: Update version and checksum.
* src/mesa-2-uninitialized.patch: Remove file.
* dist-files.mk: Remove file from list.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 16 Sep 2021 22:37:45 +0200 |
parents | ef468742d054 |
children | ac3ce52c4cde |
rev | line source |
---|---|
3159
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
1 # This file is part of MXE. |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
2 # See index.html for further information. |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
3 |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
4 PKG := gdcm |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
5818
ef468742d054
GDCM: Update to version 3.0.9
Markus Mützel <markus.muetzel@gmx.de>
parents:
5571
diff
changeset
|
6 $(PKG)_VERSION := 3.0.9 |
ef468742d054
GDCM: Update to version 3.0.9
Markus Mützel <markus.muetzel@gmx.de>
parents:
5571
diff
changeset
|
7 $(PKG)_CHECKSUM := d49fa5b037fb93994d416bcd33b1fbf7fd5aad6d |
3159
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz |
5818
ef468742d054
GDCM: Update to version 3.0.9
Markus Mützel <markus.muetzel@gmx.de>
parents:
5571
diff
changeset
|
10 $(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG) 3.x/GDCM $($(PKG)_VERSION)/$($(PKG)_FILE) |
3159
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
11 $(PKG)_DEPS := expat zlib |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
12 |
3181
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
13 $(PKG)_CMAKE_OPTS := |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
14 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
15 ifeq ($(MXE_SYSTEM),mingw) |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
16 $(PKG)_CMAKE_OPTS := -G "MSYS Makefiles" |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
17 endif |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
18 endif |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
19 |
3159
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
20 define $(PKG)_UPDATE |
5102 | 21 $(WGET) -q -O- 'http://sourceforge.net/projects/gdcm/files/gdcm 3.x/' | \ |
4832 | 22 $(SED) -n 's,.*title=\"GDCM \([0-9.]*\)\".*,\1,p' | \ |
23 $(SORT) -V | \ | |
24 tail -1 | |
3159
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
25 endef |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
26 |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
27 ifeq ($(MXE_SYSTEM),msvc) |
5541
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
28 define $(PKG)_BUILD |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
29 mkdir '$(1)/../.build' |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
30 cd '$(1)/../.build' && cmake \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
31 -G "NMake Makefiles" \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
32 $(CMAKE_CCACHE_FLAGS) \ |
5571
b19fb3ed330c
use cmake command line to set build shared/static options (bug #59373)
John W. Eaton <jwe@octave.org>
parents:
5546
diff
changeset
|
33 $(CMAKE_BUILD_SHARED_OR_STATIC) \ |
5541
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
34 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
35 -DGDCM_BUILD_SHARED_LIBS:BOOL=TRUE \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
36 -DGDCM_USE_SYSTEM_ZLIB:BOOL=TRUE \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
37 -DGDCM_USE_SYSTEM_EXPAT:BOOL=TRUE \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
38 -DGDCM_BUILD_TESTING:BOOL=FALSE \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
39 -DGDCM_DOCUMENTATION:BOOL=FALSE \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
40 -DGDCM_BUILD_DOCBOOK_MANPAGES:BOOL=FALSE \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
41 ../$($(PKG)_SUBDIR) |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
42 |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
43 cd '$(1)/../.build' && \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
44 env -u MAKE -u MAKEFLAGS nmake && \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
45 env -u MAKE -u MAKEFLAGS nmake install |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
46 endef |
3159
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
47 else |
5541
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
48 define $(PKG)_BUILD |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
49 mkdir '$(1)/../.build' |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
50 cd '$(1)/../.build' && cmake \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
51 $($(PKG)_CMAKE_OPTS) \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
52 $(CMAKE_CCACHE_FLAGS) \ |
5571
b19fb3ed330c
use cmake command line to set build shared/static options (bug #59373)
John W. Eaton <jwe@octave.org>
parents:
5546
diff
changeset
|
53 $(CMAKE_BUILD_SHARED_OR_STATIC) \ |
5541
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
54 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
55 -DGDCM_BUILD_SHARED_LIBS:BOOL=TRUE \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
56 -DGDCM_BUILD_TESTING:BOOL=FALSE \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
57 -DGDCM_DOCUMENTATION:BOOL=FALSE \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
58 -DGDCM_BUILD_DOCBOOK_MANPAGES:BOOL=FALSE \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
59 ../$($(PKG)_SUBDIR) |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
60 |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
61 make -C $(1)/../.build -j $(JOBS) |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
62 make -C $(1)/../.build -j 1 install DESTDIR=$(3) |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
63 endef |
3181
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
64 |
3159
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
65 endif |