summaryrefslogtreecommitdiff
path: root/lang/pm3-base/scripts
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>2000-02-10 05:46:18 +0000
committerJohn Polstra <jdp@FreeBSD.org>2000-02-10 05:46:18 +0000
commit76acab505b23478fbcfcd9beaa66e37d2cff99a3 (patch)
treef4ad65498b7f9d7ce01c040678e1f9965a5159cb /lang/pm3-base/scripts
parentAdd the xmms-mikmod port. (diff)
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.
Notes
Notes: svn path=/head/; revision=25633
Diffstat (limited to 'lang/pm3-base/scripts')
-rw-r--r--lang/pm3-base/scripts/configure9
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/pm3-base/scripts/configure b/lang/pm3-base/scripts/configure
new file mode 100644
index 000000000000..34ff8649b77a
--- /dev/null
+++ b/lang/pm3-base/scripts/configure
@@ -0,0 +1,9 @@
+#! /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}