1
0

Makefile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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
  20. PKG_HOST_DEPENDS:= !netbsd !freebsd !openbsd !cygwin
  21. PKG_SYSTEM_DEPENDS:= ibm-x40
  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. # disable honour cflags stuff
  27. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  28. CONFIGURE_ENV+= CROSS_COMPILE=1 \
  29. HOST_CC="${CC_FOR_BUILD}" \
  30. HOST_CPPFLAGS="${CPPFLAGS_FOR_BUILD}" \
  31. HOST_CFLAGS="${CFLAGS_FOR_BUILD}" \
  32. HOST_LDFLAGS="${LDLAGS_FOR_BUILD}" \
  33. HOST_CXX="${CXX_FOR_BUILD}" \
  34. HOST_CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
  35. BUILD_LIBIDL_CONFIG="${BUILD_LIBIDL_CONFIG}" \
  36. PKG_HOSTLIB_DIR="${PKG_HOSTLIB_DIR}" \
  37. HOST_RANLIB="ranlib" HOST_AR="ar" \
  38. CPPFLAGS="-I${STAGING_TARGET_DIR}/usr/include/freetype2" \
  39. ac_cv_sqlite_secure_delete=yes \
  40. ac_cv_sqlite_threadsafe=yes \
  41. ac_cv_sqlite_enable_fts3=yes \
  42. ac_cv_sqlite_enable_unlock_notify=yes \
  43. ac_cv_thread_keyword=no \
  44. ac_cv_sizeof_int_p=4
  45. CONFIGURE_ARGS+= --enable-application=browser \
  46. --enable-official-branding \
  47. --with-system-zlib \
  48. --with-system-cairo \
  49. --with-system-pixman \
  50. --with-system-jpeg \
  51. --enable-system-sqlite \
  52. --with-libIDL-prefix=${STAGING_TARGET_DIR}/usr \
  53. --with-glib-prefix=${STAGING_TARGET_DIR}/usr \
  54. --enable-libxul \
  55. --disable-libnotify \
  56. --disable-accessibility \
  57. --disable-smil \
  58. --disable-dbus \
  59. --disable-debug \
  60. --disable-logging \
  61. --disable-strip \
  62. --disable-install-strip \
  63. --disable-tests \
  64. --disable-libconic \
  65. --disable-static \
  66. --disable-gnomeui \
  67. --disable-gnomevfs \
  68. --disable-optimize \
  69. --disable-necko-wifi \
  70. --disable-svg \
  71. --disable-mathml \
  72. --disable-jemalloc \
  73. --disable-crashreporter \
  74. --disable-libjpeg-turbo \
  75. --disable-elf-hack
  76. XAKE_FLAGS+= OS_RELEASE="2.6" HOST_CC=$(CC_FOR_BUILD) HOST_LDFLAGS=$(LDFLAGS_FOR_BUILD)
  77. XAKE_FLAGS+= ARCHFLAG="${TARGET_CFLAGS} ${TARGET_CPPFLAGS} ${TARGET_LDFLAGS}"
  78. firefox-install:
  79. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/bin
  80. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/lib
  81. $(CP) $(WRKINST)/usr/lib/firefox-${PKG_VERSION} \
  82. $(IDIR_FIREFOX)/usr/lib
  83. $(CP) $(WRKINST)/usr/bin/firefox \
  84. $(IDIR_FIREFOX)/usr/bin
  85. include ${TOPDIR}/mk/pkg-bottom.mk