diff --git a/recipe/build.sh b/recipe/build.sh index f0165a7..9e3a575 100755 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -2,17 +2,23 @@ export CXXFLAGS="$CXXFLAGS -DGIFLIB_MAJOR=5" -mkdir -vp ${PREFIX}/bin; -mkdir build; cd build; -cmake $SRC_DIR \ - -DUSE_FFMPEG=ON \ - -DOIIO_BUILD_TOOLS=OFF \ - -DOIIO_BUILD_TESTS=OFF \ - -DUSE_PYTHON=ON \ - -DUSE_OPENCV=OFF \ - -DCMAKE_INSTALL_PREFIX=$PREFIX \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DCMAKE_BUILD_TYPE=Release \ - -DPYTHON_VERSION=$PY_VER \ +mkdir -p ${PREFIX}/bin + +mkdir build + +pushd build; +cmake ${CMAKE_ARGS} \ + -DUSE_FFMPEG=ON \ + -DOIIO_BUILD_TOOLS=OFF \ + -DOIIO_BUILD_TESTS=OFF \ + -DUSE_PYTHON=ON \ + -DUSE_OPENCV=OFF \ + -DCMAKE_INSTALL_PREFIX=$PREFIX \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=Release \ + -DPYTHON_VERSION=$PY_VER \ + .. make all -j${CPU_COUNT} + +popd