1
0

Makefile 2.8 KB

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