Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pydata/conda-recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Jul 11, 2014
2 parents b166904 + 3f6d96a commit 93c23ef
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
28 changes: 28 additions & 0 deletions libdynd/bld.bat
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
28 changes: 28 additions & 0 deletions libdynd/build.sh
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
15 changes: 15 additions & 0 deletions libdynd/meta.yaml
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

0 comments on commit 93c23ef

Please sign in to comment.