hooks/script-wrapper: create xmlrpc-c-config wrapper.

This commit is contained in:
Juan RP 2014-06-25 09:29:25 +02:00
parent b036a5ae0e
commit 4316138685

View file

@ -37,6 +37,17 @@ _EOF
chmod 755 ${WRAPPERDIR}/${wrapper} chmod 755 ${WRAPPERDIR}/${wrapper}
} }
generic_wrapper3() {
local wrapper="$1"
[ ! -x ${XBPS_CROSS_BASE}/usr/bin/${wrapper} ] && return 0
[ -x ${WRAPPERDIR}/${wrapper} ] && return 0
cp ${XBPS_CROSS_BASE}/usr/bin/${wrapper} ${WRAPPERDIR}
sed -e "s,/usr/include,${XBPS_CROSS_BASE}/usr/include,g" -i ${WRAPPERDIR}/${wrapper}
sed -e "s,/usr/lib,${XBPS_CROSS_BASE}/usr/lib,g" -i ${WRAPPERDIR}/${wrapper}
chmod 755 ${WRAPPERDIR}/${wrapper}
}
python_wrapper() { python_wrapper() {
local wrapper="$1" version="$2" local wrapper="$1" version="$2"
@ -69,6 +80,7 @@ hook() {
generic_wrapper2 gpg-error-config generic_wrapper2 gpg-error-config
generic_wrapper2 libpng-config generic_wrapper2 libpng-config
generic_wrapper2 ncurses5-config generic_wrapper2 ncurses5-config
generic_wrapper3 xmlrpc-c-config
python_wrapper python-config 2.7 python_wrapper python-config 2.7
python_wrapper python3.4-config 3.4m python_wrapper python3.4-config 3.4m