aboutsummaryrefslogtreecommitdiffstats
path: root/editors/emacs23
diff options
context:
space:
mode:
authorashish <ashish@FreeBSD.org>2011-05-16 20:27:12 +0800
committerashish <ashish@FreeBSD.org>2011-05-16 20:27:12 +0800
commitddb54c8a9b7c6b25671b6ae35e84dac48177bca5 (patch)
treeebb884d37f8f8398fe71afd728b87e744f75b042 /editors/emacs23
parente2ece5d91d5896e0edd2d64a614285a4c34410d7 (diff)
downloadfreebsd-ports-gnome-ddb54c8a9b7c6b25671b6ae35e84dac48177bca5.tar.gz
freebsd-ports-gnome-ddb54c8a9b7c6b25671b6ae35e84dac48177bca5.tar.zst
freebsd-ports-gnome-ddb54c8a9b7c6b25671b6ae35e84dac48177bca5.zip
- Update emacs.desktop to launch Emacs in Terminal when WITHOUT_X11 is
defined.[1] - Emacs picks up giflib if available instead of libungif. Account for this.[2] - Include 'alloca' fix.[2] PR: ports/156167[1] Submitted by: Zhihao Yuan <lichray@gmail.com>[1] Herbert J. Skuhra <h.skuhra@gmail.com>[2] (via private email)
Diffstat (limited to 'editors/emacs23')
-rw-r--r--editors/emacs23/Makefile8
-rw-r--r--editors/emacs23/files/patch-src_config.in14
2 files changed, 22 insertions, 0 deletions
diff --git a/editors/emacs23/Makefile b/editors/emacs23/Makefile
index c22b2042064f..871e6db130cf 100644
--- a/editors/emacs23/Makefile
+++ b/editors/emacs23/Makefile
@@ -7,6 +7,7 @@
PORTNAME= emacs
PORTVERSION= ${EMACS_VER}
+PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= editors ipv6
MASTER_SITES= ${MASTER_SITE_GNU}
@@ -139,7 +140,11 @@ LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff
.if defined(WITHOUT_GIF)
CONFIGURE_ARGS+= --without-gif
.else
+. if exists(${LOCALBASE}/lib/libgif.so)
+LIB_DEPENDS+= gif.5:${PORTSDIR}/graphics/giflib
+. else
LIB_DEPENDS+= ungif.5:${PORTSDIR}/graphics/libungif
+. endif
.endif
.if defined(WITHOUT_PNG)
@@ -225,6 +230,9 @@ BROKEN= Emacs 23.X does not currently build on ia64
post-patch:
@${RM} -f ${WRKSRC}/info/*
@${REINPLACE_CMD} -e "s/%%EMACS_VER%%/${EMACS_VER}/g" -e "s/%%DATADIR%%/${DATADIR:C/\//\\\//g}/g" ${WRKSRC}/sources.el
+.if defined(WITHOUT_X11)
+ @${REINPLACE_CMD} -e 's/^Terminal=.*$$/Terminal=true/' ${WRKSRC}/etc/emacs.desktop
+.endif
post-configure:
@${REINPLACE_CMD} -e "s/^\(DBUS_LIBS.*\)-pthread\(.*\)$$/\1$$(${DBUS_PTHREAD_LIBS})\2/" ${WRKSRC}/src/Makefile
diff --git a/editors/emacs23/files/patch-src_config.in b/editors/emacs23/files/patch-src_config.in
new file mode 100644
index 000000000000..834b77b8c5c2
--- /dev/null
+++ b/editors/emacs23/files/patch-src_config.in
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- src/config.in.orig
++++ src/config.in
+@@ -1183,6 +1183,8 @@
+ #endif
+ #ifdef HAVE_ALLOCA_H
+ # include <alloca.h>
++#elif defined __FreeBSD__
++#include <stdlib.h>
+ #elif defined __GNUC__
+ # define alloca __builtin_alloca
+ #elif defined _AIX