KDEF5: kconfig + common fixes

This commit is contained in:
Ray Donnelly 2014-11-09 20:12:24 +00:00
parent 273aa8b99a
commit 39e94434d1
2 changed files with 11 additions and 5 deletions

View File

@ -23,3 +23,12 @@ _kde_f5_add_depends() {
shift
done
}
_kde_f5_CMAKE_BUILD_TYPE() {
if check_option "debug" "y"; then
echo "Debug"
else
echo "Release"
fi
}

View File

@ -32,10 +32,8 @@ build() {
QT5_PREFIX=${MINGW_PREFIX}
fi
#DEBUG_OPTIONS=("--debug-output" "--trace")
cmake ../${_basename}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_BUILD_TYPE=$(_kde_f5_CMAKE_BUILD_TYPE) \
-DCMAKE_INSTALL_PREFIX=${QT5_PREFIX} \
-DLIB_INSTALL_DIR=lib \
-DECM_MKSPECS_INSTALL_DIR=${QT5_PREFIX} \
@ -43,9 +41,8 @@ build() {
-DBUILD_TESTING=OFF \
-DECM_DIR=${MINGW_PREFIX}/share/ECM \
"${extra_config[@]}" \
"${DEBUG_OPTIONS[@]}" \
-G'MSYS Makefiles'
make VERBOSE=1
make
}
package() {