Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # $OpenBSD: Makefile,v 1.92 2017/05/12 21:26:32 espie Exp $
  2. BROKEN-powerpc= dumped executable fails with SIGABRT
  3. COMMENT-main= GNU editor: extensible, customizable, self documenting
  4. COMMENT-el= elisp sources for those who want to read/modify them
  5. COMMENT-leim= Library of Emacs Input Methods
  6. VERSION= 21.4
  7. DISTNAME= emacs-${VERSION}
  8. PKGNAME-main= ${DISTNAME}
  9. FULLPKGNAME-el= emacs-el-${VERSION}
  10. FULLPKGPATH-el= editors/emacs21,-el
  11. FULLPKGNAME-leim= emacs-leim-${VERSION}
  12. FULLPKGPATH-leim= editors/emacs21,-leim
  13. REVISION-main= 37
  14. REVISION-el= 7
  15. REVISION-leim= 7
  16. CATEGORIES= editors
  17. HOMEPAGE= https://www.gnu.org/software/emacs/
  18. # GPL
  19. PERMIT_PACKAGE_CDROM= Yes
  20. MASTER_SITES= ${MASTER_SITE_GNU:=emacs/}
  21. DISTFILES= emacs-${VERSION}a.tar.gz leim-${VERSION}.tar.gz
  22. MULTI_PACKAGES= -main -el -leim
  23. FLAVORS= no_x11
  24. FLAVOR?=
  25. GCCARCH= ${MACHINE_ARCH}-unknown-openbsd
  26. MODGNU_EMACS_YOURE_WEIRD = Oh yes
  27. CONFIGURE_STYLE= gnu dest
  28. CONFIGURE_ARGS= ${GCCARCH} --with-pop --with-system-malloc
  29. # ld -Z doesn't work with secure-PLT
  30. .if ${MACHINE_ARCH} == "powerpc"
  31. ARCH_LDFLAGS = -Wl,-G0
  32. CFLAGS += -mno-sdata
  33. .elif ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "hppa" || \
  34. ${MACHINE_ARCH} == "sparc64"
  35. ARCH_LDFLAGS =
  36. .else
  37. ARCH_LDFLAGS = -Z
  38. .endif
  39. LDFLAGS= ${ARCH_LDFLAGS} -L${LOCALBASE}/lib -nopie
  40. CFLAGS += -fno-pie
  41. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  42. LDFLAGS="${LDFLAGS}" \
  43. ac_cv_lib_ossaudio__oss_ioctl=no
  44. MAKE_ENV= INSTALL_EMACS="${INSTALL_SCRIPT}"
  45. SUBST_VARS= GCCARCH VERSION
  46. WANTLIB-main= c m ncurses
  47. .if ${FLAVOR:Mno_x11}
  48. CONFIGURE_ARGS+= --with-x=no
  49. .else
  50. LIB_DEPENDS-main= graphics/giflib \
  51. graphics/png \
  52. graphics/tiff
  53. WANTLIB-main+= ICE SM X11 Xaw Xext Xmu Xpm Xt z
  54. WANTLIB-main+= gif jpeg png tiff
  55. .endif
  56. RUN_DEPENDS= emacs-${VERSION}:${PKGPATH}
  57. RUN_DEPENDS-main=
  58. PKG_ARCH-el= *
  59. NO_TEST= Yes
  60. post-build:
  61. cd ${WRKSRC}; src/emacs -batch -f batch-byte-compile \
  62. lisp/mail/mh-{funcs,utils}.el
  63. post-install:
  64. chmod -t ${PREFIX}/bin/emacs
  65. .include <bsd.port.mk>
  66. .if ${PROPERTIES:Mclang}
  67. CFLAGS += -fno-builtin-malloc
  68. .endif