freebsd-ports/lang/pm3-base/scripts/configure
John Polstra 76acab505b Add four new ports for various portions of the Polytechnique
Montreal Modula-3 (PM3) distribution.  This is the most actively
maintained Modula-3 distribution, and I will probably make CVSup use
it soon.

These ports work for FreeBSD 2.x, 3.x, and 4.x on the i386, and
FreeBSD 4.x on the Alpha.
2000-02-10 05:46:18 +00:00

10 lines
246 B
Bash

#! /bin/sh
cfg=${WRKSRC}/m3config/src/${TARGET}
cp -p ${cfg} ${cfg}.bak || exit
sed \
-e "/^INSTALL_ROOT = /s|\".*\"|\"${PREFIX}\"|" \
-e "/^X11ROOT = /s|\".*\"|\"${X11BASE}/lib\"|" \
${cfg} > ${cfg}.tmp || exit
mv ${cfg}.tmp ${cfg}