1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/x11-toolkits/iv/scripts/configure

12 lines
327 B
Bash

#!/bin/sh
#
touch ${WRKSRC}/src/config/freebsd.cf
find ${WRKSRC} -name Makefile -print | xargs rm
xpath=`/usr/bin/which imake 2>/dev/null`
if [ -n $xpath ]; then
xpath=`echo $xpath | sed 's;/bin/imake$;;'`
sed "s;/usr/X386;$xpath;" ${WRKSRC}/makefile >${WRKSRC}/makefile.foo
mv ${WRKSRC}/makefile.foo ${WRKSRC}/makefile
fi