view src/of-dicom.mk @ 4684:0a5da48ccaaf

of-dicom: fix gdcm cross detect issues, reenable dicom * Makefile.in: add dicom to forge packages * src/of-dicom.mk: pass cmake with toolchain to pkg build
author John Donoghue
date Mon, 23 Apr 2018 17:14:43 -0400
parents 1814816b46df
children 6dd354a8787b
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := of-dicom
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 0.2.1
$(PKG)_CHECKSUM := 122636971340ddc826c8aa35b244d07e66f9e4ac
$(PKG)_REMOTE_SUBDIR := 
$(PKG)_SUBDIR   := dicom-$($(PKG)_VERSION)
$(PKG)_FILE     := dicom-$($(PKG)_VERSION).tar.gz
$(PKG)_URL      := http://$(SOURCEFORGE_MIRROR)/octave/$($(PKG)_FILE)?download
$(PKG)_DEPS     := gdcm cmake

ifeq ($(ENABLE_BINARY_PACKAGES),yes)
    $(PKG)_DEPS += $(OCTAVE_TARGET)
endif

ifeq ($(MXE_NATIVE_BUILD),no)
$(PKG)_OPTIONS := CMAKE_BINARY="cmake -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)'"
else
$(PKG)_OPTIONS := 
endif

define $(PKG)_UPDATE
    $(OCTAVE_FORGE_PKG_UPDATE)
endef

define $(PKG)_BUILD
    $(call OCTAVE_FORGE_PKG_BUILD,$(1),$(2),$(3),$($(PKG)_OPTIONS))
endef