Skip to content

Commit

Permalink
[skip appveyor] add iml
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Feb 9, 2017
1 parent 15bc6a5 commit 3f84bdc
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
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

0 comments on commit 3f84bdc

Please sign in to comment.