Makefile 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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_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 \
  31. HOST_CC="${CC_FOR_BUILD}" \
  32. HOST_CFLAGS="${CFLAGS_FOR_BUILD}" \
  33. HOST_CXX="${CXX_FOR_BUILD}" \
  34. HOST_CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
  35. BUILD_LIBIDL_CONFIG="${BUILD_LIBIDL_CONFIG}" \
  36. PKG_HOSTLIB_DIR="${PKG_HOSTLIB_DIR}" \
  37. HOST_RANLIB="ranlib" HOST_AR="ar" \
  38. CPPFLAGS="-I${STAGING_TARGET_DIR}/usr/include/freetype2" \
  39. ac_cv_sqlite_secure_delete=yes \
  40. ac_cv_thread_keyword=no \
  41. ac_cv_sizeof_int_p=4
  42. CONFIGURE_ARGS+= --enable-application=browser \
  43. --enable-official-branding \
  44. --with-system-zlib \
  45. --with-system-jpeg \
  46. --with-system-png \
  47. --with-system-nss \
  48. --with-system-nspr \
  49. --enable-system-sqlite \
  50. --with-libIDL-prefix=${STAGING_TARGET_DIR}/usr \
  51. --with-glib-prefix=${STAGING_TARGET_DIR}/usr \
  52. --enable-libxul \
  53. --disable-tests \
  54. --disable-libconic \
  55. --disable-static \
  56. --disable-gnomeui \
  57. --disable-gnomevfs \
  58. --disable-optimize \
  59. --disable-necko-wifi \
  60. --disable-svg \
  61. --disable-mathml \
  62. --disable-crashreporter
  63. XAKE_FLAGS+= OS_RELEASE="2.6"
  64. XAKE_FLAGS+= ARCHFLAG="${TARGET_CFLAGS} ${TARGET_CPPFLAGS} ${TARGET_LDFLAGS}"
  65. post-install:
  66. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/bin
  67. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/lib
  68. $(CP) $(WRKINST)/usr/lib/firefox-${PKG_VERSION} \
  69. $(IDIR_FIREFOX)/usr/lib/
  70. $(CP) $(WRKINST)/usr/bin/firefox \
  71. $(IDIR_FIREFOX)/usr/bin
  72. include ${TOPDIR}/mk/pkg-bottom.mk