From b70ac23637be48642beae2a27207e75788452169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A4r=20Bj=C3=B6rklund?= Date: Sun, 5 Nov 2017 13:19:55 +0100 Subject: [PATCH] Change patch to use git apply --- CMakeLists.txt | 91 ++++++++++++++++++++++++-------------------------- README.md | 2 +- 2 files changed, 44 insertions(+), 49 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a8730c3..0d7b20e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,23 +38,18 @@ message(STATUS " KODI_PATH: ${KODI_PATH}") message(STATUS " ADDITIONAL_ARGS: ${ADDITIONAL_ARGS}") message(STATUS " INSTALL_PREFIX: ${INSTALL_PREFIX}") -find_program(PATCH patch) -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(PATCH REQUIRED_VARS PATCH) -if(NOT ${PATCH_FOUND}) - message(FATAL_ERROR "patch not found") -endif() +find_package(Git REQUIRED) +set(PATCH_APPLY ${GIT_EXECUTABLE} apply --inaccurate-eof) include(ExternalProject) - # dependencies required by others ExternalProject_Add(bzip2 DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz URL_HASH SHA256=a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -64,7 +59,7 @@ ExternalProject_Add(expat DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://sourceforge.net/projects/expat/files/expat/2.2.0/expat-2.2.0.tar.bz2 URL_HASH SHA256=d9e50ff2d19b3538bd2127902a89987474e1a4db8e43a66a4d1a712ab9a504ff - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -79,7 +74,7 @@ ExternalProject_Add(libiconv DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz URL_HASH SHA256=ccf536620a45458d26ba83887a983b96827001e92a13847b45e4925cc8913178 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -89,7 +84,7 @@ ExternalProject_Add(openssl DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://www.openssl.org/source/openssl-1.0.2k.tar.gz URL_HASH SHA256=6b3977c61f2aedf0f96367dcfb5c6e578cf37e7b8d913b4ecb6643c3cb88d8c0 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff INSTALL_COMMAND CMAKE_ARGS ${ADDITIONAL_ARGS} @@ -100,7 +95,7 @@ ExternalProject_Add(zlib DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL http://zlib.net/zlib-1.2.11.tar.gz URL_HASH SHA256=c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -119,7 +114,7 @@ ExternalProject_Add(cpluff DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL http://www.c-pluff.org/downloads/cpluff-0.1.3.tar.gz URL_HASH SHA256=bae2ff7c3df4cf3cd9b0f32936ebe88c61d7da7c60a33b7cef4b98f8fca9c73c - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -131,7 +126,7 @@ ExternalProject_Add(crossguid DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://github.com/graeme-hill/crossguid/archive/fef89a4.tar.gz URL_HASH SHA256=271f0cc8ca79f4e56398439c5d6e59dcc47b34f27b54ecda2491ef901e5bd65d - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -143,7 +138,7 @@ ExternalProject_Add(easyhook DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://github.com/EasyHook/EasyHook/archive/v2.7.6035.0.tar.gz URL_HASH SHA256=db5dafbc08ccd181dc8f2e11a7adf63b3e90b6bea974c326ce15fc4ba70d96b4 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -165,7 +160,7 @@ ExternalProject_Add(freetype DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://download.savannah.gnu.org/releases/freetype/freetype-2.7.1.tar.gz URL_HASH SHA256=162ef25aa64480b1189cdb261228e6c5c44f212aac4b4621e28cf2157efb59f5 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -176,7 +171,7 @@ ExternalProject_Add(libcdio DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://ftp.gnu.org/gnu/libcdio/libcdio-0.94.tar.gz URL_HASH SHA256=96e2c903f866ae96f9f5b9048fa32db0921464a2286f5b586c0f02699710025a - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -187,7 +182,7 @@ ExternalProject_Add(libfribidi DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL http://fribidi.org/download/fribidi-0.19.7.tar.bz2 URL_HASH SHA256=08222a6212bbc2276a2d55c3bf370109ae4a35b689acbc66571ad2a670595a8e - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -198,7 +193,7 @@ ExternalProject_Add(libyajl DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://github.com/lloyd/yajl/archive/2.1.0.tar.gz URL_HASH SHA256=3fb73364a5a30efe615046d07e6db9d09fd2b41c763c5f7d3bfb121cd5c5ac5a - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -211,7 +206,7 @@ ExternalProject_Add(lzo2 DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL http://www.oberhumer.com/opensource/lzo/download/lzo-2.09.tar.gz URL_HASH SHA256=f294a7ced313063c057c504257f437c8335c41bfeed23531ee4e6a2b87bcb34c - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -221,7 +216,7 @@ ExternalProject_Add(pcre DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://ftp.pcre.org/pub/pcre/pcre-8.40.tar.gz URL_HASH SHA256=1d75ce90ea3f81ee080cdc04e68c9c25a9fb984861a0618be7bbf676b18eda3e - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -241,7 +236,7 @@ ExternalProject_Add(sqlite DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL http://sqlite.com/2017/sqlite-amalgamation-3170000.zip URL_HASH SHA256=ad3d5152f7dd09117654736b416e656c46de83b251e71a14b9a2de3aab29cfb2 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -252,7 +247,7 @@ ExternalProject_Add(taglib DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL http://taglib.org/releases/taglib-1.11.1.tar.gz URL_HASH SHA256=b6d1a5a610aae6ff39d93de5efd0fdc787aa9e9dc1e7026fa4c961b26563526b - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -262,7 +257,7 @@ ExternalProject_Add(tinyxml DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://sourceforge.net/projects/tinyxml/files/tinyxml/2.6.2/tinyxml_2_6_2.tar.gz URL_HASH SHA256=15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -304,7 +299,7 @@ ExternalProject_Add(libass DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://github.com/libass/libass/releases/download/0.13.6/libass-0.13.6.tar.gz URL_HASH SHA256=62070da83b2139c1875c9db65ece37f80f955097227b7d46ade680221efdff4b - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff INSTALL_COMMAND CMAKE_ARGS ${ADDITIONAL_ARGS} @@ -318,7 +313,7 @@ ExternalProject_Add(curl DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://curl.haxx.se/download/curl-7.52.1.tar.gz URL_HASH SHA256=a8984e8b20880b621f61a62d95ff3c0763a3152093a9f9ce4287cfd614add6ae - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -342,7 +337,7 @@ ExternalProject_Add(dnssd DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-765.50.9.tar.gz URL_HASH SHA256=de61dd0034357aa50c60806726fb1f70fa8e953ff9cb62eccfb73efad10dba0a - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -353,7 +348,7 @@ ExternalProject_Add(lcms2 DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://sourceforge.net/projects/lcms/files/lcms/2.8/lcms2-2.8.tar.gz URL_HASH SHA256=66d02b229d2ea9474e62c2b6cd6720fde946155cd1d0d2bffdab829790a0fb22 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff COMMAND + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff COMMAND CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -374,7 +369,7 @@ ExternalProject_Add(libcec DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://github.com/Pulse-Eight/libcec/archive/libcec-4.0.2.tar.gz URL_HASH SHA256=b8b8dd31f3ebdd5472f03ab7d401600ea0d959b1288b9ca24bf457ef60e2ba27 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -385,7 +380,7 @@ ExternalProject_Add(libgpg-error DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.27.tar.bz2 URL_HASH SHA256=4f93aac6fecb7da2b92871bb9ee33032be6a87b174f54abf8ddf0911a22d29d2 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -396,7 +391,7 @@ ExternalProject_Add(libgcrypt DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.7.6.tar.bz2 URL_HASH SHA256=626aafee84af9d2ce253d2c143dc1c0902dda045780cc241f39970fc60be05bc - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -407,7 +402,7 @@ ExternalProject_Add(winflexbison DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://sourceforge.net/projects/winflexbison/files/win_flex_bison-2.5.9.zip URL_HASH SHA256=aeb05493db39c03579412a54872334dcc54a342d856a755998074008eee4ba25 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -419,7 +414,7 @@ ExternalProject_Add(libaacs DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL ftp://ftp.videolan.org/pub/videolan/libaacs/0.9.0/libaacs-0.9.0.tar.bz2 URL_HASH SHA512=b9c658db22a0966486070d3b762509a7c0120469ab29d1e57c1b624cad309701de8b92455ec649db4d731be4a5c29c38fb4f99bb7617dbb4254270284a1903f6 - PATCH_COMMAND ${CMAKE_SOURCE_DIR}/patch.exe -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -432,7 +427,7 @@ ExternalProject_Add(libbdplus DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://github.com/ace20022/libbdplus/archive/45c76dd.tar.gz URL_HASH SHA256=843081a7fb05567f5d0ca8bbe69996f3cf18bf94e76871519aa8f2e598210f7f - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -443,7 +438,7 @@ ExternalProject_Add(libmicrohttpd DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.55.tar.gz URL_HASH SHA256=0c1cab8dc9f2588bd3076a28f77a7f8de9560cbf2d80e53f9a8696ada80ed0f8 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -453,7 +448,7 @@ ExternalProject_Add(libnfs DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://github.com/sahlberg/libnfs/archive/libnfs-1.11.0.tar.gz URL_HASH SHA256=fc2e45df14d8714ccd07dc2bbe919e45a2e36318bae7f045cbbb883a7854640f - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -465,7 +460,7 @@ ExternalProject_Add(libxml2 DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL ftp://xmlsoft.org/libxml2/libxml2-2.9.4.tar.gz URL_HASH SHA256=ffb911191e509b966deb55de705387f14156e1a56b21824357cdf0053233633c - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff COMMAND + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff COMMAND CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -478,7 +473,7 @@ ExternalProject_Add(libxslt DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL ftp://xmlsoft.org/libxml2/libxslt-1.1.29.tar.gz URL_HASH SHA256=b5976e3857837e7617b29f2249ebb5eeac34e249208d31f1fbf7a6ba7a4090ce - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff COMMAND + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff COMMAND CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -491,7 +486,7 @@ ExternalProject_Add(libplist DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL http://www.libimobiledevice.org/downloads/libplist-1.12.tar.bz2 URL_HASH SHA256=0effdedcb3de128c4930d8c03a3854c74c426c16728b8ab5f0a5b6bdc0b644be - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -504,7 +499,7 @@ ExternalProject_Add(libwebp DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://github.com/webmproject/libwebp/archive/v0.6.0.tar.gz URL_HASH SHA256=e1bd8b81098b8094edba0f161baf89f9fb1492e3fca19cf1d28eff4b88518702 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -514,7 +509,7 @@ ExternalProject_Add(mysql-connector-c DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.1.9-src.tar.gz URL_HASH SHA256=4e808704443365ad5b649673d03eca8fbebc0a4da9f1f96616c6bd1b1901ab2b - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -530,8 +525,8 @@ ExternalProject_Add(python URL https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz URL_HASH SHA256=a4f05a0720ce0fd92626f0278b6b433eee9a6173ddf2bced7957dfb599a5ece1 PATCH_COMMAND - COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/python-cmake-buildsystem-b348a50.diff - COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/python-cmake-buildsystem-b348a50.diff + COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -549,7 +544,7 @@ ExternalProject_Add(libjpeg-turbo DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://sourceforge.net/projects/libjpeg-turbo/files/1.5.2/libjpeg-turbo-1.5.2.tar.gz URL_HASH SHA256=9098943b270388727ae61de82adec73cf9f0dbb240b3bc8b172595ebf405b528 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -564,7 +559,7 @@ ExternalProject_Add(pillow DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://pypi.python.org/packages/55/aa/f7f983fb72710a9daa4b3374b7c160091d3f94f5c09221f9336ade9027f3/Pillow-4.2.1.tar.gz URL_HASH SHA256=c724f65870e545316f9e82e4c6d608ab5aa9dd82d5185e5b2e72119378740073 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -577,7 +572,7 @@ ExternalProject_Add(pycryptodome URL https://pypi.python.org/packages/2b/9b/aaa940ab8affd66eed043d69332dc607cddd68f9e399d93dcdfc8149fb21/pycryptodome-3.4.7.tar.gz URL_HASH SHA256=18d8dfe31bf0cb53d58694903e526be68f3cf48e6e3c6dfbbc1e7042b1693af7 PATCH_COMMAND - COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -591,7 +586,7 @@ ExternalProject_Add(shairplay DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL https://github.com/juhovh/shairplay/archive/ce80e00.tar.gz URL_HASH SHA256=49ac0e0470ec6367f720c7b79a09165138f57b60f5949a2d9c38be5823d13294 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} @@ -603,7 +598,7 @@ ExternalProject_Add(libbluray DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL ftp://ftp.videolan.org/pub/videolan/libbluray/1.0.1/libbluray-1.0.1.tar.bz2 URL_HASH SHA512=798d38cc95af87599af5838e5c288f2536a73b33191db8ff3774cf7eb5b835006bea83693f016d47dff551001b98527d8b1f14051f673fb3b28073b820e325d7 - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff CMAKE_ARGS ${ADDITIONAL_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} diff --git a/README.md b/README.md index 57618cd..9b56c5c 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ ExternalProject_Add( DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads URL URL_HASH SHA256= - PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff + PATCH_COMMAND ${PATCH_APPLY} ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff BUILD_COMMAND CMAKE_ARGS ${ADDITIONAL_ARGS}