diff options
Diffstat (limited to 'tools/darwin/packaging/ios/mkdeb-ios.sh.in')
-rw-r--r-- | tools/darwin/packaging/ios/mkdeb-ios.sh.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/darwin/packaging/ios/mkdeb-ios.sh.in b/tools/darwin/packaging/ios/mkdeb-ios.sh.in index 4e9212688f..6aee2b042e 100644 --- a/tools/darwin/packaging/ios/mkdeb-ios.sh.in +++ b/tools/darwin/packaging/ios/mkdeb-ios.sh.in @@ -4,7 +4,7 @@ set -ex # usage: ./mkdeb-ios.sh release/debug (case insensitive) # Allows us to run mkdeb-ios.sh from anywhere in the three, rather than the tools/darwin/packaging/ios folder only -XBMC_DEPENDS_ROOT=@DEPENDS_ROOT_FOR_XCODE@ +NATIVEPREFIX=@NATIVEPREFIX@ SWITCH=`echo $1 | tr [A-Z] [a-z]` DIRNAME=`dirname $0` DSYM_TARGET_DIR=/Users/Shared/xbmc-depends/dSyms @@ -44,14 +44,14 @@ fi # also check for SIP (System Integrity Protection) here (via csrutil) - fakeroot et al are not working when it is enabled # fall back to oldschool sudo in that case -if [ -f "${XBMC_DEPENDS_ROOT}/buildtools-native/bin/fakeroot" -a "`csrutil status | grep enabled`"x == "x" ]; then - SUDO="${XBMC_DEPENDS_ROOT}/buildtools-native/bin/fakeroot" +if [ -f "${NATIVEPREFIX}/bin/fakeroot" -a "`csrutil status | grep enabled`"x == "x" ]; then + SUDO="${NATIVEPREFIX}/bin/fakeroot" elif [ -f "/usr/bin/sudo" ]; then SUDO="/usr/bin/sudo" fi -if [ -f "${XBMC_DEPENDS_ROOT}/buildtools-native/bin/dpkg-deb" ]; then +if [ -f "${NATIVEPREFIX}/bin/dpkg-deb" ]; then # make sure we pickup our tar, gnutar will fail when dpkg -i - bin_path=$(cd ${XBMC_DEPENDS_ROOT}/buildtools-native/bin; pwd) + bin_path=$(cd ${NATIVEPREFIX}/bin; pwd) export PATH=${bin_path}:${PATH} fi |