Annotation of OpenXM/src/ox_math/mathlink/configure-cygwin, Revision 1.2
1.1 ohara 1: #!/bin/sh
1.2 ! ohara 2: # $OpenXM: OpenXM/src/ox_math/mathlink/configure-cygwin,v 1.1 2002/08/15 02:31:53 ohara Exp $
1.1 ohara 3:
4: ARCHIVE=Windows-ml_v3r8.zip
5: URL=http://support.wolfram.com/mathematica/mathlink/updates/v3r8/$ARCHIVE
6:
7: _fetch () {
8: if [ ! -f $ARCHIVE ] ; then
9: wget -nd $URL
10: fi
11: }
12:
13: _unzip () {
14: if [ -f $ARCHIVE ] ; then
15: unzip $ARCHIVE
16: if [ -e mldev32 ] ; then
17: rm -rf mldev32
18: fi
19: mv Windows/CompilerAdditions/mldev32 .
20: mv Windows/SystemAdditions/* mldev32/lib/
1.2 ! ohara 21: chmod +x mldev32/bin/*
1.1 ohara 22: rm -rf Windows
23: fi
24: }
25:
26: _dlltool () {
27: for i in ml32i1 ml32i2; do
28: (echo EXPORTS ; nm "$i"m.lib | grep 'T _' | sed 's/.* T _//' ) > $i.def
29: dlltool --dllname $i.dll --def $i.def --output-lib lib$i.a -k
30: rm -f $i.def
31: done
32: # rm -rf *.lib
33: }
34:
35: if [ ! -f ./.configure_done ]; then
36: _fetch
37: _unzip
38: (cd mldev32/lib ; _dlltool)
39: fi
40: touch .configure_done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>