mingw-config 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #!/bin/sh -e
  2. # aria2 - The high speed download utility
  3. #
  4. # Copyright (C) 2012 Tatsuhiro Tsujikawa
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. #
  20. # In addition, as a special exception, the copyright holders give
  21. # permission to link the code of portions of this program with the
  22. # OpenSSL library under certain conditions as described in each
  23. # individual source file, and distribute linked combinations
  24. # including the two.
  25. # You must obey the GNU General Public License in all respects
  26. # for all of the code used other than OpenSSL. If you modify
  27. # file(s) with this exception, you may extend this exception to your
  28. # version of the file(s), but you are not obligated to do so. If you
  29. # do not wish to do so, delete this exception statement from your
  30. # version. If you delete this exception statement from all source
  31. # files in the program, then also delete it here.
  32. # This is the configure script wrapper for cross-compiling MinGW32
  33. # build on Debian Linux using mingw-w64. Some environment variables
  34. # can be adjusted to change build settings:
  35. #
  36. # HOST: cross-compile to build programs to run on HOST. It defaults to
  37. # i686-w64-mingw32. To build 64 bit binary, specify
  38. # x86_64-w64-mingw32.
  39. #
  40. # PREFIX: Prefix to the directory where dependent libraries are
  41. # installed. It defaults to /usr/local/$HOST. -I$PREFIX/include
  42. # will be added to CPPFLAGS. -L$PREFIX/lib will be added to
  43. # LDFLAGS. $PREFIX/lib/pkgconfig will be set to
  44. # PKG_CONFIG_LIBDIR.
  45. #
  46. # In this configuration, the following dependent libraries are used:
  47. #
  48. # * c-ares
  49. # * openssl
  50. # * expat
  51. # * sqlite3
  52. # * zlib
  53. # * cppunit
  54. test -z "$HOST" && HOST=i686-w64-mingw32
  55. test -z "$PREFIX" && PREFIX=/usr/local/$HOST
  56. ./configure \
  57. --host=$HOST \
  58. --prefix=$PREFIX \
  59. --without-included-gettext \
  60. --disable-nls \
  61. --with-libcares \
  62. --without-gnutls \
  63. --with-openssl \
  64. --with-sqlite3 \
  65. --without-libxml2 \
  66. --with-libexpat \
  67. --with-libz \
  68. --with-cppunit-prefix=$PREFIX \
  69. ARIA2_STATIC=yes \
  70. CPPFLAGS="-I$PREFIX/include" \
  71. LDFLAGS="-L$PREFIX/lib" \
  72. PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig"