Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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:= 3.6.8
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 0ee5f14fd8be07513d16131027ebcb61
  8. PKG_DESCR:= graphical webbrowser
  9. PKG_SECTION:= x11/apps
  10. PKG_DEPENDS:= libpthread alsa-lib dbus-glib glib libgtk+ libnotify
  11. PKG_DEPENDS+= nspr nss libjpeg atk pango cairo libxt libx11 libstdcxx
  12. PKG_DEPENDS+= libxdamage libxfixes libidl
  13. PKG_BUILDDEP+= alsa-lib dbus-glib glib gtk+ libnotify libIDL libX11
  14. PKG_BUILDDEP+= nspr nss jpeg libXt
  15. PKG_URL:= http://www.mozilla.org/
  16. PKG_SITES:= http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${PKG_VERSION}/source/
  17. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.source.tar.bz2
  18. WRKDIST= ${WRKDIR}/mozilla-1.9.2
  19. PKG_TARGET_DEPENDS:= alix1c x86_qemu x86_64_qemu shuttle ibmx40 lemote
  20. PKG_HOST_DEPENDS:= !netbsd !freebsd !openbsd !cygwin
  21. include $(TOPDIR)/mk/package.mk
  22. $(eval $(call PKG_template,FIREFOX,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. ifeq (${ADK_LINUX_MIPS64_LEMOTE},y)
  24. CONFIGURE_ARGS+= --disable-ipc
  25. else ifeq (${ADK_TARGET_LIB_UCLIBC},y)
  26. CONFIGURE_ARGS+= --disable-ipc
  27. else
  28. CONFIGURE_ARGS+= --enable-ipc
  29. endif
  30. CONFIGURE_ENV+= CROSS_COMPILE=1 HOST_CC="${HOSTCC}" HOST_CFLAGS="${HOSTCFLAGS}" \
  31. HOST_CXX="${HOSTCXX}" HOST_CXXFLAGS="${HOSTCXXFLAGS}" \
  32. HOST_LIBIDL_CONFIG="/usr/bin/libIDL-config-2" \
  33. ac_cv_thread_keyword=no
  34. CONFIGURE_ARGS+= --enable-application=browser \
  35. --with-system-zlib \
  36. --with-system-jpeg \
  37. --with-system-png \
  38. --with-system-nss \
  39. --with-system-nspr \
  40. --with-libIDL-prefix=${STAGING_DIR}/usr \
  41. --with-glib-prefix=${STAGING_DIR}/usr \
  42. --enable-libxul \
  43. --disable-tests \
  44. --disable-static \
  45. --disable-gnomeui \
  46. --disable-gnomevfs \
  47. --disable-optimize \
  48. --disable-necko-wifi \
  49. --disable-svg \
  50. --disable-mathml \
  51. --disable-crashreporter
  52. post-install:
  53. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/bin
  54. $(INSTALL_DIR) $(IDIR_FIREFOX)/usr/lib
  55. $(CP) $(WRKINST)/usr/lib/firefox-${PKG_VERSION} \
  56. $(IDIR_FIREFOX)/usr/lib/
  57. $(CP) $(WRKINST)/usr/bin/firefox \
  58. $(IDIR_FIREFOX)/usr/bin
  59. include ${TOPDIR}/mk/pkg-bottom.mk