annotate src/gdcm.mk @ 5479:0d456bea7ea2

* src/gdcm.mk: update to v3.0.7
author John Donoghue <john.donoghue@ieee.org>
date Thu, 02 Jul 2020 10:59:03 -0400
parents 1d7f736ba2e1
children d862fd40cc42
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 :=
5479
0d456bea7ea2 * src/gdcm.mk: update to v3.0.7
John Donoghue <john.donoghue@ieee.org>
parents: 5453
diff changeset
6 $(PKG)_VERSION := 3.0.7
0d456bea7ea2 * src/gdcm.mk: update to v3.0.7
John Donoghue <john.donoghue@ieee.org>
parents: 5453
diff changeset
7 $(PKG)_CHECKSUM := 001ec272163a86f4f001374658917b43be03bce0
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
c1b55b71d4e3 gdcm: update to v3.0.0
John Donoghue
parents: 4832
diff changeset
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
c1b55b71d4e3 gdcm: update to v3.0.0
John Donoghue
parents: 4832
diff changeset
21 $(WGET) -q -O- 'http://sourceforge.net/projects/gdcm/files/gdcm 3.x/' | \
4832
55fa3afa694a * src/gdcm.mk: update update rule
John Donoghue
parents: 4468
diff changeset
22 $(SED) -n 's,.*title=\"GDCM \([0-9.]*\)\".*,\1,p' | \
55fa3afa694a * src/gdcm.mk: update update rule
John Donoghue
parents: 4468
diff changeset
23 $(SORT) -V | \
55fa3afa694a * src/gdcm.mk: update update rule
John Donoghue
parents: 4468
diff changeset
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)
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
28 define $(PKG)_BUILD
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
29 mkdir '$(1)/../.build'
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
30 cd '$(1)/../.build' && cmake \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
31 -G "NMake Makefiles" \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
32 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
33 -DGDCM_BUILD_SHARED_LIBS:BOOL=TRUE \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
34 -DGDCM_USE_SYSTEM_ZLIB:BOOL=TRUE \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
35 -DGDCM_USE_SYSTEM_EXPAT:BOOL=TRUE \
4468
5c667b1841d5 gdcm: disable build of docs and tests
John D
parents: 4420
diff changeset
36 -DGDCM_BUILD_TESTING:BOOL=FALSE \
5c667b1841d5 gdcm: disable build of docs and tests
John D
parents: 4420
diff changeset
37 -DGDCM_DOCUMENTATION:BOOL=FALSE \
5c667b1841d5 gdcm: disable build of docs and tests
John D
parents: 4420
diff changeset
38 -DGDCM_BUILD_DOCBOOK_MANPAGES:BOOL=FALSE \
3159
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
39 ../$($(PKG)_SUBDIR)
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
40 cd '$(1)/../.build' && \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
41 env -u MAKE -u MAKEFLAGS nmake && \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
42 env -u MAKE -u MAKEFLAGS nmake install
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
43 endef
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
44 else
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
45 define $(PKG)_BUILD
3181
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
46 mkdir '$(1)/../.build'
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
47 cd '$(1)/../.build' && cmake \
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
48 $($(PKG)_CMAKE_OPTS) \
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
49 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
50 -DGDCM_BUILD_SHARED_LIBS:BOOL=TRUE \
4468
5c667b1841d5 gdcm: disable build of docs and tests
John D
parents: 4420
diff changeset
51 -DGDCM_BUILD_TESTING:BOOL=FALSE \
5c667b1841d5 gdcm: disable build of docs and tests
John D
parents: 4420
diff changeset
52 -DGDCM_DOCUMENTATION:BOOL=FALSE \
5c667b1841d5 gdcm: disable build of docs and tests
John D
parents: 4420
diff changeset
53 -DGDCM_BUILD_DOCBOOK_MANPAGES:BOOL=FALSE \
3181
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
54 ../$($(PKG)_SUBDIR)
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
55 make -C $(1)/../.build -j $(JOBS)
3424
da62528d53fb Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents: 3181
diff changeset
56 make -C $(1)/../.build -j 1 install DESTDIR=$(3)
3159
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
57 endef
3181
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
58
3159
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
59 endif