blob: b55c01105ed1a7b6f3c32b68792c084c0f7ac964 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := ccfits
$(PKG)_WEBSITE := http://heasarc.gsfc.nasa.gov/fitsio/ccfits
$(PKG)_DESCR := CCfits
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.4
$(PKG)_CHECKSUM := ba6c5012b260adf7633f92581279ea582e331343d8c973981aa7de07242bd7f8
$(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
$(WGET) -q -O- "http://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits/" | \
grep -i '<a href="CCfits.*tar' | \
$(SED) -n 's,.*CCfits-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
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 =
|