Makefile 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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.13
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= d7c90aed8209beefa74badf02e8eeae1
  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_ARCH_DEPENDS:= x86 x86_64 mips mipsel mips64 mips64el
  18. PKG_HOST_DEPENDS:= !netbsd !freebsd !openbsd !cygwin
  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="${HOST_LIBIDL_CONFIG}" \
  33. PKG_HOSTLIB_DIR="${PKG_HOSTLIB_DIR}" \
  34. HOST_RANLIB="ranlib" HOST_AR="ar" \
  35. CPPFLAGS="-I${STAGING_TARGET_DIR}/usr/include/freetype2" \
  36. ac_cv_sqlite_secure_delete=yes \
  37. ac_cv_thread_keyword=no \
  38. ac_cv_sizeof_int_p=4
  39. CONFIGURE_ARGS+= --enable-application=browser \
  40. --enable-official-branding \
  41. --with-system-zlib \
  42. --with-system-jpeg \
  43. --with-system-png \
  44. --with-system-nss \
  45. --with-system-nspr \
  46. --enable-system-sqlite \
  47. --with-libIDL-prefix=${STAGING_TARGET_DIR}/usr \
  48. --with-glib-prefix=${STAGING_TARGET_DIR}/usr \
  49. --enable-libxul \
  50. --disable-tests \
  51. --disable-libconic \
  52. --disable-static \
  53. --disable-gnomeui \
  54. --disable-gnomevfs \
  55. --disable-optimize \
  56. --disable-necko-wifi \
  57. --disable-svg \
  58. --disable-mathml \
  59. --disable-crashreporter
  60. XAKE_FLAGS+= OS_RELEASE="2.6"
  61. post-install:
  62. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/bin
  63. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/lib
  64. $(CP) $(WRKINST)/usr/lib/firefox-${PKG_VERSION} \
  65. $(IDIR_FIREFOX)/usr/lib/
  66. $(CP) $(WRKINST)/usr/bin/firefox \
  67. $(IDIR_FIREFOX)/usr/bin
  68. include ${TOPDIR}/mk/pkg-bottom.mk