head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2003.10.13.03.18.45;	author yoichi;	state Exp;
branches;
next	1.1;

1.1
date	2003.07.31.17.36.56;	author shige;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Update to use elisp-conf.
@
text
@# New ports collection makefile for:	GNU emacs
# Date created:		11 October 2001
# Whom:			MANTANI Nobutaka <nobutaka@@nobutaka.com>
#
# $FreeBSD$
# $ports: ports/editors/emacs21/Makefile,v 1.16 2003/04/08 14:53:13 nobutaka Exp $
#

PORTNAME=	emacs
PORTVERSION=	21.3
CATEGORIES=	editors ipv6
MASTER_SITES=		${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	nobutaka@@FreeBSD.org
COMMENT=	GNU editing macros

RUN_DEPENDS=	${LOCALBASE}/share/elisp-conf/elisp-conf:../../sysutils/elisp-conf

.if !defined(WITHOUT_X11)
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
USE_XLIB=	yes
USE_XPM=	yes
.endif

.if defined(WITH_MENUBAR_FONTSET)
PATCH_SITES=		http://www.nijino.com/ari/emacs/
PATCHFILES=		emacs-21.1-fontset.patch
PATCH_DIST_STRIP=	-p1
.endif

USE_AUTOCONF_VER=213
USE_GMAKE=	yes
USE_REINPLACE=	yes

CONFIGURE_TARGET=	${MACHINE_ARCH}--freebsd
.if defined(WITHOUT_X11)
CONFIGURE_ARGS=		--with-x=no
.endif
.if defined(WITHOUT_XIM)
CONFIGURE_ARGS+=	--without-xim
.endif

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=	emacs21

pre-everything::
.if !defined(WITH_MENUBAR_FONTSET)
	@@${ECHO_MSG} "====>"
	@@${ECHO_MSG} "====> To enable menubar fontset support, define WITH_MENUBAR_FONTSET"
	@@${ECHO_MSG} "====>"
.endif

post-extract:
	cp ${FILESDIR}/elisp-conf:emacs21 ${WRKSRC}/elisp-conf:emacs21
	${REINPLACE_CMD} -e "s,@@@@@@@@PREFIX@@@@@@@@,${PREFIX},g" ${WRKSRC}/elisp-conf:emacs21
	${REINPLACE_CMD} -e "s,@@@@@@@@VERSION@@@@@@@@,${PORTVERSION},g" ${WRKSRC}/elisp-conf:emacs21

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})

post-install:
	${MKDIR} ${PREFIX}/share/elisp-conf/emacsen/emacs21
	${INSTALL_DATA} ${WRKSRC}/elisp-conf:emacs21 ${PREFIX}/share/elisp-conf/emacsen/emacs21/config
	[ -f ${PREFIX}/share/elisp-conf/emacsen-setup ] && sh ${PREFIX}/share/elisp-conf/emacsen-setup emacs21 || true
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.1
log
@Add elisp/emacsen ports in the ports tree @@ 2003/07/31
@
text
@d18 2
d38 1
d64 5
d86 3
@

