1
0

Makefile 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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:= 26.0
  6. PKG_RELEASE:= 4
  7. PKG_MD5SUM:= 91ce51cc6474f1269484e5327643a59c
  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 libgcc
  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_NEED_CXX:= 1
  22. PKG_ARCH_DEPENDS:= arm x86 x86_64 mips
  23. PKG_HOST_DEPENDS:= !netbsd !freebsd !openbsd !cygwin
  24. PKG_SYSTEM_DEPENDS:= tarox-pc ibm-x40 lemote-yeelong qemu-i686 qemu-x86_64 qemu-mips64el raspberry-pi
  25. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.source.tar.bz2
  26. WRKDIST= ${WRKDIR}/mozilla-release
  27. include $(TOPDIR)/mk/package.mk
  28. include $(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="${CC_FOR_BUILD}" \
  38. HOST_CPPFLAGS="${CPPFLAGS_FOR_BUILD}" \
  39. HOST_CFLAGS="${CFLAGS_FOR_BUILD}" \
  40. HOST_LDFLAGS="${LDLAGS_FOR_BUILD}" \
  41. HOST_CXX="${CXX_FOR_BUILD}" \
  42. HOST_CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
  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-pulseaudio \
  72. --disable-gstreamer \
  73. --disable-gio \
  74. --disable-gconf \
  75. --disable-accessibility \
  76. --disable-smil \
  77. --disable-dbus \
  78. --disable-gamepad \
  79. --disable-strip \
  80. --disable-install-strip \
  81. --disable-tests \
  82. --disable-libconic \
  83. --disable-static \
  84. --disable-gnomeui \
  85. --disable-gnomevfs \
  86. --disable-gstreamer \
  87. --disable-optimize \
  88. --disable-necko-wifi \
  89. --disable-svg \
  90. --disable-mathml \
  91. --disable-jemalloc \
  92. --disable-crashreporter \
  93. --disable-updater \
  94. --disable-xpcom-fastload \
  95. --disable-url-classifier \
  96. --disable-safe-browsing \
  97. --disable-elf-hack
  98. ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
  99. TARGET_CFLAGS:= $(subst Os,g3,$(TARGET_CFLAGS))
  100. endif
  101. XAKE_FLAGS+= OS_RELEASE="2.6" HOST_CC=$(CC_FOR_BUILD) HOST_LDFLAGS=$(LDFLAGS_FOR_BUILD)
  102. XAKE_FLAGS+= ARCHFLAG="${TARGET_CFLAGS} ${TARGET_CPPFLAGS} ${TARGET_LDFLAGS} -lnss3 -lnssutil3 -lsmime3 -lssl3 -fPIC"
  103. pre-build:
  104. -mkdir ${WRKBUILD}/js/src/.deps
  105. firefox-install:
  106. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/bin
  107. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/lib
  108. $(CP) $(WRKINST)/usr/lib/firefox-${PKG_VERSION} \
  109. $(IDIR_FIREFOX)/usr/lib
  110. $(CP) ./files/firefox \
  111. $(IDIR_FIREFOX)/usr/bin
  112. include ${TOPDIR}/mk/pkg-bottom.mk