Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial feedstock commit with conda-smithy 3.4.0.
- Loading branch information
Travis-CI on github.com/conda-forge/staged-recipes
committed
Jul 10, 2019
0 parents
commit 05c3408
Showing
5 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/m4/acx_openblas.m4 b/m4/acx_openblas.m4 | ||
index 5421eec..fe43f65 100644 | ||
--- a/m4/acx_openblas.m4 | ||
+++ b/m4/acx_openblas.m4 | ||
@@ -100,7 +100,7 @@ dnl ---------------------------- | ||
[Define if you have the OpenBLAS parallel library and header files.]), | ||
unset ac_cv_search_LAPACKE_dpotrf | ||
[AC_SEARCH_LIBS( | ||
- [LAPACKE_dpotrf], ["openblas"$acx_openblas_suffix], | ||
+ [LAPACKE_dpotrf], ["openblas"$acx_openblas_suffix "lapacke"$acx_openblas_suffix], | ||
[OPENBLAS_WARN="parallel OpenBLAS"$acx_openblas_suffix" not found, reverting to scalar OpenBLAS"$acx_openblas_suffix"!"], | ||
[OPENBLAS_ERROR="OpenBLAS"$acx_openblas_suffix" library file not found!"], | ||
$acx_openblas_libopt | ||
@@ -109,7 +109,7 @@ dnl ---------------------------- | ||
) | ||
else | ||
AC_SEARCH_LIBS( | ||
- [LAPACKE_dpotrf], ["openblas"$acx_openblas_suffix],, | ||
+ [LAPACKE_dpotrf], ["openblas"$acx_openblas_suffix "lapacke"$acx_openblas_suffix],, | ||
[OPENBLAS_ERROR="OpenBLAS"$acx_openblas_suffix" library file not found!"], | ||
$acx_openblas_libopt | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/src/match.c b/src/match.c | ||
index 79ea1f4..4377ea3 100644 | ||
--- a/src/match.c | ||
+++ b/src/match.c | ||
@@ -106,7 +106,7 @@ VERSION 29/09/2012 | ||
void match_field(fieldstruct *field, fieldstruct *reffield) | ||
{ | ||
setstruct *refset, *refset2, *set, *fieldset; | ||
- char str[128]; | ||
+ char str[MAXCHAR]; | ||
double wcspos[NAXIS], | ||
angle,scale,dlng,dlat,sig, dlng2,dlat2,sig2, asig, | ||
dangle,dscale, ddlng,ddlat, shear,sangle, sheartot, sangletot, | ||
@@ -114,7 +114,7 @@ void match_field(fieldstruct *field, fieldstruct *reffield) | ||
int i,j,k, lng,lat, | ||
naxis, nmax; | ||
|
||
- sprintf(str, "Matching field %s...", field->rfilename); | ||
+ sprintf(str, "Matching field %.*s ...", MAXCHAR - 20, field->rfilename); | ||
NFPRINTF(OUTPUT, str); | ||
|
||
/* We are going to use FFT routines */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
sh autogen.sh | ||
./configure --prefix=${PREFIX} \ | ||
--enable-openblas \ | ||
--with-openblas-incdir=${PREFIX}/include \ | ||
--with-openblas-libdir=${PREFIX}/lib \ | ||
--with-curl-incdir=${PREFIX}/include \ | ||
--with-curl-libdir=${PREFIX}/lib \ | ||
--enable-plplot=no | ||
make | ||
|
||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{% set name = "scamp" %} | ||
{% set version = "2.6.7" %} | ||
|
||
package: | ||
name: astromatic-{{ name }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/astromatic/{{ name }}/archive/v{{ version }}.tar.gz | ||
sha256: 6dede2177c712821c1c91afa423b6cfc6e7100f7a1f2abecad1ad8e181359a50 | ||
patches: | ||
- 0001-Search-lapacke-library.patch | ||
- 0002-Fix_sprintf_buffer_overflow.patch | ||
|
||
build: | ||
skip: true # [win] | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} | ||
- autoconf | ||
- automake | ||
- libtool | ||
- make | ||
host: | ||
- fftw | ||
- curl | ||
- liblapacke | ||
run: | ||
- fftw | ||
- libcurl | ||
|
||
test: | ||
commands: | ||
- scamp -d | ||
|
||
about: | ||
home: http://www.astromatic.net/software/scamp | ||
license: GPL-3.0 | ||
license_file: LICENSE | ||
summary: A utility that computes astrometric solutions from SExtractor catalogs | ||
description: | | ||
SCAMP (Software for Calibrating AstroMetry and Photometry) is a computer | ||
program that computes astrometric projection parameters from source | ||
catalogues derived from FITS images. The computed solution is expressed | ||
according to the WCS standard. | ||
doc_url: https://scamp.readthedocs.io/ | ||
dev_url: https://github.com/astromatic/scamp | ||
|
||
extra: | ||
recipe-maintainers: | ||
- teake |