aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-06 09:33:32 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-06 09:33:32 +0700
commit6e7754137e8dc9f24f252b26f4e39658a93a2bb0 (patch)
treee8030a75c15c9cd9b85b764acdbac114c71abc21 /libraries
parent8f5f8f8831a8b82c896a3c4d355f6bfc9aafe033 (diff)
libraries/ogre: Fix build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/ogre/ogre.SlackBuild38
1 files changed, 8 insertions, 30 deletions
diff --git a/libraries/ogre/ogre.SlackBuild b/libraries/ogre/ogre.SlackBuild
index 9be43d6e3129a..bd6162b384b6c 100644
--- a/libraries/ogre/ogre.SlackBuild
+++ b/libraries/ogre/ogre.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=ogre
VERSION=${VERSION:-1.9}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
SRCNAM="${PRGNAM}_src_v${VERSION//./-}"
@@ -61,22 +61,10 @@ else
fi
# cmake options
-OGRE_BUILD_COMPONENT_PAGING=${OGRE_BUILD_COMPONENT_PAGING:-ON}
-OGRE_BUILD_COMPONENT_PROPERTY=${OGRE_BUILD_COMPONENT_PROPERTY:-ON}
-OGRE_BUILD_COMPONENT_RTSHADERS=${OGRE_BUILD_COMPONENT_RTSHADERS:-ON}
-OGRE_BUILD_COMPONENT_TERRAIN=${OGRE_BUILD_COMPONENT_TERRAIN:-ON}
-OGRE_BUILD_PLUGIN_BSP=${OGRE_BUILD_PLUGIN_BSP:-ON}
-OGRE_BUILD_PLUGIN_PCZ=${OGRE_BUILD_PLUGIN_PCZ:-ON}
-OGRE_BUILD_RENDERSYSTEM_GL=${OGRE_BUILD_RENDERSYSTEM_GL:-ON}
-OGRE_BUILD_SAMPLES=${OGRE_BUILD_SAMPLES:-OFF}
-OGRE_BUILD_TESTS=${OGRE_BUILD_TESTS:-OFF}
-OGRE_BUILD_TOOLS=${OGRE_BUILD_TOOLS:-ON}
-OGRE_CONFIG_THREADS=${OGRE_CONFIG_THREADS:-2}
-OGRE_CONFIG_THREAD_PROVIDER=${OGRE_CONFIG_THREAD_PROVIDER:-boost}
-OGRE_DEPENDENCIES_DIR=${OGRE_DEPENDENCIES_DIR:-}
+OGRE_BUILD_SAMPLES=${OGRE_BUILD_SAMPLES:-ON}
OGRE_INSTALL_DOCS=${OGRE_INSTALL_DOCS:-ON}
-OGRE_STATIC=${OGRE_STATIC:-OFF}
-
+OGRE_INSTALL_DOCS=${OGRE_INSTALL_DOCS:-ON}
+OGRE_INSTALL_SAMPLES_SOURCE=${OGRE_INSTALL_SAMPLES_SOURCE:-ON}
set -e
rm -rf $PKG
@@ -94,24 +82,14 @@ find -L . \
mkdir build
cd build
+ CXXFLAGS+=' -Wno-deprecated-declarations' \
cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
-DOGRE_LIB_DIRECTORY=lib${LIBDIRSUFFIX} \
- -DOGRE_BUILD_COMPONENT_PAGING=$OGRE_BUILD_COMPONENT_PAGING \
- -DOGRE_BUILD_COMPONENT_PROPERTY=$OGRE_BUILD_COMPONENT_PROPERTY \
- -DOGRE_BUILD_COMPONENT_RTSHADERS=$OGRE_BUILD_COMPONENT_RTSHADERS \
- -DOGRE_BUILD_COMPONENT_TERRAIN=$OGRE_BUILD_COMPONENT_TERRAIN \
- -DOGRE_BUILD_PLUGIN_BSP=$OGRE_BUILD_PLUGIN_BSP \
- -DOGRE_BUILD_PLUGIN_PCZ=$OGRE_BUILD_PLUGIN_PCZ \
- -DOGRE_BUILD_RENDERSYSTEM_GL=$OGRE_BUILD_RENDERSYSTEM_GL \
-DOGRE_BUILD_SAMPLES=$OGRE_BUILD_SAMPLES \
-DOGRE_INSTALL_SAMPLES=$OGRE_BUILD_SAMPLES \
- -DOGRE_BUILD_TESTS=$OGRE_BUILD_TESTS \
- -DOGRE_BUILD_TOOLS=$OGRE_BUILD_TOOLS \
- -DOGRE_INSTALL_TOOLS=$OGRE_BUILD_TOOLS \
- -DOGRE_CONFIG_THREADS=$OGRE_CONFIG_THREADS \
- -DOGRE_CONFIG_THREAD_PROVIDER=$OGRE_CONFIG_THREAD_PROVIDER \
- -DOGRE_DEPENDENCIES_DIR=$OGRE_DEPENDENCIES_DIR \
- -DOGRE_STATIC=$OGRE_STATIC \
+ -DOGRE_INSTALL_DOCS=$OGRE_INSTALL_DOCS \
+ -DOGRE_INSTALL_SAMPLES_SOURCE=$OGRE_INSTALL_SAMPLES_SOURCE \
../
make
make install DESTDIR=$PKG