Mercurial > mxe-octave
annotate src/of-dicom.mk @ 4506:f3d64fe692e6
octave-wrapper.in: Include GCC library directory in LD_LIBRARY_PATH.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 12 Oct 2017 05:54:48 -0400 |
parents | 1933a9113e65 |
children | 7d1e45c2f175 |
rev | line source |
---|---|
3424
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
1 # This file is part of MXE. |
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
2 # See index.html for further information. |
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
3 |
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
4 PKG := of-dicom |
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
4356 | 6 $(PKG)_VERSION := 0.2.0 |
7 $(PKG)_CHECKSUM := 46d4be1f9f822451e8fd415fbea4c3d24aaba5db | |
3424
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
8 $(PKG)_REMOTE_SUBDIR := |
4356 | 9 $(PKG)_SUBDIR := dicom-$($(PKG)_VERSION) |
3424
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
10 $(PKG)_FILE := dicom-$($(PKG)_VERSION).tar.gz |
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
11 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/octave/$($(PKG)_FILE)?download |
4289 | 12 $(PKG)_DEPS := gdcm cmake |
3424
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
13 |
4449
1933a9113e65
of-*: add octave as a dependancy to the of packages is binary enable is set (Bug #46235)
John D
parents:
4386
diff
changeset
|
14 ifeq ($(ENABLE_BINARY_PACKAGES),yes) |
1933a9113e65
of-*: add octave as a dependancy to the of packages is binary enable is set (Bug #46235)
John D
parents:
4386
diff
changeset
|
15 $(PKG)_DEPS += $(OCTAVE_TARGET) |
1933a9113e65
of-*: add octave as a dependancy to the of packages is binary enable is set (Bug #46235)
John D
parents:
4386
diff
changeset
|
16 endif |
1933a9113e65
of-*: add octave as a dependancy to the of packages is binary enable is set (Bug #46235)
John D
parents:
4386
diff
changeset
|
17 |
4356 | 18 ifeq ($(MXE_NATIVE_BUILD),no) |
19 $(PKG)_OPTIONS := CMAKE_BINARY="cmake -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)'" | |
20 else | |
21 $(PKG)_OPTIONS := | |
22 endif | |
23 | |
3424
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
24 define $(PKG)_UPDATE |
3561
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
25 $(WGET) -q -O- 'http://$(SOURCEFORGE_MIRROR)/projects/octave/files/Octave%20Forge%20Packages/Individual%20Package%20Releases/' | \ |
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
26 $(SED) -n 's,.*title="dicom-\([0-9][^"]*\).tar.gz".*,\1,p' | \ |
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
27 head -1 |
3424
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
28 endef |
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
29 |
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
30 define $(PKG)_BUILD |
4386
d28a54afe7e7
of-dicom: update patch to work for both stable and dev octave
John D
parents:
4356
diff
changeset
|
31 cd '$(1)/src' && autoreconf -fi |
4356 | 32 $(call OCTAVE_FORGE_PKG_BUILD,$(1),$(2),$(3),$($(PKG)_OPTIONS)) |
3424
da62528d53fb
Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
33 endef |