annotate src/gdcm.mk @ 4468:5c667b1841d5

gdcm: disable build of docs and tests * src/gdcm.mk: add to cmake options -DGDCM_BUILD_TESTING:BOOL=FALSE -DGDCM_DOCUMENTATION:BOOL=FALSE -DGDCM_BUILD_DOCBOOK_MANPAGES:BOOL=FALSE
author John D
date Mon, 11 Sep 2017 09:06:22 -0400
parents 99466fa41fd7
children 55fa3afa694a
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 :=
4420
99466fa41fd7 gdcm: update to v2.6.9
John D
parents: 4036
diff changeset
6 $(PKG)_VERSION := 2.6.9
99466fa41fd7 gdcm: update to v2.6.9
John D
parents: 4036
diff changeset
7 $(PKG)_CHECKSUM := 28aa7da1f286fa0ebcedebe535e4cd7463364847
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
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG) 2.x/GDCM $($(PKG)_VERSION)/$($(PKG)_FILE)
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
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
21 echo 'Warning: Updates are temporarily disabled for package gdcm.' >&2;
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
22 echo $(gdcm_VERSION)
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
23 endef
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
24
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
25 ifeq ($(MXE_SYSTEM),msvc)
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
26 define $(PKG)_BUILD
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
27 mkdir '$(1)/../.build'
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
28 cd '$(1)/../.build' && cmake \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
29 -G "NMake Makefiles" \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
30 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
31 -DGDCM_BUILD_SHARED_LIBS:BOOL=TRUE \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
32 -DGDCM_USE_SYSTEM_ZLIB:BOOL=TRUE \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
33 -DGDCM_USE_SYSTEM_EXPAT:BOOL=TRUE \
4468
5c667b1841d5 gdcm: disable build of docs and tests
John D
parents: 4420
diff changeset
34 -DGDCM_BUILD_TESTING:BOOL=FALSE \
5c667b1841d5 gdcm: disable build of docs and tests
John D
parents: 4420
diff changeset
35 -DGDCM_DOCUMENTATION:BOOL=FALSE \
5c667b1841d5 gdcm: disable build of docs and tests
John D
parents: 4420
diff changeset
36 -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
37 ../$($(PKG)_SUBDIR)
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
38 cd '$(1)/../.build' && \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
39 env -u MAKE -u MAKEFLAGS nmake && \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
40 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
41 endef
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
42 else
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
43 define $(PKG)_BUILD
3181
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
44 mkdir '$(1)/../.build'
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
45 cd '$(1)/../.build' && cmake \
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
46 $($(PKG)_CMAKE_OPTS) \
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
47 -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
48 -DGDCM_BUILD_SHARED_LIBS:BOOL=TRUE \
4468
5c667b1841d5 gdcm: disable build of docs and tests
John D
parents: 4420
diff changeset
49 -DGDCM_BUILD_TESTING:BOOL=FALSE \
5c667b1841d5 gdcm: disable build of docs and tests
John D
parents: 4420
diff changeset
50 -DGDCM_DOCUMENTATION:BOOL=FALSE \
5c667b1841d5 gdcm: disable build of docs and tests
John D
parents: 4420
diff changeset
51 -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
52 ../$($(PKG)_SUBDIR)
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
53 make -C $(1)/../.build -j $(JOBS)
3424
da62528d53fb Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents: 3181
diff changeset
54 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
55 endef
3181
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
56
3159
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
57 endif