diff --git a/srcpkgs/subversion/template b/srcpkgs/subversion/template index b52bdb5f801..5dbabc056ca 100644 --- a/srcpkgs/subversion/template +++ b/srcpkgs/subversion/template @@ -42,8 +42,9 @@ pre_configure() { # Use apr-1-config and apu-1-config wrappers vsed -i config_vars.mk \ - -e "s;/usr/bin/\(ap.-1-config\);${XBPS_WRAPPERDIR}/\1;g" \ - -e "s;-I/usr/include;-I${XBPS_CROSS_BASE}/usr/include;g" + -e "/^APR_CONFIG/ s;=.*;= ${XBPS_WRAPPERDIR}/apr-1-config;" \ + -e "/^APU_CONFIG/ s;=.*;= ${XBPS_WRAPPERDIR}/apu-1-config;" \ + -e "s;\([I ]\)/usr/include;\1${XBPS_CROSS_BASE}/usr/include;g" export PERL5LIB=${XBPS_STATEDIR}/perlprefix/${XBPS_TARGET_MACHINE}-linux mkdir -p $PERL5LIB