From e9f297414ca9e4df2d2333d8cea0ea56e44289f0 Mon Sep 17 00:00:00 2001 From: kuriyama <kuriyama@FreeBSD.org> Date: Sun, 13 Dec 1998 11:54:50 +0000 Subject: Add USE_XPGLIB extension (default OFF). PR: ports/8775 Submitted by: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp> --- editors/emacs20/Makefile | 8 +++++++- editors/emacs20/files/patch-cb | 16 ++++++++++++++++ editors/emacs20/files/patch-cc | 12 ++++++++++++ editors/emacs20/files/patch-cd | 12 ++++++++++++ 4 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 editors/emacs20/files/patch-cb create mode 100644 editors/emacs20/files/patch-cc create mode 100644 editors/emacs20/files/patch-cd (limited to 'editors/emacs20') diff --git a/editors/emacs20/Makefile b/editors/emacs20/Makefile index d9a147b41c4b..a6bd65561da2 100644 --- a/editors/emacs20/Makefile +++ b/editors/emacs20/Makefile @@ -3,7 +3,7 @@ # Date created: 29 October 1994 # Whom: jkh # -# $Id: Makefile,v 1.32 1998/09/01 02:29:50 jseger Exp $ +# $Id: Makefile,v 1.33 1998/09/01 07:11:31 asami Exp $ # DISTNAME= emacs-20.3 @@ -19,6 +19,12 @@ MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" MAN1= emacs.1 etags.1 ctags.1 PLIST_SUB= EMACS_VER=20.3 +.if defined(USE_XPGLIB) +.if (${USE_XPGLIB} == "YES") +CONFIGURE_ARGS+= --with-xpg4 +.endif +.endif + pre-build: ${RM} -rf ${WRKSRC}/info/* diff --git a/editors/emacs20/files/patch-cb b/editors/emacs20/files/patch-cb new file mode 100644 index 000000000000..fe5f9671b66a --- /dev/null +++ b/editors/emacs20/files/patch-cb @@ -0,0 +1,16 @@ +--- src/s/freebsd.h.orig Wed Nov 11 21:22:03 1998 ++++ src/s/freebsd.h Wed Nov 11 21:52:19 1998 +@@ -45,6 +45,13 @@ + #define LIBS_SYSTEM -lutil + #define LIBS_TERMCAP -ltermcap + ++/* Use XPG4 Library for FreeBSD */ ++#if __FreeBSD_version >= 220000 ++#ifdef USE_XPG ++#define LIBS_XPG -lxpg4 ++#endif ++#endif ++ + #define SYSV_SYSTEM_DIR + + /* freebsd has POSIX-style pgrp behavior. */ diff --git a/editors/emacs20/files/patch-cc b/editors/emacs20/files/patch-cc new file mode 100644 index 000000000000..ec35177dedca --- /dev/null +++ b/editors/emacs20/files/patch-cc @@ -0,0 +1,12 @@ +--- configure.in.orig Sat Nov 21 08:59:52 1998 ++++ configure.in Sat Nov 21 08:58:16 1998 +@@ -57,6 +57,9 @@ + AC_ARG_WITH(gssapi, + [ --with-gssapi support GSSAPI-authenticated POP], + [AC_DEFINE(GSSAPI)]) ++AC_ARG_WITH(xpg4, ++[ --with-xpg4 support XPG4 library on FreeBSD system], ++[AC_DEFINE(USE_XPG)]) + dnl This should be the last --with option, because --with-x is + dnl added later on when we find the path of X, and it's best to + dnl keep them together visually. diff --git a/editors/emacs20/files/patch-cd b/editors/emacs20/files/patch-cd new file mode 100644 index 000000000000..9792250f67b9 --- /dev/null +++ b/editors/emacs20/files/patch-cd @@ -0,0 +1,12 @@ +--- src/config.in.orig Sat Nov 21 09:00:30 1998 ++++ src/config.in Sat Nov 21 09:00:58 1998 +@@ -118,6 +118,9 @@ + /* Define to support using a Hesiod database to find the POP server. */ + #undef HESIOD + ++/* Define to support using a XPG4 library on FreeBSD system. */ ++#undef USE_XPG ++ + /* Some things figured out by the configure script, grouped as they are in + configure.in. */ + #ifndef _ALL_SOURCE /* suppress warning if this is pre-defined */ -- cgit