aboutsummaryrefslogtreecommitdiff
path: root/lang/modula-3/scripts/configure
diff options
context:
space:
mode:
Diffstat (limited to 'lang/modula-3/scripts/configure')
-rw-r--r--lang/modula-3/scripts/configure14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/modula-3/scripts/configure b/lang/modula-3/scripts/configure
new file mode 100644
index 000000000000..fd5670ef8fb5
--- /dev/null
+++ b/lang/modula-3/scripts/configure
@@ -0,0 +1,14 @@
+#! /bin/sh
+#
+# $Id$
+
+files_to_patch="\
+ ${WRKSRC}/boot-FreeBSD2/m3build/templates/FreeBSD2 \
+ ${WRKSRC}/m3/m3build/templates/FreeBSD2"
+temp_prefix=${WRKDIR}/installed
+
+for i in ${files_to_patch}; do
+ test -f ${i}.bak || cp -p ${i} ${i}.bak
+ rm -f ${i}
+ sed -e "s+!!PREFIX!!+${temp_prefix}+g" ${i}.bak >${i}
+done