Makefile 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= firefox
  5. PKG_VERSION:= 26.0
  6. PKG_RELEASE:= 4
  7. PKG_HASH:= 31c4fb2792df63ae450e350380a5e18cf1c51487011a9da0b6cc4bffb69d9812
  8. PKG_DESCR:= graphical webbrowser
  9. PKG_SECTION:= x11/apps
  10. PKG_DEPENDS:= libpthread alsa-lib glib libgtk libpng libtiff libxcursor libffi
  11. PKG_DEPENDS+= nspr nss libjpeg-turbo libatk pango cairo libxt libx11 libstdcxx hicolor-icon-theme
  12. PKG_DEPENDS+= libxdamage libxfixes libidl libsqlite libxcomposite gdk-pixbuf librt
  13. PKG_DEPENDS+= harfbuzz mesalib libvpx libbz2 ca-certificates libevent
  14. PKG_BUILDDEP:= alsa-lib glib gtk+ libIDL libX11 mesalib libtiff gdk-pixbuf
  15. PKG_BUILDDEP+= nspr nss libjpeg-turbo libXt fontconfig sqlite atk libpng hicolor-icon-theme
  16. PKG_BUILDDEP+= libvpx pango gettext-tiny bzip2 libevent bzip2-host python2-host yasm-host
  17. PKG_BUILDDEP+= zip-host
  18. PKG_URL:= http://www.mozilla.org/
  19. PKG_SITES:= http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${PKG_VERSION}/source/
  20. PKG_NOPARALLEL:= 1
  21. PKG_ARCH_DEPENDS:= arm x86 x86_64 mips
  22. PKG_HOST_DEPENDS:= !netbsd !freebsd !openbsd !cygwin
  23. PKG_SYSTEM_DEPENDS:= tarox-pc ibm-x40 lemote-yeelong qemu-i686 qemu-x86_64 qemu-mips64el raspberry-pi
  24. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.source.tar.bz2
  25. WRKDIST= ${WRKDIR}/mozilla-release
  26. include $(ADK_TOPDIR)/mk/package.mk
  27. include $(ADK_TOPDIR)/mk/python.mk
  28. $(eval $(call PKG_template,FIREFOX,firefox,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  29. ifeq ($(ADK_DEBUG),y)
  30. CONFIGURE_ARGS+= --enable-debug --enable-logging
  31. else
  32. CONFIGURE_ARGS+= --disable-debug --disable-logging
  33. endif
  34. CONFIGURE_ENV+= CROSS_COMPILE=1 \
  35. PYTHON="$(PYTHON)" \
  36. HOST_CC="${HOST_CC}" \
  37. HOST_CPPFLAGS="${HOST_CPPFLAGS}" \
  38. HOST_CFLAGS="${HOST_CFLAGS}" \
  39. HOST_LDFLAGS="${HOST_LDLAGS}" \
  40. HOST_CXX="${HOST_CXX}" \
  41. HOST_CXXFLAGS="${HOST_CXXFLAGS}" \
  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. CONFIGURE_ARGS+= --enable-application=browser \
  49. --enable-official-branding \
  50. --with-system-zlib \
  51. --with-system-bz2 \
  52. --with-system-png \
  53. --with-system-cairo \
  54. --with-system-pixman \
  55. --with-system-jpeg \
  56. --with-system-nss \
  57. --with-system-nspr \
  58. --with-system-pango \
  59. --with-system-libvpx \
  60. --with-system-libevent=${STAGING_TARGET_DIR}/usr \
  61. --enable-system-ffi \
  62. --enable-system-sqlite \
  63. --disable-libnotify \
  64. --with-libIDL-prefix=${STAGING_TARGET_DIR}/usr \
  65. --with-glib-prefix=${STAGING_TARGET_DIR}/usr \
  66. --enable-chrome-format=jar \
  67. --enable-necko-protocols=all \
  68. --enable-libxul \
  69. --enable-alsa \
  70. --disable-pulseaudio \
  71. --disable-gstreamer \
  72. --disable-gio \
  73. --disable-gconf \
  74. --disable-accessibility \
  75. --disable-smil \
  76. --disable-dbus \
  77. --disable-gamepad \
  78. --disable-strip \
  79. --disable-install-strip \
  80. --disable-tests \
  81. --disable-libconic \
  82. --disable-static \
  83. --disable-gnomeui \
  84. --disable-gnomevfs \
  85. --disable-gstreamer \
  86. --disable-optimize \
  87. --disable-necko-wifi \
  88. --disable-svg \
  89. --disable-mathml \
  90. --disable-jemalloc \
  91. --disable-crashreporter \
  92. --disable-updater \
  93. --disable-xpcom-fastload \
  94. --disable-url-classifier \
  95. --disable-safe-browsing \
  96. --disable-elf-hack
  97. ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
  98. TARGET_CFLAGS:= $(subst Os,g3,$(TARGET_CFLAGS))
  99. endif
  100. XAKE_FLAGS+= OS_RELEASE="2.6" HOST_CC=$(HOST_CC) HOST_LDFLAGS=$(HOST_LDFLAGS)
  101. XAKE_FLAGS+= ARCHFLAG="${TARGET_CFLAGS} ${TARGET_CPPFLAGS} ${TARGET_LDFLAGS} -lnss3 -lnssutil3 -lsmime3 -lssl3 -fPIC"
  102. pre-build:
  103. -mkdir ${WRKBUILD}/js/src/.deps
  104. firefox-install:
  105. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/bin
  106. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/lib
  107. $(CP) $(WRKINST)/usr/lib/firefox-${PKG_VERSION} \
  108. $(IDIR_FIREFOX)/usr/lib
  109. $(CP) ./files/firefox \
  110. $(IDIR_FIREFOX)/usr/bin
  111. include ${ADK_TOPDIR}/mk/pkg-bottom.mk