2021-02-23 14:53:43 +01:00
|
|
|
Index: CMakeLists.txt
|
|
|
|
===================================================================
|
srcpkgs/a*: convert patches to -Np1
* arduino and antiword is kept at -Np0
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
for p in ${template%/template}/patches/*; do
sed -i '
\,^[+-][+-][+-] /dev/null,b
/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
s,^[*][*][*] ,&a/,
/^--- /{
s,\(^--- \)\(./\)*,\1a/,
s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1,
s/[.][Oo][Rr][Ii][Gg]$//
s/[.]patched[.]\([^.]\)/.\1/
h
}
/^+++ -/{
g
s/^--- a/+++ b/
b
}
s,\(^+++ \)\(./\)*,\1b/,
' "$p"
done
sed -i '/^patch_args=/d' $template
done
```
2021-06-19 04:18:31 +02:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2021-02-23 14:53:43 +01:00
|
|
|
@@ -24,17 +24,17 @@ pkg_check_modules(SND sndfile REQUIRED)
|
|
|
|
include_directories( ${SND_INCLUDE_DIRS} )
|
|
|
|
#target_link_libraries( avtkDemo ${CAIRO_LIBRARIES} )
|
|
|
|
|
|
|
|
-SET(CMAKE_SHARED_LINKER_FLAGS "-fPIC -shared -L./src/avtk -Wl,--no-undefined")
|
|
|
|
-SET(CMAKE_C_FLAGS "-g -Wall -O1 -Wno-unused-variable")
|
|
|
|
-SET(CMAKE_CXX_FLAGS "-g -Wall -O1 -Wno-unused-variable -ftree-vectorize")
|
|
|
|
+SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fPIC -shared -L./src/avtk -Wl,--no-undefined")
|
2021-03-27 05:17:35 +01:00
|
|
|
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-unused-variable")
|
|
|
|
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-unused-variable -ftree-vectorize")
|
2021-02-23 14:53:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
# DSP sources
|
|
|
|
FILE(GLOB sources src/dsp/*.cxx src/dsp/rr/*.cxx src/dsp/eq/*.cc )
|
|
|
|
|
|
|
|
IF(BUILD_SSE)
|
|
|
|
- SET(CMAKE_C_FLAGS "-msse2 -mfpmath=sse")
|
|
|
|
- SET(CMAKE_CXX_FLAGS "-msse2 -mfpmath=sse")
|
|
|
|
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2 -mfpmath=sse")
|
|
|
|
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2 -mfpmath=sse")
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
IF(BUILD_GUI)
|