This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 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,20 @@ | ||
#!/bin/sh | ||
|
||
make | ||
|
||
# In order for conda to detect what you've built, you need to copy it into the | ||
# relevant directory in $PREFIX (the non-absolute paths below will be relative | ||
# to the root of the source tree): | ||
cp -rpv out/*.a $PREFIX/lib | ||
|
||
# Ditto for the headers. I noticed a util.h which is a bit too generic to be | ||
# copied into $PREFIX/include directly, so stash stuff in a scs subdir. | ||
mkdir $PREFIX/include/scs | ||
cp -rpv include/*.h $PREFIX/include/scs | ||
|
||
# To build/include the Python part you'd do something like: | ||
#$PYTHON setup.py install | ||
# Although it would probably be better to separate the C lib from the Python | ||
# binding (i.e. have two separate conda packages, with the Python recipe pyscs | ||
# depending on the scs C lib). Actually, the above line may not even work | ||
# *unless* you do it like that. |
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,24 @@ | ||
package: | ||
name: scs | ||
version: 1.0.2 | ||
|
||
source: | ||
fn: scs-1.0.2.zip [not win] | ||
url: https://github.com/cvxgrp/scs/archive/1.0.2.zip | ||
patches: | ||
- scs.mk.patch | ||
|
||
build: | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- system [linux] | ||
run: | ||
- system [linux] | ||
|
||
about: | ||
home: https://github.com/cvxgrp/scs | ||
license: MIT | ||
|
||
# vim:set ts=8 sw=2 sts=2 tw=78 et: |
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,14 @@ | ||
--- scs.mk.orig 2014-05-15 00:11:00.000000000 -0400 | ||
+++ scs.mk 2014-05-15 00:11:22.000000000 -0400 | ||
@@ -11,6 +11,11 @@ | ||
|
||
CFLAGS = -g -Wall -pedantic -O3 -funroll-loops -Wstrict-prototypes -Iinclude | ||
|
||
+ifeq ($(CONDA_BUILD), 1) | ||
+CFLAGS += -I$(PREFIX)/include | ||
+LDFLAGS += -L$(PREFIX)/lib -lgfortran | ||
+endif | ||
+ | ||
LINSYS = linsys | ||
DIRSRC = $(LINSYS)/direct | ||
DIRSRCEXT = $(DIRSRC)/external |