Skip to content

Commit

Permalink
Support custom APP_DIR via patch-script to fix QWT_INSTALL_PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
dholl committed May 4, 2017
1 parent a8cf1c5 commit e1c2b81
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
16 changes: 12 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,18 @@ function unpack() {
fi

for PP in $PATCHES; do
I "applying patch ${PP}"
cd ${TMP_DIR}/${T} \
&& git apply ${PP} \
|| E "git apply ${PP} failed"
if [ "${PP%".sh.patch"}" != "${PP}" ]; then
# This ends with .sh.patch, so source it:
I "applying script ${PP}"
cd ${TMP_DIR}/${T} \
&& . ${PP} \
|| E "sh ${PP} failed"
else
I "applying patch ${PP}"
cd ${TMP_DIR}/${T} \
&& git apply ${PP} \
|| E "git apply ${PP} failed"
fi
done
fi
}
Expand Down
13 changes: 0 additions & 13 deletions patches/qwt-6.1.3-00-use-gnuradio-app-prefix.patch

This file was deleted.

1 change: 1 addition & 0 deletions patches/qwt-6.1.3-00-use-gnuradio-app-prefix.sh.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sed -i orig -e 's,^\([[:space:]]*QWT_INSTALL_PREFIX[[:space:]]*=[[:space:]]*\)\([^[:space:]].*\)$,\1'"${INSTALL_DIR}"'/usr,' qwtconfig.pri

0 comments on commit e1c2b81

Please sign in to comment.