Makefile 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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:= 35.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= bedeb5bbd8b49e5b286497ef7732542c6e7441088fd8cd577d7ca8af4c871e81
  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:= solidrun-imx6 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. WRKBUILD= $(WRKDIR)/$(PKG_NAME)-obj
  27. include $(ADK_TOPDIR)/mk/package.mk
  28. include $(ADK_TOPDIR)/mk/python.mk
  29. $(eval $(call PKG_template,FIREFOX,firefox,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  30. ifeq ($(ADK_DEBUG),y)
  31. CONFIGURE_ARGS+= --enable-debug --enable-logging
  32. else
  33. CONFIGURE_ARGS+= --disable-debug --disable-logging
  34. endif
  35. CONFIGURE_ENV+= CROSS_COMPILE=1 \
  36. PYTHON="$(PYTHON)" \
  37. HOST_CC="$(HOST_CC)" \
  38. HOST_CPPFLAGS="$(HOST_CPPFLAGS)" \
  39. HOST_CFLAGS="$(HOST_CFLAGS)" \
  40. HOST_LDFLAGS="$(HOST_LDLAGS)" \
  41. HOST_CXX="$(HOST_CXX)" \
  42. HOST_CXXFLAGS="$(HOST_CXXFLAGS)" \
  43. HOST_RANLIB="ranlib" HOST_AR="ar" \
  44. CPPFLAGS="-I$(STAGING_TARGET_DIR)/usr/include/freetype2" \
  45. ac_cv_sqlite_secure_delete=yes \
  46. ac_cv_sqlite_threadsafe=yes \
  47. ac_cv_sqlite_enable_fts3=yes \
  48. ac_cv_sqlite_enable_unlock_notify=yes
  49. CONFIGURE_ARGS+= --enable-application=browser \
  50. --enable-official-branding \
  51. --with-system-zlib \
  52. --with-system-bz2 \
  53. --with-system-png \
  54. --with-system-cairo \
  55. --with-system-pixman \
  56. --with-system-jpeg \
  57. --with-system-nss \
  58. --with-system-nspr \
  59. --with-system-pango \
  60. --with-system-libvpx \
  61. --with-system-libevent=$(STAGING_TARGET_DIR)/usr \
  62. --enable-system-ffi \
  63. --enable-system-sqlite \
  64. --disable-libnotify \
  65. --with-libIDL-prefix=$(STAGING_TARGET_DIR)/usr \
  66. --with-glib-prefix=$(STAGING_TARGET_DIR)/usr \
  67. --enable-chrome-format=jar \
  68. --enable-necko-protocols=all \
  69. --enable-libxul \
  70. --enable-alsa \
  71. --disable-profiling \
  72. --disable-jprof \
  73. --disable-shark \
  74. --disable-systrace \
  75. --disable-pulseaudio \
  76. --disable-gstreamer \
  77. --disable-gio \
  78. --disable-gold \
  79. --disable-gconf \
  80. --disable-accessibility \
  81. --disable-smil \
  82. --disable-dbus \
  83. --disable-gamepad \
  84. --disable-strip \
  85. --disable-install-strip \
  86. --disable-tests \
  87. --disable-libconic \
  88. --disable-static \
  89. --disable-gnomeui \
  90. --disable-gnomevfs \
  91. --disable-gstreamer \
  92. --disable-optimize \
  93. --disable-necko-wifi \
  94. --disable-svg \
  95. --disable-mathml \
  96. --disable-jemalloc \
  97. --disable-crashreporter \
  98. --disable-printing \
  99. --disable-pie \
  100. --disable-updater \
  101. --disable-xpcom-fastload \
  102. --disable-url-classifier \
  103. --disable-safe-browsing \
  104. --disable-elf-hack
  105. ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
  106. TARGET_CFLAGS:= $(subst Os,g3,$(TARGET_CFLAGS))
  107. endif
  108. XAKE_FLAGS+= OS_RELEASE="2.6" HOST_CC=$(HOST_CC) HOST_LDFLAGS=$(HOST_LDFLAGS)
  109. XAKE_FLAGS+= ARCHFLAG="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) -lnss3 -lnssutil3 -lsmime3 -lssl3 -fPIC"
  110. pre-build:
  111. -mkdir $(WRKBUILD)/js/src/.deps
  112. firefox-install:
  113. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/bin
  114. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/lib
  115. $(CP) $(WRKINST)/usr/lib/firefox-$(PKG_VERSION) \
  116. $(IDIR_FIREFOX)/usr/lib
  117. $(CP) ./files/firefox \
  118. $(IDIR_FIREFOX)/usr/bin
  119. include $(ADK_TOPDIR)/mk/pkg-bottom.mk