summaryrefslogtreecommitdiff
path: root/editors/emacs21/Makefile
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2002-04-24 17:27:41 +0000
committerdrochner <drochner@pkgsrc.org>2002-04-24 17:27:41 +0000
commit1e748a667c7516c1f219ff5e48b7df10213a2164 (patch)
tree002643f70fea1be284723796edb2c31bd543d8ef /editors/emacs21/Makefile
parentc56f3a65eb7c316f8c06789130b8364921d2eb5a (diff)
downloadpkgsrc-1e748a667c7516c1f219ff5e48b7df10213a2164.tar.gz
first cut on a pkg for emacs-21.2
derived from our emacs-20.7 pkg; IPv6 and newer NetBSD platform/toolchain support appear to be included in the original sources, so I've only left in the patches which deal with info file installation and the "emacs-" prefix for user tools
Diffstat (limited to 'editors/emacs21/Makefile')
-rw-r--r--editors/emacs21/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/editors/emacs21/Makefile b/editors/emacs21/Makefile
new file mode 100644
index 00000000000..05248e821c8
--- /dev/null
+++ b/editors/emacs21/Makefile
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/04/24 17:27:41 drochner Exp $
+# FreeBSD Id: Makefile,v 1.30 1997/12/14 02:03:53 asami Exp
+
+DISTNAME= emacs-21.2
+CATEGORIES= editors
+MASTER_SITES= ${MASTER_SITE_GNU:=emacs/}
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html
+COMMENT= GNU editing macros (editor)
+
+CONFLICTS= mule-[0-9]*
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+
+BUILD_DEFS+= USE_INET6 EMACS_USE_POP EMACS_USE_X EMACS_USE_X_TOOLKIT
+
+.include "../../mk/bsd.prefs.mk"
+
+EMACS_USE_POP?= yes
+.if (defined(EMACS_USE_POP) && \
+ (${EMACS_USE_POP} == yes || ${EMACS_USE_POP} == YES))
+CONFIGURE_ARGS+=--with-pop
+.endif
+.if defined(EMACS_USE_X)
+CONFIGURE_ARGS+=--with-x=${EMACS_USE_X}
+.endif
+.if defined(EMACS_USE_X_TOOLKIT)
+CONFIGURE_ARGS+=--with-x-toolkit=${EMACS_USE_X_TOOLKIT}
+.endif
+.if (defined(USE_INET6) && ${USE_INET6} == NO)
+CONFIGURE_ARGS+=--without-ipv6
+.else
+CONFIGURE_ARGS+=--with-ipv6
+.endif
+MAKE_ENV+= INSTALL_STRIP=${STRIPFLAG}
+INFO_FILES= emacs vip viper forms gnus mh-e cl sc dired-x ediff \
+ ccmode message widget reftex forms
+
+INSTALL_PROGRAM=${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
+
+pre-install:
+ @${FIND} ${WRKSRC} -type f -name "*.orig" | ${XARGS} ${RM} -f
+
+post-install:
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/emacs
+
+.include "../../mk/texinfo.mk"
+.include "../../mk/bsd.pkg.mk"