Makefile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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:= 5.0.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 6d1f43e402cec84459a3d7f950bd5192
  8. PKG_DESCR:= graphical webbrowser
  9. PKG_SECTION:= x11/apps
  10. PKG_DEPENDS:= libpthread alsa-lib dbus-glib glib libgtk libpng libtiff libxcursor
  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 native mips
  20. PKG_HOST_DEPENDS:= !netbsd !freebsd !openbsd !cygwin
  21. PKG_SYSTEM_DEPENDS:= ibm-x40 lemote-yeelong
  22. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.source.tar.bz2
  23. WRKDIST= ${WRKDIR}/mozilla-release
  24. include $(TOPDIR)/mk/package.mk
  25. $(eval $(call PKG_template,FIREFOX,firefox,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. CONFIGURE_ENV+= CROSS_COMPILE=1 \
  27. HOST_CC="${CC_FOR_BUILD}" \
  28. HOST_CPPFLAGS="${CPPFLAGS_FOR_BUILD}" \
  29. HOST_CFLAGS="${CFLAGS_FOR_BUILD}" \
  30. HOST_LDFLAGS="${LDLAGS_FOR_BUILD}" \
  31. HOST_CXX="${CXX_FOR_BUILD}" \
  32. HOST_CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
  33. BUILD_LIBIDL_CONFIG="${BUILD_LIBIDL_CONFIG}" \
  34. PKG_HOSTLIB_DIR="${PKG_HOSTLIB_DIR}" \
  35. HOST_RANLIB="ranlib" HOST_AR="ar" \
  36. CPPFLAGS="-I${STAGING_TARGET_DIR}/usr/include/freetype2" \
  37. ac_cv_sqlite_secure_delete=yes \
  38. ac_cv_sqlite_threadsafe=yes \
  39. ac_cv_sqlite_enable_fts3=yes \
  40. ac_cv_sqlite_enable_unlock_notify=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-cairo \
  47. --with-system-pixman \
  48. --with-system-jpeg \
  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-libnotify \
  54. --disable-accessibility \
  55. --disable-smil \
  56. --disable-dbus \
  57. --disable-debug \
  58. --disable-logging \
  59. --disable-strip \
  60. --disable-install-strip \
  61. --disable-tests \
  62. --disable-libconic \
  63. --disable-static \
  64. --disable-gnomeui \
  65. --disable-gnomevfs \
  66. --disable-optimize \
  67. --disable-necko-wifi \
  68. --disable-svg \
  69. --disable-mathml \
  70. --disable-jemalloc \
  71. --disable-crashreporter \
  72. --disable-libjpeg-turbo \
  73. --disable-elf-hack
  74. XAKE_FLAGS+= OS_RELEASE="2.6" HOST_CC=$(CC_FOR_BUILD) HOST_LDFLAGS=$(LDFLAGS_FOR_BUILD)
  75. XAKE_FLAGS+= ARCHFLAG="${TARGET_CFLAGS} ${TARGET_CPPFLAGS} ${TARGET_LDFLAGS}"
  76. firefox-install:
  77. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/bin
  78. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/lib
  79. $(CP) $(WRKINST)/usr/lib/firefox-${PKG_VERSION} \
  80. $(IDIR_FIREFOX)/usr/lib
  81. $(CP) $(WRKINST)/usr/bin/firefox \
  82. $(IDIR_FIREFOX)/usr/bin
  83. include ${TOPDIR}/mk/pkg-bottom.mk