microhttpd.sh 534 B

123456789101112131415161718
  1. #!/bin/bash
  2. fw_installed microhttpd && return 0
  3. VERSION=0.9.39
  4. MICROHTTPD=$IROOT/libmicrohttpd
  5. MICROHTTPD_HOME=$MICROHTTPD-$VERSION
  6. fw_get -O http://mirror.ibcp.fr/pub/gnu/libmicrohttpd/libmicrohttpd-$VERSION.tar.gz
  7. fw_untar libmicrohttpd-$VERSION.tar.gz
  8. cd libmicrohttpd-$VERSION
  9. ./configure --prefix=$MICROHTTPD_HOME
  10. make install
  11. echo "export MICROHTTPD_HOME=${MICROHTTPD_HOME}" > $IROOT/microhttpd.installed
  12. echo -e "export PATH=${MICROHTTPD_HOME}/bin:\$PATH" >> $IROOT/microhttpd.installed
  13. source $IROOT/microhttpd.installed