forked from conda-archive/conda-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:pydata/conda-recipes
- Loading branch information
Showing
3 changed files
with
71 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,28 @@ | ||
mkdir build | ||
cd build | ||
|
||
REM Override cmake generator to visual studio 2010 | ||
if "%ARCH%" == "32" set CMAKE_GENERATOR=Visual Studio 10 | ||
if "%ARCH%" == "64" set CMAKE_GENERATOR=Visual Studio 10 Win64 | ||
if "%ARCH%" == "32" set MSVC_VCVARS_PLATFORM=x86 | ||
if "%ARCH%" == "64" set MSVC_VCVARS_PLATFORM=amd64 | ||
|
||
set MSVC_VERSION=10.0 | ||
|
||
REM Configure the appropriate visual studio command line environment | ||
if "%PROGRAMFILES(X86)%" == "" set VCDIR=%PROGRAMFILES%\Microsoft Visual Studio %MSVC_VERSION%\VC | ||
if NOT "%PROGRAMFILES(X86)%" == "" set VCDIR=%PROGRAMFILES(X86)%\Microsoft Visual Studio %MSVC_VERSION%\VC | ||
call "%VCDIR%\vcvarsall.bat" %MSVC_VCVARS_PLATFORM% | ||
IF %ERRORLEVEL% NEQ 0 exit /b 1 | ||
|
||
REM Configure step | ||
cmake -G "%CMAKE_GENERATOR%" -DCMAKE_BUILD_TYPE=Release -DDYND_INSTALL_LIB=ON -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% -DCMAKE_INSTALL_PREFIX:PATH=%LIBRARY_PREFIX% %SRC_DIR% | ||
if errorlevel 1 exit /b 1 | ||
|
||
REM Build step | ||
devenv %PKG_NAME%.sln /Build "%RELEASE_TARGET%" | ||
if errorlevel 1 exit /b 1 | ||
|
||
REM Install step | ||
devenv %PKG_NAME%.sln /Build "%RELEASE_TARGET%" /Project INSTALL | ||
if errorlevel 1 exit /b 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,28 @@ | ||
#!/bin/bash | ||
|
||
if [[ (`uname` == Linux) && (`uname -m` != armv6l) ]]; then | ||
CC=gcc44 | ||
CXX=g++44 | ||
elif [ `uname` == Darwin ]; then | ||
CC=gcc-4.2 | ||
CXX=g++-4.2 | ||
EXTRA="-DCMAKE_OSX_SYSROOT=$SDK" | ||
# to get cmake onto PATH | ||
PATH=$SYS_PREFIX/bin:$PATH | ||
else | ||
CC=cc | ||
CXX=c++ | ||
fi | ||
|
||
mkdir build | ||
cd build | ||
cmake \ | ||
$EXTRA \ | ||
-DCMAKE_C_COMPILER=$CC \ | ||
-DCMAKE_CXX_COMPILER=$CXX \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DDYND_SHARED_LIB=ON \ | ||
-DDYND_INSTALL_LIB=ON \ | ||
-DCMAKE_INSTALL_PREFIX=$PREFIX .. || exit 1 | ||
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,15 @@ | ||
package: | ||
name: libdynd | ||
version 0.6.2 | ||
|
||
source: | ||
git_url: [email protected]:ContinuumIO/libdynd.git | ||
git_tag: v0.6.2 | ||
|
||
requirements: | ||
build: | ||
- cmake [linux] | ||
|
||
about: | ||
home: https://github.com/ContinuumIO/libdynd | ||
license: BSD |