diff options
Diffstat (limited to 'package/emulator-common-lib-dev.install.macos')
-rw-r--r-- | package/emulator-common-lib-dev.install.macos | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/package/emulator-common-lib-dev.install.macos b/package/emulator-common-lib-dev.install.macos new file mode 100644 index 0000000..2bdb169 --- /dev/null +++ b/package/emulator-common-lib-dev.install.macos @@ -0,0 +1,23 @@ +#!/bin/sh -xe + +PKG_INSTALL_PATH="${INSTALLED_PATH}" +if [ -z "$PKG_INSTALL_PATH" ] +then + exit 2; +fi +echo $PKG_INSTALL_PATH + +## adjust pkgconfig (.pc) file + +PCs=`find "${PKG_INSTALL_PATH}" -name '*.pc'` + +for pc in ${PCs}; do + echo "$pc" + + for line in `grep -n '^prefix=' "${pc}" | cut -f 1 -d :`; do + echo "$line" + done + + sed -i ".bak" -e '/^prefix/c\' -e "${line}s|^|prefix="${PKG_INSTALL_PATH}"|" "$pc" + rm "${pc}".bak +done |