Skip to content

Commit

Permalink
Specify CMAKE_ARGS
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Oct 2, 2023
1 parent 3c554d2 commit 4b96842
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4b96842

Please sign in to comment.