summaryrefslogtreecommitdiff
path: root/editors/emacs22/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'editors/emacs22/Makefile')
-rw-r--r--editors/emacs22/Makefile70
1 files changed, 21 insertions, 49 deletions
diff --git a/editors/emacs22/Makefile b/editors/emacs22/Makefile
index dc8b1d4e103c..cfd2523e227b 100644
--- a/editors/emacs22/Makefile
+++ b/editors/emacs22/Makefile
@@ -7,6 +7,8 @@
PORTNAME= emacs
PORTVERSION= ${EMACS_VER}
+PORTREVISION= 1
+PORTEPOCH= 1
CATEGORIES= editors ipv6
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -15,12 +17,8 @@ MAINTAINER= keramida@ceid.upatras.gr
COMMENT= GNU editing macros
.if !defined(WITHOUT_X11)
-USE_XORG= x11
-USE_GNOME= librsvg2
.if defined(WITHOUT_GTK)
-USE_XORG= xaw xft xpm
-.else
-USE_GNOME+= gtk20
+LIB_DEPENDS= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
.endif
LIB_DEPENDS+= jpeg.10:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff \
@@ -28,66 +26,48 @@ LIB_DEPENDS+= jpeg.10:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png
.endif
-MAKE_JOBS_UNSAFE= yes
-
-CONFLICTS= emacs-19.* emacs-21.* emacs-22.* \
+CONFLICTS= emacs-19.* emacs-21.* \
xemacs-[0-9]* xemacs-devel-[0-9]* \
xemacs-mule-[0-9]* xemacs-devel-mule-[0-9]*
-INSTALLS_ICONS= yes
-
-EMACS_VER= 23.1
+EMACS_VER= 22.3
GNU_CONFIGURE= yes
USE_GMAKE= yes
-USE_BZIP2= yes
+
+.if !defined(WITHOUT_X11)
+.if !defined(WITHOUT_GTK)
+USE_GNOME= gtk20
+.else
+USE_XORG= x11
+.endif
+USE_XORG= xpm xft
+.endif
.if defined(WITHOUT_X11)
CONFIGURE_ARGS= --with-x=no
.else
.if !defined(WITHOUT_GTK)
-CONFIGURE_ARGS= --with-x-toolkit=gtk
-.else
-CONFIGURE_ARGS= --with-x-toolkit=athena
+CONFIGURE_ARGS= --with-gtk
.endif
-LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 \
- m17n.3:${PORTSDIR}/devel/m17n-lib
-# also libotf, which is pulled in by m17n
-
-# m17n depends on libintl.so too
-CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib -lintl"
-USE_GETTEXT= yes
.endif
.if defined(WITHOUT_XIM)
CONFIGURE_ARGS+= --without-xim
.endif
-MAN1= b2m.1 ctags.1 ebrowse.1 emacs.1 emacsclient.1 etags.1 \
- grep-changelog.1 rcs-checkin.1
+MAN1= ctags.1 emacs.1 emacsclient.1 etags.1
PLIST_SUB= EMACS_VER=${EMACS_VER} EMACS_ARCH=${CONFIGURE_TARGET}
MAKE_ENV= LC_ALL=C
-INFO= ada-mode auth autotype calc ccmode cl dbus dired-x \
- ebrowse ediff efaq eintr elisp emacs-mime emacs epa \
- erc eshell eudc flymake forms gnus idlwave info \
- mairix-el message mh-e newsticker nxml-mode \
- org pcl-cvs pgg rcirc reftex remember sasl sc ses sieve \
- smtpmail speedbar tramp url vip viper widget woman
-
-LATEST_LINK= emacs23
-
-OPTIONS= SOURCES "Install source code" ON
+INFO= ada-mode autotype calc ccmode cl dired-x ebrowse ediff \
+ efaq eintr elisp emacs-mime emacs erc eshell eudc \
+ flymake forms gnus idlwave info message mh-e newsticker \
+ org pcl-cvs pgg rcirc reftex sc ses sieve smtpmail speedbar \
+ tramp url vip viper widget woman
.include <bsd.port.pre.mk>
-.if defined(WITH_SOURCES)
-PLIST_SUB+= SOURCES=""
-.else
-PLIST_SUB+= SOURCES="@comment "
-.endif
-
.if ${ARCH} == "ia64"
BROKEN= Emacs 22.X does not currently build on ia64
.endif
@@ -106,13 +86,5 @@ pre-everything::
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(WITH_SOURCES)
-post-install:
- @${MKDIR} ${DATADIR}/${EMACS_VER}/src
- @${INSTALL_DATA} ${WRKSRC}/src/*.[ch] ${DATADIR}/${EMACS_VER}/src
- @${INSTALL_DATA} ${WRKSRC}/sources.el ${DATADIR}/${EMACS_VER}/site-lisp/site-start.el
-.endif
.include <bsd.port.post.mk>