4b97cd2fb4
```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 ```
14 lines
440 B
Diff
14 lines
440 B
Diff
--- a/CMakeLists.txt 2016-09-15 01:51:53.168404310 -0500
|
|
+++ b/CMakeLists.txt 2016-09-15 16:00:14.326726871 -0500
|
|
@@ -4,6 +4,11 @@
|
|
|
|
include (StepmaniaCore.cmake)
|
|
|
|
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXXFLAGS}")
|
|
+set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${LDFLAGS}")
|
|
+set(WITH_MINIMAID OFF)
|
|
+set(CMAKE_INSTALL_PREFIX "${DESTDIR}/opt")
|
|
+
|
|
# The external libraries need to be included.
|
|
add_subdirectory(extern)
|
|
|