1 | #!/bin/bash |
---|
2 | # |
---|
3 | # Notes: |
---|
4 | # |
---|
5 | # (1) Use gcc-4.7 to build GraphicsMagick |
---|
6 | # |
---|
7 | # sudo port install GraphicsMagick +q32 configure.compiler=macports-gcc-4.7 |
---|
8 | # |
---|
9 | # (2) Edit libgnu/stdio.in.h and remove the lines below. |
---|
10 | # |
---|
11 | # /* It is very rare that the developer ever has full control of stdin, |
---|
12 | # so any use of gets warrants an unconditional warning; besides, C11 |
---|
13 | # removed it. */ |
---|
14 | # #undef gets |
---|
15 | # #if HAVE_RAW_DECL_GETS |
---|
16 | # _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); |
---|
17 | # #endif |
---|
18 | # |
---|
19 | GCCVER=4.7 |
---|
20 | |
---|
21 | ./configure \ |
---|
22 | CC="ccache gcc-mp-$GCCVER" \ |
---|
23 | CFLAGS="-pipe -O2 -m64 -g" \ |
---|
24 | CPPFLAGS="-D_THREAD_SAFE -I/opt/local/include" \ |
---|
25 | LDFLAGS="-L/opt/local/lib -m64 " \ |
---|
26 | CXX="ccache g++-mp-$GCCVER" \ |
---|
27 | CXXFLAGS="-pipe -O2 -m64" \ |
---|
28 | SHLIB_CXXLD="g++-mp-$GCCVER" \ |
---|
29 | FC="ccache gfortran-mp-$GCCVER" \ |
---|
30 | F77="ccache gfortran-mp-$GCCVER" \ |
---|
31 | FFLAGS="-pipe -O2 -m64" \ |
---|
32 | LLVM_CONFIG=/opt/local/bin/llvm-config-mp-3.4 \ |
---|
33 | --disable-jit \ |
---|
34 | --with-magick=GraphicsMagick \ |
---|
35 | --with-lapack="-llapack -latlas -lgfortran" \ |
---|
36 | --with-blas="-lcblas -lf77blas -latlas -lgfortran" \ |
---|
37 | --prefix=/usr/local/octave/4.1.0 \ |
---|
38 | --enable-gui \ |
---|
39 | --disable-java \ |
---|
40 | --with-framework-carbon \ |
---|
41 | --with-arpack \ |
---|
42 | --enable-docs \ |
---|
43 | --with-opengl \ |
---|
44 | --without-x \ |
---|
45 | --enable-link-all-dependencies |
---|
46 | |
---|