Makefile 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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:= 4.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 3468a2c463b4fc2788ba621e4b511c30
  8. PKG_DESCR:= graphical webbrowser
  9. PKG_SECTION:= x11/apps
  10. PKG_DEPENDS:= libpthread alsa-lib dbus-glib glib libgtk libpng libtiff
  11. PKG_DEPENDS+= nspr nss libjpeg libatk pango cairo libxt libx11 libstdcxx hicolor-icon-theme
  12. PKG_DEPENDS+= libxdamage libxfixes libidl libsqlite libxcomposite gdk-pixbuf libintl
  13. PKG_BUILDDEP:= alsa-lib dbus-glib glib gtk+ libIDL libX11 MesaLib libtiff gdk-pixbuf
  14. PKG_BUILDDEP+= nspr nss jpeg libXt fontconfig sqlite atk libpng hicolor-icon-theme
  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 mips64 mips64el native
  20. PKG_HOST_DEPENDS:= !netbsd !freebsd !openbsd !cygwin
  21. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.source.tar.bz2
  22. WRKDIST= ${WRKDIR}/mozilla-2.0
  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_TARGET_SYSTEM_LEMOTE_YEELONG},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. TARGET_LDFLAGS+= -L$(STAGING_TARGET_DIR)/lib -L$(STAGING_TARGET_DIR)/usr/lib
  33. CONFIGURE_ENV+= CROSS_COMPILE=1 \
  34. HOST_CC="${CC_FOR_BUILD}" \
  35. HOST_CPPFLAGS="${CPPFLAGS_FOR_BUILD}" \
  36. HOST_CFLAGS="${CFLAGS_FOR_BUILD}" \
  37. HOST_LDFLAGS="${LDLAGS_FOR_BUILD}" \
  38. HOST_CXX="${CXX_FOR_BUILD}" \
  39. HOST_CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
  40. BUILD_LIBIDL_CONFIG="${BUILD_LIBIDL_CONFIG}" \
  41. PKG_HOSTLIB_DIR="${PKG_HOSTLIB_DIR}" \
  42. HOST_RANLIB="ranlib" HOST_AR="ar" \
  43. CPPFLAGS="-I${STAGING_TARGET_DIR}/usr/include/freetype2" \
  44. ac_cv_sqlite_secure_delete=yes \
  45. ac_cv_sqlite_threadsafe=yes \
  46. ac_cv_sqlite_enable_fts3=yes \
  47. ac_cv_sqlite_enable_unlock_notify=yes \
  48. ac_cv_thread_keyword=no \
  49. ac_cv_sizeof_int_p=4
  50. CONFIGURE_ARGS+= --enable-application=browser \
  51. --enable-official-branding \
  52. --with-system-zlib \
  53. --with-system-cairo \
  54. --with-system-pixman \
  55. --with-system-jpeg \
  56. --enable-system-sqlite \
  57. --with-libIDL-prefix=${STAGING_TARGET_DIR}/usr \
  58. --with-glib-prefix=${STAGING_TARGET_DIR}/usr \
  59. --enable-libxul \
  60. --disable-libnotify \
  61. --disable-accessibility \
  62. --disable-smil \
  63. --disable-dbus \
  64. --disable-debug \
  65. --disable-logging \
  66. --disable-strip \
  67. --disable-install-strip \
  68. --disable-tests \
  69. --disable-libconic \
  70. --disable-static \
  71. --disable-gnomeui \
  72. --disable-gnomevfs \
  73. --disable-optimize \
  74. --disable-necko-wifi \
  75. --disable-svg \
  76. --disable-mathml \
  77. --disable-jemalloc \
  78. --disable-crashreporter
  79. XAKE_FLAGS+= OS_RELEASE="2.6" HOST_CC=$(CC_FOR_BUILD) HOST_LDFLAGS=$(LDFLAGS_FOR_BUILD)
  80. XAKE_FLAGS+= ARCHFLAG="${TARGET_CFLAGS} ${TARGET_CPPFLAGS} ${TARGET_LDFLAGS}"
  81. firefox-install:
  82. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/bin
  83. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/lib
  84. $(CP) $(WRKINST)/usr/lib/firefox-${PKG_VERSION} \
  85. $(IDIR_FIREFOX)/usr/lib
  86. $(CP) $(WRKINST)/usr/bin/firefox \
  87. $(IDIR_FIREFOX)/usr/bin
  88. include ${TOPDIR}/mk/pkg-bottom.mk