build.sh 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. # Copyright (c) 2011 The Native Client Authors. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. ConfigureStep() {
  6. Banner "Configuring ${PACKAGE_NAME}"
  7. SetupCrossEnvironment
  8. # export the nacl tools
  9. export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
  10. export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
  11. export SDL_CONFIG=${NACLPORTS_LIBDIR}/../bin/sdl-config
  12. SDL_CFLAGS=`$SDL_CONFIG --cflags`
  13. SDL_LIBS="-lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_gfx -lSDL_net -lfreetype -ljpeg -lpng16 -lwebp -lvorbisfile -lvorbis -logg -lmikmod -lz -lbz2 -ltiff"
  14. export LIBS="-L${NACLPORTS_LIBDIR} ${SDL_LIBS} -lnacl_io -lpthread -lRegal -lm"
  15. export MANAPLUSDIR="${START_DIR}/src"
  16. # autoreconf -i ${SRC_DIR}
  17. autoreconf -i ${MANAPLUSDIR}
  18. # ${SRC_DIR}/configure
  19. ${MANAPLUSDIR}/configure \
  20. --enable-naclbuild \
  21. --disable-nls \
  22. --with-opengl \
  23. --without-librt \
  24. --without-mumble \
  25. --without-dyecmd \
  26. --host=nacl \
  27. --prefix=${PREFIX}
  28. }