yoshimi: cleanup, don't overwrite CMAKE_BUILD_TYPE

This commit is contained in:
Đoàn Trần Công Danh 2021-03-28 10:39:04 +07:00
parent 43c06778ff
commit 9834775306
2 changed files with 13 additions and 12 deletions

View File

@ -0,0 +1,12 @@
Index: src/CMakeLists.txt
===================================================================
--- src/CMakeLists.txt.orig
+++ src/CMakeLists.txt
@@ -262,7 +262,6 @@ if (BuildForDebug)
set (CMAKE_CXX_FLAGS_DEBUG ${BuildOptionsDebug})
message (STATUS "DEBUG Build, flags: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG}")
else()
- set (CMAKE_BUILD_TYPE "Release")
set (CMAKE_CXX_FLAGS_RELEASE ${BuildOptionsRelease})
message (STATUS "RELEASE Build, flags: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE}")
endif ()

View File

@ -4,6 +4,7 @@ version=1.7.4
revision=2
build_wrksrc=src
build_style=cmake
configure_args="-DCMAKE_INSTALL_DATAROOTDIR=/usr/share"
hostmakedepends="pkg-config fltk"
makedepends="boost-devel jack-devel fltk-devel fftw-devel mxml-devel cairo-devel
lv2 readline-devel ncurses-devel"
@ -17,15 +18,3 @@ checksum=27a8e33bda72aafae604e14841bed6373fc9e00ff70c98f1e13215d6a8808318
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" argp-standalone";;
esac
configure_args="-DCMAKE_INSTALL_DATAROOTDIR=/usr/share"
pre_configure() {
sed -i 's|ncurses|ncursesw|g' CMakeLists.txt
case "$XBPS_TARGET_MACHINE" in
i686*) ;;
x86_64*) ;;
*) sed -i -e "s|-msse -msse2 -mfpmath=sse||g" CMakeLists.txt;;
esac
}