Mercurial > mxe-octave
annotate src/gdcm.mk @ 5546:bab15e146dfa
* src/gdcm.mk: update to v3.0.8
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Tue, 06 Oct 2020 08:53:07 -0400 |
parents | d862fd40cc42 |
children | b19fb3ed330c |
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 := |
5546
bab15e146dfa
* src/gdcm.mk: update to v3.0.8
John Donoghue <john.donoghue@ieee.org>
parents:
5541
diff
changeset
|
6 $(PKG)_VERSION := 3.0.8 |
bab15e146dfa
* src/gdcm.mk: update to v3.0.8
John Donoghue <john.donoghue@ieee.org>
parents:
5541
diff
changeset
|
7 $(PKG)_CHECKSUM := 520d57530d20d5a0f5bb99a040cd261304902c89 |
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 |
5102 | 10 $(PKG)_URL := http://$(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) \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
33 -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
|
34 -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
|
35 -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
|
36 -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
|
37 -DGDCM_BUILD_TESTING:BOOL=FALSE \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
38 -DGDCM_DOCUMENTATION:BOOL=FALSE \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
39 -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
|
40 ../$($(PKG)_SUBDIR) |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
41 |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
42 cd '$(1)/../.build' && \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
43 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
|
44 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
|
45 endef |
3159
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
46 else |
5541
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
47 define $(PKG)_BUILD |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
48 mkdir '$(1)/../.build' |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
49 cd '$(1)/../.build' && cmake \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
50 $($(PKG)_CMAKE_OPTS) \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
51 $(CMAKE_CCACHE_FLAGS) \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
52 -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
|
53 -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
|
54 -DGDCM_BUILD_TESTING:BOOL=FALSE \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
55 -DGDCM_DOCUMENTATION:BOOL=FALSE \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
56 -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
|
57 ../$($(PKG)_SUBDIR) |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
58 |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5479
diff
changeset
|
59 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
|
60 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
|
61 endef |
3181
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
62 |
3159
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
63 endif |