diff options
Diffstat (limited to 'editors/emacs/Makefile')
| -rw-r--r-- | editors/emacs/Makefile | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/editors/emacs/Makefile b/editors/emacs/Makefile deleted file mode 100644 index 2d62d56..0000000 --- a/editors/emacs/Makefile +++ /dev/null | |||
| @@ -1,88 +0,0 @@ | |||
| 1 | COMMENT= GNU editor: extensible, customizable, self-documenting | ||
| 2 | |||
| 3 | VERSION= 28.2 | ||
| 4 | DISTNAME= emacs-${VERSION} | ||
| 5 | |||
| 6 | CATEGORIES= editors | ||
| 7 | |||
| 8 | HOMEPAGE= https://www.gnu.org/software/emacs/ | ||
| 9 | |||
| 10 | MAINTAINER= Jeremie Courreges-Anglas <jca@wxcvbn.org> | ||
| 11 | |||
| 12 | # GPLv3+ | ||
| 13 | PERMIT_PACKAGE= Yes | ||
| 14 | |||
| 15 | WANTLIB = c curses execinfo pthread z | ||
| 16 | |||
| 17 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} | ||
| 18 | EXTRACT_SUFX= .tar.xz | ||
| 19 | |||
| 20 | DEBUG_PACKAGES = ${BUILD_PACKAGES} | ||
| 21 | |||
| 22 | FLAVORS= athena motif no_x11 | ||
| 23 | FLAVOR?= athena | ||
| 24 | |||
| 25 | GCCARCH= ${MACHINE_ARCH}-unknown-openbsd | ||
| 26 | |||
| 27 | CONFIGURE_STYLE= gnu | ||
| 28 | MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/build-aux | ||
| 29 | CONFIGURE_ARGS= --build="${GCCARCH}" \ | ||
| 30 | --without-all \ | ||
| 31 | --without-xml2 \ | ||
| 32 | --without-json \ | ||
| 33 | --without-dbus \ | ||
| 34 | --without-gsettings \ | ||
| 35 | --without-gnutls \ | ||
| 36 | --without-zlib \ | ||
| 37 | --without-modules | ||
| 38 | |||
| 39 | CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ | ||
| 40 | LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}" | ||
| 41 | |||
| 42 | MAKE_ENV= INSTALL_EMACS="${INSTALL_SCRIPT}" \ | ||
| 43 | LOGNAME="${SHAREOWN}" | ||
| 44 | |||
| 45 | SUBST_VARS= GCCARCH VERSION | ||
| 46 | |||
| 47 | USE_GMAKE= Yes | ||
| 48 | |||
| 49 | .if ${FLAVOR} == "no_x11" | ||
| 50 | CONFIGURE_ARGS+= --without-x | ||
| 51 | .else | ||
| 52 | LIB_DEPENDS+= graphics/jpeg \ | ||
| 53 | graphics/png \ | ||
| 54 | devel/gmp | ||
| 55 | CONFIGURE_ARGS+= --with-x \ | ||
| 56 | --with-xpm \ | ||
| 57 | --with-jpeg \ | ||
| 58 | --with-png \ | ||
| 59 | --without-xft \ | ||
| 60 | --without-harfbuzz \ | ||
| 61 | --without-otf \ | ||
| 62 | --without-m17n-flt | ||
| 63 | |||
| 64 | |||
| 65 | WANTLIB += ICE SM X11 X11-xcb Xext Xfixes Xinerama Xmu | ||
| 66 | WANTLIB += Xpm Xrandr Xrender Xt xcb fontconfig freetype | ||
| 67 | WANTLIB += jpeg png gmp | ||
| 68 | |||
| 69 | . if ${FLAVOR} == "athena" | ||
| 70 | CONFIGURE_ARGS+= --with-x-toolkit=athena | ||
| 71 | LIB_DEPENDS+= x11/Xaw3d | ||
| 72 | WANTLIB += Xaw3d | ||
| 73 | . elif ${FLAVOR} == "motif" | ||
| 74 | CONFIGURE_ARGS+= --with-x-toolkit=motif | ||
| 75 | LIB_DEPENDS+= x11/motif | ||
| 76 | WANTLIB += Xm | ||
| 77 | . else | ||
| 78 | ERRORS+= "Fatal: Conflicting flavor: ${FLAVOR}" | ||
| 79 | . endif | ||
| 80 | .endif | ||
| 81 | |||
| 82 | post-install: | ||
| 83 | chmod -t ${PREFIX}/bin/emacs-${VERSION} | ||
| 84 | .if ${FLAVOR:Mno_x11} | ||
| 85 | rm -Rf ${PREFIX}/share/applications/ ${PREFIX}/share/icons/ | ||
| 86 | .endif | ||
| 87 | |||
| 88 | .include <bsd.port.mk> | ||
