Mercurial > mxe-octave
view src/cfitsio.mk @ 3646:f38e710f1d95
octave: add --no-x flag when compiling for mingw
* src/octave.mk: add --no-x flag to configure when for mingw.
* src/stable-octave.mk: add --no-x flag to configure when for mingw.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sun, 06 Jul 2014 07:16:05 -0400 |
parents | 26e3a441d573 |
children | 193fbb6106e0 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := cfitsio $(PKG)_IGNORE := $(PKG)_VERSION := 3370 $(PKG)_CHECKSUM := dbe3cc6981951d29200f442f4ab318f8899f9cc8 $(PKG)_SUBDIR := $(PKG) $(PKG)_FILE := $(PKG)$($(PKG)_VERSION).tar.gz $(PKG)_URL := ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/$($(PKG)_FILE) $(PKG)_DEPS := $(PKG)_MAKE_FLAGS := ifeq ($(BUILD_SHARED),yes) $(PKG)_MAKE_FLAGS += shared endif define $(PKG)_UPDATE echo 'Warning: Updates are temporarily disabled for package cfitsio.' >&2; echo $(cfitsio_VERSION) endef ifeq ($(MXE_SYSTEM),msvc) define $(PKG)_BUILD $(SED) -i 's/cfitsio\.dll/$(LIBRARY_PREFIX)cfitsio$(LIBRARY_SUFFIX).dll/g' '$(1)/makefile.vcc' cd '$(1)' && env -u MAKE -u MAKEFLAGS nmake -f makefile.vcc $(SED) -e 's#@prefix@#$(HOST_PREFIX)#' \ -e 's#@exec_prefix@#$${prefix}#' \ -e 's#@libdir@#$${exec_prefix}/lib#' \ -e 's#@includedir@#$${prefix}/include#' \ -e 's#@LIBS@##' \ -e '/^Libs\.private:/ { s#-lm\>##; }' \ -e 's#@CFITSIO_MAJOR@#$(word 1,$(subst ., ,$($(PKG)_VERSION)))#' \ -e 's#@CFITSIO_MINOR@#$(word 2,$(subst ., ,$($(PKG)_VERSION)))#' \ '$(1)/cfitsio.pc.in' > '$(1)/cfitsio.pc' $(INSTALL) -d '$(HOST_BINDIR)' $(INSTALL) '$(1)/$(LIBRARY_PREFIX)cfitsio$(LIBRARY_SUFFIX).dll' '$(HOST_BINDIR)' $(INSTALL) -d '$(HOST_LIBDIR)' $(INSTALL) '$(1)/cfitsio.lib' '$(HOST_LIBDIR)' $(INSTALL) -d '$(HOST_LIBDIR)/pkgconfig' $(INSTALL) '$(1)/cfitsio.pc' '$(HOST_LIBDIR)/pkgconfig' $(INSTALL) -d '$(HOST_INCDIR)' for f in fitsio.h fitsio2.h longnam.h drvrsmem.h; do \ $(INSTALL) "$(1)/$$f" '$(HOST_INCDIR)'; \ done endef else define $(PKG)_BUILD cd '$(1)' && '$(1)/configure' \ $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ --prefix='$(HOST_PREFIX)' $(MAKE) -C '$(1)' -j '$(JOBS)' $($(PKG)_MAKE_FLAGS) $(MAKE) -C '$(1)' -j 1 install endef endif