Mercurial > mxe-octave
annotate src/gdcm.mk @ 3319:2636b3458f4d
* src/msvc-octave-1.patch: Update to octave 3.7.7.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Tue, 12 Nov 2013 20:54:29 -0500 |
parents | b89f8cfeff8e |
children | da62528d53fb |
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 := |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
6 $(PKG)_CHECKSUM := 83b9ff0744a37b4bf8f687ed198aabea7a9dfc70 |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
8 $(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
|
9 $(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
|
10 $(PKG)_DEPS := expat zlib |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
11 |
3181
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
12 $(PKG)_CMAKE_OPTS := |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
13 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
|
14 ifeq ($(MXE_SYSTEM),mingw) |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
15 $(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
|
16 endif |
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 |
3159
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
19 define $(PKG)_UPDATE |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
20 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
|
21 echo $(gdcm_VERSION) |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
22 endef |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
23 |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
24 ifeq ($(MXE_SYSTEM),msvc) |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
25 define $(PKG)_BUILD |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
26 mkdir '$(1)/../.build' |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
27 cd '$(1)/../.build' && cmake \ |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
28 -G "NMake Makefiles" \ |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
29 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
30 -DGDCM_BUILD_SHARED_LIBS:BOOL=TRUE \ |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
31 -DGDCM_USE_SYSTEM_ZLIB:BOOL=TRUE \ |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
32 -DGDCM_USE_SYSTEM_EXPAT:BOOL=TRUE \ |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
33 ../$($(PKG)_SUBDIR) |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
34 cd '$(1)/../.build' && \ |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
35 env -u MAKE -u MAKEFLAGS nmake && \ |
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 install |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
37 endef |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
38 else |
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
39 define $(PKG)_BUILD |
3181
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
40 mkdir '$(1)/../.build' |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
41 cd '$(1)/../.build' && cmake \ |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
42 $($(PKG)_CMAKE_OPTS) \ |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
43 -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
|
44 -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
|
45 ../$($(PKG)_SUBDIR) |
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
46 make -C $(1)/../.build -j $(JOBS) |
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 1 install |
3159
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
48 endef |
3181
b89f8cfeff8e
Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents:
3161
diff
changeset
|
49 |
3159
75eaca7603d8
Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
50 endif |