Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[skip appveyor] add iml #2385

Merged
merged 1 commit into from
Feb 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions recipes/iml/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

export CPPFLAGS="-I$PREFIX/include $CPPFLAGS"
export LDFLAGS="-L$PREFIX/lib $LDFLAGS"
export LD_LIBRARY_PATH="$PREFIX/lib:$LD_LIBRARY_PATH"
export CFLAGS="-g -O3 $CFLAGS"

chmod +x configure
./configure \
--prefix="$PREFIX" \
--libdir="$PREFIX/lib" \
--enable-shared \
--with-default="$PREFIX" \
--with-cblas="-lopenblas" \
--with-cblas-include="$PREFIX/include"

make
make check
make install
49 changes: 49 additions & 0 deletions recipes/iml/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{% set version = "1.0.5" %}
{% set name = "iml" %}
{% set variant = "openblas" %}

package:
name: {{ name }}
version: {{ version }}

source:
fn: {{ name }}-{{ version }}.tar.bz2
url: http://www.cs.uwaterloo.ca/~astorjoh/{{ name }}-{{ version }}.tar.bz2
sha256: 1dad666850895a5709b00b97422e2273f293cfadea7697a9f90b90953e847c2a

build:
number: 0
skip: true # [win]
features:
- blas_{{ variant }}

requirements:
build:
- toolchain
- libtool
- gmp >=5.0.1,<7
- openblas 0.2.19|0.2.19.*
- blas 1.1 {{ variant }}
run:
- gmp >=5.0.1,<7
- openblas 0.2.19|0.2.19.*
- blas 1.1 {{ variant }}

test:
commands:
- test -f ${PREFIX}/include/{{ name }}.h
- test -f ${PREFIX}/lib/lib{{ name }}.a
- test -f ${PREFIX}/lib/lib{{ name }}.dylib # [osx]
- test -f ${PREFIX}/lib/lib{{ name }}.so # [linux]

about:
home: https://cs.uwaterloo.ca/~astorjoh/iml.html
license: GPLv2
license_file: COPYING
summary: |
IML is a free library of C source code which implements algorithms for computing
exact solutions to dense systems of linear equations over the integers.

extra:
recipe-maintainers:
- isuruf