```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 ```
33 lines
1 KiB
Diff
33 lines
1 KiB
Diff
Index: CMakeLists.txt
|
|
===================================================================
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -75,11 +75,6 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
#RPATH setup - more below too
|
|
-if (WANT_NORPATH OR WANT_DISTROBUILD)
|
|
- set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
|
-else()
|
|
- set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
|
-endif()
|
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
|
set(CMAKE_SKIP_RULE_DEPENDENCY TRUE)
|
|
set(CMAKE_SKIP_BUILD_RPATH TRUE)
|
|
@@ -330,15 +325,6 @@ include (CMakeLists_Directories.cmake)
|
|
|
|
#Convert our simpler command line option to the CMake style
|
|
#None, Debug, Release, .. or custom ones
|
|
-if(WANT_DEBUG)
|
|
- set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Set Debug Build Type" FORCE)
|
|
-endif()
|
|
-if (WANT_RELEASEWITHDEBUG)
|
|
- set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Set Release with Debug Info Build Type" FORCE)
|
|
-endif()
|
|
-if(NOT WANT_DEBUG AND NOT WANT_RELEASEWITHDEBUG)
|
|
- set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Set Release Build Type" FORCE)
|
|
-endif()
|
|
|
|
|
|
|