```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 ```
19 lines
876 B
Diff
19 lines
876 B
Diff
--- a/3rdParty/LibMiniUPnPc/SConscript 2016-09-07 10:29:12.251340787 +0200
|
|
+++ b/3rdParty/LibMiniUPnPc/SConscript 2016-09-07 10:29:49.165342691 +0200
|
|
@@ -46,11 +46,11 @@
|
|
if myenv["PLATFORM"] == "win32":
|
|
myenv.Append(CCFLAGS = ["-DWIN32", "-D_WIN32_WINNT=0x0501"])
|
|
|
|
- if myenv["PLATFORM"] != "win32" and myenv["PLATFORM"] != "darwin":
|
|
- conf = Configure(conf_env)
|
|
- if conf.CheckTypeSize("struct ip_mreqn", includes="#include <netinet/in.h>") == 0:
|
|
- myenv.Append(CCFLAGS = ["-DNEED_STRUCT_IP_MREQN"])
|
|
- conf.Finish()
|
|
+ #if myenv["PLATFORM"] != "win32" and myenv["PLATFORM"] != "darwin":
|
|
+ # conf = Configure(conf_env)
|
|
+ # if conf.CheckTypeSize("struct ip_mreqn", includes="#include <netinet/in.h>") == 0:
|
|
+ # myenv.Append(CCFLAGS = ["-DNEED_STRUCT_IP_MREQN"])
|
|
+ # conf.Finish()
|
|
|
|
myenv.WriteVal("src/miniupnpc/miniupnpcstrings.h", myenv.Value(
|
|
"""
|