Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # $OpenBSD: Makefile,v 1.58 2017/06/14 05:26:19 landry Exp $
  2. COMMENT = Firefox web browser, Extended Support Release
  3. MOZILLA_VERSION = 52.2.0esr
  4. MOZILLA_BRANCH = esr52
  5. MOZILLA_PROJECT = firefox
  6. MOZILLA_CODENAME = browser
  7. BROKEN-sparc64 = xpcshell SIGBUS during fake
  8. EXTRACT_SUFX = .tar.xz
  9. PKGNAME = ${MOZILLA_PROJECT}-esr-${MOZILLA_VERSION:S/esr//}
  10. SO_VERSION = 4.0
  11. MOZILLA_LIBS = xul clearkey lgpllibs mozavcodec mozavutil mozgtk
  12. CATEGORIES = www
  13. # mozilla public license
  14. PERMIT_PACKAGE_CDROM= Yes
  15. # lots of logic in mozilla.port.mk
  16. MODULES = www/mozilla devel/gettext lang/python
  17. MODPY_RUNDEP = No
  18. COMPILER = clang
  19. MODCLANG_ARCHS = amd64 i386
  20. # firefox >= 44 doesnt build with base libevent
  21. MOZILLA_USE_BUNDLED_LIBEVENT = Yes
  22. # firefox >= 46 defaults to gtk+3
  23. MOZILLA_USE_GTK3 = Yes
  24. WANTLIB += X11-xcb pixman-1 pthread-stubs xcb xcb-shm ${LIBECXX}
  25. # Regression tests are too hard to adapt to run here
  26. NO_TEST = Yes
  27. CONFIGURE_STYLE = simple
  28. CONFIGURE_ARGS += --prefix=${PREFIX}
  29. # to be able to link when building with clang on i386
  30. .if ${MACHINE_ARCH} == "i386"
  31. CONFIGURE_ARGS += --disable-debug-symbols
  32. .endif
  33. # avoid conflict with mainline firefox
  34. CONFIGURE_ARGS += --with-app-name=firefox-esr
  35. # relies on pulseaudio for sound and broken at runtime
  36. #CONFIGURE_ARGS += --disable-webrtc
  37. # bug 857628
  38. CONFIGURE_ARGS += --enable-pie
  39. post-install:
  40. # install prefs
  41. ${INSTALL_DATA_DIR} ${PREFIX}/lib/${MOZILLA_PROJECT}-esr-${MOZILLA_VER}/browser/defaults/preferences
  42. ${SUBST_DATA} ${FILESDIR}/all-openbsd.js \
  43. ${PREFIX}/lib/${MOZILLA_PROJECT}-esr-${MOZILLA_VER}/browser/defaults/preferences/all-openbsd.js
  44. # install distribution.ini file
  45. ${INSTALL_DATA_DIR} ${PREFIX}/lib/${MOZILLA_PROJECT}-esr-${MOZILLA_VER}/distribution
  46. echo "[Global]\nid=OpenBSD\nversion=${OSREV}\nabout=Packaged by ${MAINTAINER}\n" > \
  47. ${PREFIX}/lib/${MOZILLA_PROJECT}-esr-${MOZILLA_VER}/distribution/distribution.ini
  48. # install desktop file
  49. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
  50. ${SUBST_DATA} ${FILESDIR}/${MOZILLA_PROJECT}.desktop \
  51. ${PREFIX}/share/applications/${MOZILLA_PROJECT}-esr.desktop
  52. # install icon for desktop file
  53. ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/
  54. ${INSTALL_DATA} ${PREFIX}/lib/${MOZILLA_PROJECT}-esr-${MOZILLA_VER:S/esr//}/browser/icons/mozicon128.png \
  55. ${PREFIX}/share/pixmaps/firefox-esr.png
  56. # link default48.png to default.png to be used by default by non-icccm compliant wm
  57. ln ${PREFIX}/lib/firefox-esr-${MOZILLA_VER:S/esr//}/browser/chrome/icons/default/default{48,}.png
  58. .include <bsd.port.mk>