diff options
author | Stefano Balzan <stefano.balzan@gmail.com> | 2014-12-10 19:34:35 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-12-13 03:35:51 (GMT) |
commit | db8326927a79bd9807d533aee45199acdcd34529 (patch) | |
tree | b19b187d372947ff5fdfed01f1a2118e0dda961e /src/ccfits.mk | |
parent | 6bc8377f9e3c6d8ae6c5eb8387f7143c5b309a9f (diff) | |
download | mxe-db8326927a79bd9807d533aee45199acdcd34529.zip mxe-db8326927a79bd9807d533aee45199acdcd34529.tar.gz mxe-db8326927a79bd9807d533aee45199acdcd34529.tar.bz2 |
Added CCfits library
TODO: add an example program and updade instructions in ccfits.mk
Diffstat (limited to 'src/ccfits.mk')
-rwxr-xr-x | src/ccfits.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ccfits.mk b/src/ccfits.mk new file mode 100755 index 0000000..c1b0fdc --- /dev/null +++ b/src/ccfits.mk @@ -0,0 +1,27 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := ccfits +$(PKG)_IGNORE := +$(PKG)_VERSION := 2.4 +$(PKG)_CHECKSUM := 3de2a6379bc1024300befae95cfdf33645a7b64a +$(PKG)_SUBDIR := CCfits +$(PKG)_FILE := CCfits-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := https://heasarc.gsfc.nasa.gov/fitsio/CCfits/$($(PKG)_FILE) +$(PKG)_DEPS := gcc cfitsio + +define $(PKG)_UPDATE + echo 'TODO: write update script for $(PKG).' >&2; + echo $($(PKG)_VERSION) +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + $(MXE_CONFIGURE_OPTS) \ + --with-cfitsio='$(PREFIX)/$(TARGET)' + + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j 1 install +endef + +$(PKG)_BUILD_SHARED = |