1994-08-21 15:19:28 +02:00
|
|
|
# New ports collection makefile for: GNU emacs
|
2004-03-21 08:39:49 +01:00
|
|
|
# Date created: 11 October 2001
|
|
|
|
# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com>
|
1994-08-21 15:19:28 +02:00
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1994-08-21 15:19:28 +02:00
|
|
|
#
|
|
|
|
|
2000-04-14 02:25:54 +02:00
|
|
|
PORTNAME= emacs
|
2004-03-21 08:39:49 +01:00
|
|
|
PORTVERSION= 21.3
|
2005-05-06 20:35:07 +02:00
|
|
|
PORTREVISION= 6
|
2004-03-21 08:39:49 +01:00
|
|
|
CATEGORIES= editors ipv6
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1995-04-09 08:11:17 +02:00
|
|
|
|
2004-03-21 08:39:49 +01:00
|
|
|
MAINTAINER= nobutaka@FreeBSD.org
|
2003-02-20 18:12:51 +01:00
|
|
|
COMMENT= GNU editing macros
|
1997-07-17 12:38:15 +02:00
|
|
|
|
2005-05-06 10:56:30 +02:00
|
|
|
CONFLICTS= emacs-19.* emacs-20.* \
|
|
|
|
xemacs-[0-9]* xemacs-devel-[0-9]* \
|
|
|
|
xemacs-mule-[0-9]* xemacs-devel-mule-[0-9]*
|
|
|
|
|
2000-04-17 02:18:05 +02:00
|
|
|
.if !defined(WITHOUT_X11)
|
2004-03-21 08:39:49 +01:00
|
|
|
LIB_DEPENDS= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d \
|
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
|
|
|
ungif.5:${PORTSDIR}/graphics/libungif \
|
|
|
|
png.5:${PORTSDIR}/graphics/png
|
1999-07-04 05:28:44 +02:00
|
|
|
USE_XLIB= yes
|
2004-03-21 08:39:49 +01:00
|
|
|
USE_XPM= yes
|
1999-07-04 05:28:44 +02:00
|
|
|
.endif
|
1999-01-23 15:28:28 +01:00
|
|
|
|
2004-03-21 08:39:49 +01:00
|
|
|
.if defined(WITH_MENUBAR_FONTSET)
|
|
|
|
PATCH_SITES= http://www.nijino.com/ari/emacs/
|
|
|
|
PATCHFILES= emacs-21.1-fontset.patch emacs-21.2-menu-encode.patch
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
.endif
|
1994-08-21 15:19:28 +02:00
|
|
|
|
2004-03-21 08:39:49 +01:00
|
|
|
USE_AUTOCONF_VER=213
|
|
|
|
USE_GMAKE= yes
|
2004-02-25 11:34:28 +01:00
|
|
|
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
|
2004-03-21 08:39:49 +01:00
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
CONFIGURE_ARGS= --with-x=no
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_XIM)
|
|
|
|
CONFIGURE_ARGS+= --without-xim
|
2004-02-25 11:34:28 +01:00
|
|
|
.endif
|
|
|
|
|
2004-03-21 08:39:49 +01:00
|
|
|
MAN1= ctags.1 emacs.1 etags.1 gfdl.1
|
|
|
|
PLIST_SUB= EMACS_VER=${PORTVERSION} EMACS_ARCH=${CONFIGURE_TARGET}
|
|
|
|
TEXIFILES= ada-mode autotype cc-mode cl dired-x ebrowse ediff \
|
|
|
|
faq emacs emacs-mime eshell eudc forms gnus idlwave \
|
|
|
|
info message mh-e pcl-cvs reftex sc speedbar vip \
|
|
|
|
viper widget woman
|
|
|
|
|
|
|
|
LATEST_LINK= emacs
|
|
|
|
|
2005-05-05 19:22:06 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "ia64"
|
|
|
|
CFLAGS:= ${CFLAGS:C/-O(2|3|s)/-O/g}
|
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS}"
|
|
|
|
.endif
|
|
|
|
|
2004-03-21 08:39:49 +01:00
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITH_MENUBAR_FONTSET)
|
|
|
|
@${ECHO_MSG} "====>"
|
|
|
|
@${ECHO_MSG} "====> To enable menubar fontset support, define WITH_MENUBAR_FONTSET"
|
|
|
|
@${ECHO_MSG} "====>"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${RM} -f ${WRKSRC}/info/*
|
|
|
|
@(cd ${WRKSRC}/man ; \
|
|
|
|
for f in ${TEXIFILES} ; do \
|
|
|
|
${CP} $${f}.texi $${f}.texi.orig ; \
|
|
|
|
${SED} -e "s/@dircategory Emacs/@dircategory The Emacs editor and associated tools/" < $${f}.texi.orig > $${f}.texi ; \
|
|
|
|
${RM} $${f}.texi.orig ; \
|
|
|
|
done)
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
(cd ${WRKSRC}/lisp ; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} recompile ; \
|
|
|
|
${RM} ${WRKSRC}/src/emacs ${WRKSRC}/src/emacs-${PORTVERSION}.1 ; \
|
|
|
|
cd ${WRKSRC}/src ; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
|
|
|
|
|
1995-06-26 07:58:07 +02:00
|
|
|
post-install:
|
2004-03-21 08:39:49 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2005-05-05 19:22:06 +02:00
|
|
|
.include <bsd.port.post.mk>
|