summaryrefslogtreecommitdiff
path: root/editors/emacs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'editors/emacs/Makefile')
-rw-r--r--editors/emacs/Makefile88
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 @@
1COMMENT= GNU editor: extensible, customizable, self-documenting
2
3VERSION= 28.2
4DISTNAME= emacs-${VERSION}
5
6CATEGORIES= editors
7
8HOMEPAGE= https://www.gnu.org/software/emacs/
9
10MAINTAINER= Jeremie Courreges-Anglas <jca@wxcvbn.org>
11
12# GPLv3+
13PERMIT_PACKAGE= Yes
14
15WANTLIB = c curses execinfo pthread z
16
17MASTER_SITES= ${MASTER_SITE_GNU:=emacs/}
18EXTRACT_SUFX= .tar.xz
19
20DEBUG_PACKAGES = ${BUILD_PACKAGES}
21
22FLAVORS= athena motif no_x11
23FLAVOR?= athena
24
25GCCARCH= ${MACHINE_ARCH}-unknown-openbsd
26
27CONFIGURE_STYLE= gnu
28MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/build-aux
29CONFIGURE_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
39CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
40 LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}"
41
42MAKE_ENV= INSTALL_EMACS="${INSTALL_SCRIPT}" \
43 LOGNAME="${SHAREOWN}"
44
45SUBST_VARS= GCCARCH VERSION
46
47USE_GMAKE= Yes
48
49.if ${FLAVOR} == "no_x11"
50CONFIGURE_ARGS+= --without-x
51.else
52LIB_DEPENDS+= graphics/jpeg \
53 graphics/png \
54 devel/gmp
55CONFIGURE_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
65WANTLIB += ICE SM X11 X11-xcb Xext Xfixes Xinerama Xmu
66WANTLIB += Xpm Xrandr Xrender Xt xcb fontconfig freetype
67WANTLIB += jpeg png gmp
68
69. if ${FLAVOR} == "athena"
70CONFIGURE_ARGS+= --with-x-toolkit=athena
71LIB_DEPENDS+= x11/Xaw3d
72WANTLIB += Xaw3d
73. elif ${FLAVOR} == "motif"
74CONFIGURE_ARGS+= --with-x-toolkit=motif
75LIB_DEPENDS+= x11/motif
76WANTLIB += Xm
77. else
78ERRORS+= "Fatal: Conflicting flavor: ${FLAVOR}"
79. endif
80.endif
81
82post-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>