summaryrefslogtreecommitdiff
path: root/editors/xemacs-devel
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2004-03-25 10:59:14 +0000
committerKris Kennaway <kris@FreeBSD.org>2004-03-25 10:59:14 +0000
commit412fec5a76080feee70929db2186851d5684ea67 (patch)
treed6ec05ace3f4b8dc1a13b4180473be14b8b5560b /editors/xemacs-devel
parentCatch up with the master port's update to 4.2.0. (diff)
Port to amd64.
Submitted by: James Van Artsdalen <james-freebsd-amd64 at jrv.org>, gallatin, kan
Notes
Notes: svn path=/head/; revision=105220
Diffstat (limited to 'editors/xemacs-devel')
-rw-r--r--editors/xemacs-devel/Makefile9
-rw-r--r--editors/xemacs-devel/files/patch-ak2
-rw-r--r--editors/xemacs-devel/files/patch-mem-limits.h11
3 files changed, 20 insertions, 2 deletions
diff --git a/editors/xemacs-devel/Makefile b/editors/xemacs-devel/Makefile
index 68a26e9cab3a..318b04d7a075 100644
--- a/editors/xemacs-devel/Makefile
+++ b/editors/xemacs-devel/Makefile
@@ -55,6 +55,13 @@ ALL_TARGET= all dist
PLIST_SUB= XEMACS_VER=${XEMACS_VER} XEMACS_ARCH=${XEMACS_ARCH}
+.include <bsd.port.pre.mk>
+
+# Undump and malloc do not behave on amd64 at the moment
+.if ${ARCH} == "amd64"
+CONFIGURE_ARGS+= --with-system-malloc --pdump
+.endif
+
pre-fetch:
#.if !defined(WANT_GTK)
# @${ECHO_MSG} "If you want to use GTK, please set the environment variable WANT_GTK "
@@ -122,4 +129,4 @@ post-install::
# @${ECHO_MSG} "to ${PORTNAME}${PKGNAMESUFFIX}-${XEMACS_VER}."
#.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/editors/xemacs-devel/files/patch-ak b/editors/xemacs-devel/files/patch-ak
index a45db5e1084d..1284f826cc7e 100644
--- a/editors/xemacs-devel/files/patch-ak
+++ b/editors/xemacs-devel/files/patch-ak
@@ -4,7 +4,7 @@
# include <sys/exec_elf.h>
#endif
-+#if defined(__FreeBSD__) && defined(__alpha__)
++#if defined(__FreeBSD__) && (defined(__alpha__) || defined(__amd64__))
+# ifdef __STDC__
+# define ElfW(type) Elf64_##type
+# else
diff --git a/editors/xemacs-devel/files/patch-mem-limits.h b/editors/xemacs-devel/files/patch-mem-limits.h
new file mode 100644
index 000000000000..a5ce6cb35839
--- /dev/null
+++ b/editors/xemacs-devel/files/patch-mem-limits.h
@@ -0,0 +1,11 @@
+--- src/mem-limits.h.bak Thu Mar 18 13:08:19 2004
++++ src/mem-limits.h Thu Mar 18 13:08:42 2004
+@@ -108,7 +108,7 @@
+ static POINTER data_space_start;
+
+ /* Number of bytes of writable memory we can expect to be able to get */
+-extern unsigned int lim_data;
++extern rlim_t lim_data;
+
+ #if defined (HEAP_IN_DATA) && !defined(PDUMP)
+ extern unsigned long static_heap_size;