Changeset 23714


Ignore:
Timestamp:
2011-02-16T14:13:14+13:00 (13 years ago)
Author:
sjm84
Message:

Added a mac-specific version of libiconv to fix issues with the 1.13.1 version conflicting with the system version. This mac-specific 1.11 version is the same as the system version but it needed to be included because the system does not contain a static version of the library and we need a static version for mgpp and library.cgi

Location:
main/trunk/greenstone2/common-src/packages
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/packages/configure

    r23643 r23714  
    187187echo ""
    188188cd "$PACKAGES/iconv"
    189 if test ! -d libiconv-1.13.1 ;
    190 then
    191   gzip -dc libiconv-1.13.1.tar.gz | tar -xf -
    192 fi
    193 
    194 cd "$PACKAGES/iconv/libiconv-1.13.1"
    195 
    196 if test -e Makefile ; then
    197   echo make distclean && \
    198   make distclean
     189
     190# Darwin requires a different version of iconv than the one we use for Linux
     191if test $GSDLOS != darwin ; then
     192
     193    if test ! -d libiconv-1.13.1 ; then
     194    gzip -dc libiconv-1.13.1.tar.gz | tar -xf -
     195    fi
     196    cd "$PACKAGES/iconv/libiconv-1.13.1"
     197else
     198    if test ! -d libiconv-1.11 ; then
     199    gzip -dc libiconv-1.11.tar.gz | tar -xf -
     200    fi
     201    cd "$PACKAGES/iconv/libiconv-1.11"
     202fi
     203
     204if test -e Makefile ; then 
     205    echo make distclean && \
     206    make distclean
    199207fi
    200208
    201209# configure
    202 echo CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" ./configure $CACHE_FILE --enable-shared --enable-static --prefix="$PACKAGES/iconv" $HOSTTARGETFLAGS $ENVIRONMENT
     210    echo CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" ./configure $CACHE_FILE --enable-shared --enable-static --prefix="$PACKAGES/iconv" $HOSTTARGETFLAGS $ENVIRONMENT
    203211CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" ./configure $CACHE_FILE --enable-shared --enable-static --prefix="$PACKAGES/iconv" $HOSTTARGETFLAGS $ENVIRONMENT
    204212
Note: See TracChangeset for help on using the changeset viewer.