diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2017-09-26 20:10:39 +1300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-11-04 07:17:48 +0700 |
commit | 730da78d0b33b18c270c535643878dc408bd5735 (patch) | |
tree | 5db3614653fa0725b5e06d757b2060c50bd1f2b6 | |
parent | 5524a85341b77c8a0224b449530aa9b3dd30ef1c (diff) | |
download | slackbuilds-730da78d0b33b18c270c535643878dc408bd5735.tar.gz |
games/supermariowar: Add patch to find newer yaml-cpp.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | games/supermariowar/supermariowar-2.0_beta1-yaml-cpp-config.cmake | 21 | ||||
-rw-r--r-- | games/supermariowar/supermariowar.SlackBuild | 2 |
2 files changed, 23 insertions, 0 deletions
diff --git a/games/supermariowar/supermariowar-2.0_beta1-yaml-cpp-config.cmake b/games/supermariowar/supermariowar-2.0_beta1-yaml-cpp-config.cmake new file mode 100644 index 0000000000..03fb190aad --- /dev/null +++ b/games/supermariowar/supermariowar-2.0_beta1-yaml-cpp-config.cmake @@ -0,0 +1,21 @@ +find_package(PkgConfig REQUIRED) +pkg_check_modules(YAML-CPP REQUIRED yaml-cpp) +find_path(YAML-CPP_INCLUDE_DIRECTORY + NAMES yaml.h + PATHS ${YAML-CPP_INCLUDE_DIRS} /usr/include/yaml-cpp +) +find_library(YAML-CPP_LIBRARY + NAMES yaml-cpp + PATHS ${YAML-CPP_LIBRARY_DIRS}) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(yaml-cpp + FOUND_VAR yaml-cpp_FOUND + REQUIRED_VARS YAML-CPP_LIBRARY YAML-CPP_INCLUDE_DIRECTORY +) + +if (yaml-cpp_FOUND) + set(yaml-cpp_INCLUDE_DIRS ${YAML-CPP_INCLUDE_DIRECTORY}) + set(yaml-cpp_LIBRARIES ${YAML-CPP_LIBRARY}) +endif () +mark_as_advanced(YAML-CPP_INCLUDE_DIRECTORY YAML-CPP_LIBRARY) diff --git a/games/supermariowar/supermariowar.SlackBuild b/games/supermariowar/supermariowar.SlackBuild index 19bab1366f..e4d179474c 100644 --- a/games/supermariowar/supermariowar.SlackBuild +++ b/games/supermariowar/supermariowar.SlackBuild @@ -50,6 +50,8 @@ cd $TMP rm -rf $PRGNAM-$TARVER tar xvf $CWD/$PRGNAM-$TARVER.tar.gz cd $PRGNAM-$TARVER +# thanks to the gentoo maintainers +cp $CWD/$PRGNAM-2.0_beta1-yaml-cpp-config.cmake cmake/Findyaml-cpp.cmake chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ |