* wine 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
```
17 lines
499 B
Diff
17 lines
499 B
Diff
upstream: no
|
|
reason: Our SDL2-devel package has a for cross broken sdl2-config.cmake,
|
|
this patches switched back to a find module cmake script
|
|
|
|
---
|
|
--- a/CMakeLists.txt 2020-07-19 19:54:00.744509368 +0200
|
|
+++ b/CMakeLists.txt 2020-07-19 19:54:00.744509368 +0200
|
|
@@ -110,7 +110,7 @@
|
|
find_package(PNG REQUIRED)
|
|
|
|
find_package(Threads REQUIRED)
|
|
-find_package(SDL2 CONFIG)
|
|
+find_package(SDL2 REQUIRED MODULE)
|
|
if(SDL2_FOUND)
|
|
message(STATUS "Found SDL2 configuration file")
|
|
if(TARGET SDL2::SDL2)
|