diff options
author | simokawa <simokawa@FreeBSD.org> | 1999-01-23 14:28:28 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 1999-01-23 14:28:28 +0000 |
commit | 03e64bbe930d451acfe187a3f65a503a72bb6a69 (patch) | |
tree | 5d14b0b1226fb7b3f626ffff77beafa6a5c23ff5 /editors/emacs20 | |
parent | 19c57c41e3cc5477d5b7e438a96110b863e5013b (diff) | |
download | FreeBSD-ports-03e64bbe930d451acfe187a3f65a503a72bb6a69.zip FreeBSD-ports-03e64bbe930d451acfe187a3f65a503a72bb6a69.tar.gz |
Add fix for Alpha.
- patch for configure, unexelf.c, alpha.h, PLIST and etc.
Diffstat (limited to 'editors/emacs20')
-rw-r--r-- | editors/emacs20/Makefile | 8 | ||||
-rw-r--r-- | editors/emacs20/files/patch-ai | 17 | ||||
-rw-r--r-- | editors/emacs20/files/patch-aj | 31 | ||||
-rw-r--r-- | editors/emacs20/files/patch-cb | 22 | ||||
-rw-r--r-- | editors/emacs20/files/patch-cc | 28 | ||||
-rw-r--r-- | editors/emacs20/pkg-plist | 24 |
6 files changed, 111 insertions, 19 deletions
diff --git a/editors/emacs20/Makefile b/editors/emacs20/Makefile index c5a2f4b..181f6ef 100644 --- a/editors/emacs20/Makefile +++ b/editors/emacs20/Makefile @@ -3,7 +3,7 @@ # Date created: 29 October 1994 # Whom: jkh # -# $Id: Makefile,v 1.34 1998/12/13 11:54:49 kuriyama Exp $ +# $Id: Makefile,v 1.35 1999/01/16 22:58:59 asami Exp $ # DISTNAME= emacs-20.3 @@ -15,10 +15,12 @@ MAINTAINER= jseger@FreeBSD.org GNU_CONFIGURE= yes USE_XLIB= yes USE_GMAKE= yes -CONFIGURE_ARGS= i386--freebsd --with-x-toolkit --with-pop +EMACS_ARCH= ${MACHINE_ARCH}--freebsd +CONFIGURE_ARGS= ${EMACS_ARCH} --with-x-toolkit --with-pop + MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" MAN1= emacs.1 etags.1 ctags.1 -PLIST_SUB= EMACS_VER=20.3 +PLIST_SUB= EMACS_VER=20.3 EMACS_ARCH=${EMACS_ARCH} .if defined(USE_XPGLIB) .if (${USE_XPGLIB} == "YES") diff --git a/editors/emacs20/files/patch-ai b/editors/emacs20/files/patch-ai new file mode 100644 index 0000000..1ae2376 --- /dev/null +++ b/editors/emacs20/files/patch-ai @@ -0,0 +1,17 @@ +--- src/unexelf.c.orig Mon Aug 10 11:33:12 1998 ++++ src/unexelf.c Sun Jan 3 20:54:08 1999 +@@ -512,6 +512,14 @@ + # include <link.h> /* get ElfW etc */ + #endif + ++#ifdef __FreeBSD__ ++# ifdef __STDC__ ++# define ElfW(type) Elf_##type ++# else ++# define ElfW(type) Elf_/**/type ++# endif ++#endif ++ + #ifndef ElfW + # ifdef __STDC__ + # define ElfW(type) Elf32_##type diff --git a/editors/emacs20/files/patch-aj b/editors/emacs20/files/patch-aj new file mode 100644 index 0000000..b11a244 --- /dev/null +++ b/editors/emacs20/files/patch-aj @@ -0,0 +1,31 @@ +--- src/m/alpha.h.orig Wed Oct 29 16:47:37 1997 ++++ src/m/alpha.h Sun Jan 3 20:05:49 1999 +@@ -239,7 +239,7 @@ + + #ifndef NOT_C_CODE + /* We need these because pointers are larger than the default ints. */ +-#if !defined(__NetBSD__) && !defined(__OpenBSD__) ++#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) + #include <alloca.h> + #else + #include <stdlib.h> +@@ -308,7 +308,8 @@ + termio and struct termios are mutually incompatible. */ + #define NO_TERMIO + +-#if defined (LINUX) || defined (__NetBSD__) || defined (__OpenBSD__) ++#if defined (LINUX) || \ ++ defined(__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) + # define TEXT_END ({ extern int _etext; &_etext; }) + # ifndef __ELF__ + # define COFF +@@ -316,7 +317,8 @@ + # endif /* notdef __ELF__ */ + #endif + +-#if (defined (__NetBSD__) || defined (__OpenBSD__)) && defined (__ELF__) ++#if (defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__)) \ ++ && defined (__ELF__) + #define HAVE_TEXT_START + #endif + diff --git a/editors/emacs20/files/patch-cb b/editors/emacs20/files/patch-cb index fe5f967..d1877ed 100644 --- a/editors/emacs20/files/patch-cb +++ b/editors/emacs20/files/patch-cb @@ -1,5 +1,5 @@ ---- src/s/freebsd.h.orig Wed Nov 11 21:22:03 1998 -+++ src/s/freebsd.h Wed Nov 11 21:52:19 1998 +--- src/s/freebsd.h.orig Wed Aug 19 16:25:36 1998 ++++ src/s/freebsd.h Sun Jan 3 20:56:02 1999 @@ -45,6 +45,13 @@ #define LIBS_SYSTEM -lutil #define LIBS_TERMCAP -ltermcap @@ -14,3 +14,21 @@ #define SYSV_SYSTEM_DIR /* freebsd has POSIX-style pgrp behavior. */ +@@ -54,9 +61,16 @@ + #ifdef __ELF__ + + #define LD_SWITCH_SYSTEM ++ ++#ifdef __alpha__ ++#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crtbegin.o ++#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o ++#else + #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o +-#define UNEXEC unexelf.o + #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o ++#endif ++ ++#define UNEXEC unexelf.o + #undef LIB_GCC + #define LIB_GCC + diff --git a/editors/emacs20/files/patch-cc b/editors/emacs20/files/patch-cc index ec35177..acc21cc 100644 --- a/editors/emacs20/files/patch-cc +++ b/editors/emacs20/files/patch-cc @@ -1,5 +1,5 @@ ---- configure.in.orig Sat Nov 21 08:59:52 1998 -+++ configure.in Sat Nov 21 08:58:16 1998 +--- configure.in.orig Wed Jul 1 07:15:05 1998 ++++ configure.in Sun Jan 3 21:44:02 1999 @@ -57,6 +57,9 @@ AC_ARG_WITH(gssapi, [ --with-gssapi support GSSAPI-authenticated POP], @@ -10,3 +10,27 @@ 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. +@@ -162,6 +165,15 @@ + machine='' opsys='' unported=no + case "${canonical}" in + ++ ## FreeBSD ports ++ *-*-freebsd* ) ++ opsys=freebsd ++ case "${canonical}" in ++ alpha*-*-freebsd*) machine=alpha ;; ++ i[3456]86-*-freebsd*) machine=intel386 ;; ++ esac ++ ;; ++ + ## NetBSD ports + *-*-netbsd* ) + opsys=netbsd +@@ -939,7 +951,6 @@ + ;; + *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; + *-386bsd* ) opsys=386bsd ;; +- *-freebsd* ) opsys=freebsd ;; + *-nextstep* ) opsys=nextstep ;; + ## Otherwise, we'll fall through to the generic opsys code at the bottom. + esac diff --git a/editors/emacs20/pkg-plist b/editors/emacs20/pkg-plist index 9c3edfe..3d30edd 100644 --- a/editors/emacs20/pkg-plist +++ b/editors/emacs20/pkg-plist @@ -51,17 +51,17 @@ info/widget @exec install-info %D/info/vip %D/info/dir @exec install-info %D/info/viper %D/info/dir @exec install-info %D/info/widget %D/info/dir -libexec/emacs/%%EMACS_VER%%/i386--freebsd/cvtmail -libexec/emacs/%%EMACS_VER%%/i386--freebsd/digest-doc -libexec/emacs/%%EMACS_VER%%/i386--freebsd/emacsserver -libexec/emacs/%%EMACS_VER%%/i386--freebsd/fakemail -libexec/emacs/%%EMACS_VER%%/i386--freebsd/hexl -libexec/emacs/%%EMACS_VER%%/i386--freebsd/movemail -libexec/emacs/%%EMACS_VER%%/i386--freebsd/profile -libexec/emacs/%%EMACS_VER%%/i386--freebsd/rcs2log -libexec/emacs/%%EMACS_VER%%/i386--freebsd/sorted-doc -libexec/emacs/%%EMACS_VER%%/i386--freebsd/vcdiff -libexec/emacs/%%EMACS_VER%%/i386--freebsd/yow +libexec/emacs/%%EMACS_VER%%/%%EMACS_ARCH%%/cvtmail +libexec/emacs/%%EMACS_VER%%/%%EMACS_ARCH%%/digest-doc +libexec/emacs/%%EMACS_VER%%/%%EMACS_ARCH%%/emacsserver +libexec/emacs/%%EMACS_VER%%/%%EMACS_ARCH%%/fakemail +libexec/emacs/%%EMACS_VER%%/%%EMACS_ARCH%%/hexl +libexec/emacs/%%EMACS_VER%%/%%EMACS_ARCH%%/movemail +libexec/emacs/%%EMACS_VER%%/%%EMACS_ARCH%%/profile +libexec/emacs/%%EMACS_VER%%/%%EMACS_ARCH%%/rcs2log +libexec/emacs/%%EMACS_VER%%/%%EMACS_ARCH%%/sorted-doc +libexec/emacs/%%EMACS_VER%%/%%EMACS_ARCH%%/vcdiff +libexec/emacs/%%EMACS_VER%%/%%EMACS_ARCH%%/yow share/emacs/%%EMACS_VER%%/etc/3B-MAXMEM share/emacs/%%EMACS_VER%%/etc/AIX.DUMP share/emacs/%%EMACS_VER%%/etc/BABYL @@ -1287,7 +1287,7 @@ share/emacs/%%EMACS_VER%%/lisp/zone-mode.el share/emacs/%%EMACS_VER%%/lisp/zone-mode.elc share/emacs/%%EMACS_VER%%/site-lisp/subdirs.el share/emacs/site-lisp/subdirs.el -@dirrm libexec/emacs/%%EMACS_VER%%/i386--freebsd +@dirrm libexec/emacs/%%EMACS_VER%%/%%EMACS_ARCH%% @dirrm libexec/emacs/%%EMACS_VER%% @dirrm libexec/emacs @dirrm share/emacs/%%EMACS_VER%%/etc/e |