Mercurial > mxe-octave
annotate src/gdcm.mk @ 4240:724749afb8b5
Makefile.in: check if have version of octave and warn if cant find it (Bug #49503)
* Makefile.in: in check-requirements, verify and warn if do not have correct octave
author | John D |
---|---|
date | Thu, 03 Nov 2016 04:08:08 -0400 |
parents | e5c0805d9f5f |
children | 99466fa41fd7 |
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 := |
4036
e5c0805d9f5f
gdcm: update to 2.4.6, patch of-dicom to work with 2.4.X
John D
parents:
3480
diff
changeset
|
6 $(PKG)_VERSION := 2.4.6 |
e5c0805d9f5f
gdcm: update to 2.4.6, patch of-dicom to work with 2.4.X
John D
parents:
3480
diff
changeset
|
7 $(PKG)_CHECKSUM := c5439ed0099780dc007a280237c71d9f0054eed0 |
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 \ |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
34 ../$($(PKG)_SUBDIR) |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
35 cd '$(1)/../.build' && \ |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
36 env -u MAKE -u MAKEFLAGS nmake && \ |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
37 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
|
38 endef |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
39 else |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
40 define $(PKG)_BUILD |
3181
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
41 mkdir '$(1)/../.build' |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
42 cd '$(1)/../.build' && cmake \ |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
43 $($(PKG)_CMAKE_OPTS) \ |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
44 -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
|
45 -DGDCM_BUILD_SHARED_LIBS:BOOL=TRUE \ |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
46 ../$($(PKG)_SUBDIR) |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
47 make -C $(1)/../.build -j $(JOBS) |
3424
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
3181
diff
changeset
|
48 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
|
49 endef |
3181
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
50 |
3159
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
51 endif |