summaryrefslogtreecommitdiff
path: root/lang/elk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-03-31 11:56:32 +0000
committeragc <agc@pkgsrc.org>1998-03-31 11:56:32 +0000
commita6a767f3b610e4bbbaaea22ec1616e97f234336b (patch)
tree79a9a18da57fbf587a1dabce7d00d26c946a1af4 /lang/elk
parent372f0ef8e8416c9d575ba8a0d1fe8385b286fb84 (diff)
downloadpkgsrc-a6a767f3b610e4bbbaaea22ec1616e97f234336b.tar.gz
Modify this for NetBSD - use symbolic links, rather than copying the
file. Work out, form the architecture, what format of executable to use (a.out or ELF), and use the appropriate configuration file. However, here is (as yet) no ELF configuration file, because I have no ELF system to try this on.
Diffstat (limited to 'lang/elk')
-rw-r--r--lang/elk/scripts/configure21
1 files changed, 19 insertions, 2 deletions
diff --git a/lang/elk/scripts/configure b/lang/elk/scripts/configure
index 8336f879540..0c8e0196a84 100644
--- a/lang/elk/scripts/configure
+++ b/lang/elk/scripts/configure
@@ -1,4 +1,21 @@
#!/bin/sh
-cp ${WRKSRC}/config/untested/386pc-freebsd2.1-cc ${WRKSRC}/config/system
-cp ${WRKSRC}/config/sites/386pc-freebsd2.1 ${WRKSRC}/config/site
+mach=`uname -m`
+
+case $mach in
+i386|sparc|m68k)
+ exetype=aout
+ ;;
+pmax|alpha)
+ exetype=elf
+ ;;
+*)
+ echo "Unrecognised machine type: $mach"
+ exit 1
+ ;;
+esac
+
+ln -sf ${WRKSRC}/config/untested/$exetype-netbsd-cc ${WRKSRC}/config/system
+ln -sf ${WRKSRC}/config/sites/$exetype-netbsd ${WRKSRC}/config/site
+
+exit 0