Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= firefox
  5. PKG_VERSION:= 3.6.12
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 80f4d83f23a7c45fc3f1904964ea2a5a
  8. PKG_DESCR:= graphical webbrowser
  9. PKG_SECTION:= x11/apps
  10. PKG_DEPENDS:= libpthread alsa-lib dbus-glib glib libgtk libnotify
  11. PKG_DEPENDS+= nspr nss libjpeg atk pango cairo libxt libx11 libstdcxx
  12. PKG_DEPENDS+= libxdamage libxfixes libidl libsqlite
  13. PKG_BUILDDEP:= alsa-lib dbus-glib glib gtk+ libnotify libIDL libX11
  14. PKG_BUILDDEP+= nspr nss jpeg libXt fontconfig sqlite
  15. PKG_URL:= http://www.mozilla.org/
  16. PKG_SITES:= http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${PKG_VERSION}/source/
  17. PKG_TARGET_DEPENDS:= alix x86 x86_64 mips mipsel mips64 mips64el
  18. PKG_HOST_DEPENDS:= !netbsd !freebsd !openbsd !cygwin !darwin
  19. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.source.tar.bz2
  20. WRKDIST= ${WRKDIR}/mozilla-1.9.2
  21. include $(TOPDIR)/mk/package.mk
  22. $(eval $(call PKG_template,FIREFOX,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. ifeq (${ADK_LINUX_MIPS64EL},y)
  24. CONFIGURE_ARGS+= --disable-ipc
  25. else ifeq (${ADK_TARGET_LIB_UCLIBC},y)
  26. CONFIGURE_ARGS+= --disable-ipc
  27. else
  28. CONFIGURE_ARGS+= --enable-ipc
  29. endif
  30. CONFIGURE_ENV+= CROSS_COMPILE=1 HOST_CC="${HOSTCC}" HOST_CFLAGS="${HOSTCFLAGS}" \
  31. HOST_CXX="${HOSTCXX}" HOST_CXXFLAGS="${HOSTCXXFLAGS}" \
  32. HOST_LIBIDL_CONFIG="/usr/bin/libIDL-config-2" \
  33. CPPFLAGS="-I${STAGING_DIR}/usr/include/freetype2" \
  34. ac_cv_sqlite_secure_delete=yes \
  35. ac_cv_thread_keyword=no \
  36. ac_cv_sizeof_int_p=4
  37. CONFIGURE_ARGS+= --enable-application=browser \
  38. --enable-official-branding \
  39. --with-system-zlib \
  40. --with-system-jpeg \
  41. --with-system-png \
  42. --with-system-nss \
  43. --with-system-nspr \
  44. --enable-system-sqlite \
  45. --with-libIDL-prefix=${STAGING_DIR}/usr \
  46. --with-glib-prefix=${STAGING_DIR}/usr \
  47. --enable-libxul \
  48. --disable-tests \
  49. --disable-libconic \
  50. --disable-static \
  51. --disable-gnomeui \
  52. --disable-gnomevfs \
  53. --disable-optimize \
  54. --disable-necko-wifi \
  55. --disable-svg \
  56. --disable-mathml \
  57. --disable-crashreporter
  58. post-install:
  59. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/bin
  60. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/lib
  61. $(CP) $(WRKINST)/usr/lib/firefox-${PKG_VERSION} \
  62. $(IDIR_FIREFOX)/usr/lib/
  63. $(CP) $(WRKINST)/usr/bin/firefox \
  64. $(IDIR_FIREFOX)/usr/bin
  65. include ${TOPDIR}/mk/pkg-bottom.mk