Makefile 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 libxcomposite gdk-pixbuf
  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_NOPARALLEL:= 1
  18. PKG_ARCH_DEPENDS:= x86 x86_64 mips mipsel mips64 mips64el
  19. PKG_HOST_DEPENDS:= !netbsd !freebsd !openbsd !cygwin
  20. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.source.tar.bz2
  21. WRKDIST= ${WRKDIR}/mozilla-1.9.2
  22. include $(TOPDIR)/mk/package.mk
  23. $(eval $(call PKG_template,FIREFOX,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. ifeq (${ADK_LINUX_MIPS64EL},y)
  25. CONFIGURE_ARGS+= --disable-ipc
  26. else ifeq (${ADK_TARGET_LIB_UCLIBC},y)
  27. CONFIGURE_ARGS+= --disable-ipc
  28. else
  29. CONFIGURE_ARGS+= --enable-ipc
  30. endif
  31. CONFIGURE_ENV+= CROSS_COMPILE=1 \
  32. HOST_CC="${CC_FOR_BUILD}" \
  33. HOST_CFLAGS="${CFLAGS_FOR_BUILD}" \
  34. HOST_CXX="${CXX_FOR_BUILD}" \
  35. HOST_CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
  36. BUILD_LIBIDL_CONFIG="${BUILD_LIBIDL_CONFIG}" \
  37. PKG_HOSTLIB_DIR="${PKG_HOSTLIB_DIR}" \
  38. HOST_RANLIB="ranlib" HOST_AR="ar" \
  39. CPPFLAGS="-I${STAGING_TARGET_DIR}/usr/include/freetype2" \
  40. ac_cv_sqlite_secure_delete=yes \
  41. ac_cv_thread_keyword=no \
  42. ac_cv_sizeof_int_p=4
  43. CONFIGURE_ARGS+= --enable-application=browser \
  44. --enable-official-branding \
  45. --with-system-zlib \
  46. --with-system-jpeg \
  47. --with-system-png \
  48. --with-system-nss \
  49. --with-system-nspr \
  50. --enable-system-sqlite \
  51. --with-libIDL-prefix=${STAGING_TARGET_DIR}/usr \
  52. --with-glib-prefix=${STAGING_TARGET_DIR}/usr \
  53. --enable-libxul \
  54. --disable-tests \
  55. --disable-libconic \
  56. --disable-static \
  57. --disable-gnomeui \
  58. --disable-gnomevfs \
  59. --disable-optimize \
  60. --disable-necko-wifi \
  61. --disable-svg \
  62. --disable-mathml \
  63. --disable-jemalloc \
  64. --disable-crashreporter
  65. XAKE_FLAGS+= OS_RELEASE="2.6"
  66. XAKE_FLAGS+= ARCHFLAG="${TARGET_CFLAGS} ${TARGET_CPPFLAGS} ${TARGET_LDFLAGS}"
  67. post-install:
  68. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/bin
  69. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/lib
  70. $(CP) $(WRKINST)/usr/lib/firefox-${PKG_VERSION} \
  71. $(IDIR_FIREFOX)/usr/lib/
  72. $(CP) $(WRKINST)/usr/bin/firefox \
  73. $(IDIR_FIREFOX)/usr/bin
  74. include ${TOPDIR}/mk/pkg-bottom.mk