aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2004-03-25 10:17:38 +0000
committerKris Kennaway <kris@FreeBSD.org>2004-03-25 10:17:38 +0000
commite5a91991c03a30d2ac77adc9c9ec7d799c3c9ab0 (patch)
tree320033d64f15b24e7fcd7db6ad7bed6d6ae13a04 /editors
parent82c19060e8d52159821a09ab8d132a2191b079d9 (diff)
downloadports-e5a91991c03a30d2ac77adc9c9ec7d799c3c9ab0.tar.gz
ports-e5a91991c03a30d2ac77adc9c9ec7d799c3c9ab0.zip
Notes
Diffstat (limited to 'editors')
-rw-r--r--editors/xemacs/Makefile9
-rw-r--r--editors/xemacs/files/patch-ak2
-rw-r--r--editors/xemacs/files/patch:mem-limits.h11
3 files changed, 20 insertions, 2 deletions
diff --git a/editors/xemacs/Makefile b/editors/xemacs/Makefile
index 67b3c883a86a..86f202213445 100644
--- a/editors/xemacs/Makefile
+++ b/editors/xemacs/Makefile
@@ -52,6 +52,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/files/patch-ak b/editors/xemacs/files/patch-ak
index a45db5e1084d..1284f826cc7e 100644
--- a/editors/xemacs/files/patch-ak
+++ b/editors/xemacs/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/files/patch:mem-limits.h b/editors/xemacs/files/patch:mem-limits.h
new file mode 100644
index 000000000000..a5ce6cb35839
--- /dev/null
+++ b/editors/xemacs/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;