diff --git a/SPKG.txt b/SPKG.txt
a
|
b
|
|
23 | 23 | |
24 | 24 | == Changelog == |
25 | 25 | |
| 26 | === iconv-1.13.1.p4 (Jean-Pierre Flori, 5 January 2013) === |
| 27 | * #13912: let iconv build on Cygwin without additional prereqs. |
| 28 | |
26 | 29 | === iconv-1.13.1.p3 (David Kirkby, August 10th, 2010) === |
27 | 30 | * Use '$MAKE' instead of 'make' in spkg-install and spkg-check to enable |
28 | 31 | parallel builds, and allow the user to specify a different 'make' program. |
diff --git a/spkg-install b/spkg-install
a
|
b
|
|
1 | 1 | #!/usr/bin/env bash |
2 | 2 | |
3 | 3 | if [ -z "$SAGE_LOCAL" ]; then |
4 | | echo "SAGE_LOCAL undefined ... exiting" |
5 | | echo "Maybe run 'sage -sh'?" |
| 4 | echo >&2 "SAGE_LOCAL undefined ... exiting" |
| 5 | echo >&2 "Maybe run 'sage -sh'?" |
6 | 6 | exit 1 |
7 | 7 | fi |
8 | 8 | |
… |
… |
|
21 | 21 | |
22 | 22 | # Let an environment variable CFLAG64 specify the option to generate 64-bit |
23 | 23 | # code. If this is not set, default to -m64: |
24 | | if [ -z "$CFLAG64" ]; then |
| 24 | if [ -z "$CFLAG64" ]; then |
25 | 25 | CFLAG64=-m64 |
26 | 26 | fi |
27 | 27 | |
… |
… |
|
36 | 36 | export CC |
37 | 37 | fi |
38 | 38 | |
| 39 | # Disable NLS on Cygwin to be able to build libiconv without the Cygwin |
| 40 | # libiconv package. |
| 41 | if [ "$UNAME" = "CYGWIN" ]; then |
| 42 | ICONV_CONFIGURE="--disable-nls $ICONV_CONFIGURE" |
| 43 | fi |
| 44 | |
39 | 45 | cd src |
40 | 46 | |
41 | | ./configure --prefix="$SAGE_LOCAL" |
| 47 | ./configure --prefix="$SAGE_LOCAL" --libdir="$SAGE_LOCAL/lib" $ICONV_CONFIGURE |
42 | 48 | if [ $? -ne 0 ]; then |
43 | | echo "Error configuring iconv" |
| 49 | echo >&2 "Error configuring iconv" |
44 | 50 | exit 1 |
45 | 51 | fi |
46 | 52 | |
47 | 53 | $MAKE |
48 | 54 | if [ $? -ne 0 ]; then |
49 | | echo "Error building iconv" |
| 55 | echo >&2 "Error building iconv" |
50 | 56 | exit 1 |
51 | 57 | fi |
52 | 58 | |
53 | 59 | $MAKE install |
54 | 60 | if [ $? -ne 0 ]; then |
55 | | echo "Error installing iconv" |
| 61 | echo >&2 "Error installing iconv" |
56 | 62 | exit 1 |
57 | 63 | fi |
58 | 64 | exit 0 |
… |
… |
|
68 | 74 | esac |
69 | 75 | |
70 | 76 | # NOT REACHED |
71 | | |