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


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

1.1
date	2003.07.31.17.36.55;	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:		29 October 1994
# Whom:			jkh
#
# $FreeBSD$
# $ports: ports/editors/emacs20/Makefile,v 1.59 2003/07/02 01:56:51 cracauer Exp $
#

PORTNAME=	emacs
PORTVERSION=	${EMACS_VER}
PORTREVISION=	2
CATEGORIES+=	editors ipv6
MASTER_SITES=	${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	emacs

PATCH_SITES=		${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR=	shige/emacs
PATCHFILES=		emacs-20.7-linespace-patch.gz
PATCH_DIST_STRIP=	-p1

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

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

USE_AUTOCONF_VER=213
USE_GMAKE=	yes
EMACS_VER=	20.7
USE_REINPLACE=	yes
CONFIGURE_TARGET=	${MACHINE_ARCH}--freebsd
.if defined(WITHOUT_X11)
CONFIGURE_ARGS=	--with-x=no --with-pop
.else
CONFIGURE_ARGS=	--with-x-toolkit --with-pop
USE_XLIB=	yes
.endif
CONFIGURE_ARGS+=	--with-line-space

MAKE_ENV=	INSTALL_SCRIPT="${INSTALL_SCRIPT}"
MAN1=		emacs.1 etags.1 ctags.1
PLIST_SUB=	EMACS_VER=${EMACS_VER} EMACS_ARCH=${CONFIGURE_TARGET}

RECOMPILE_ELS=	dired.el startup.el

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

pre-build:
	${RM} -rf ${WRKSRC}/info/*

post-build:
# to rebuild emacs because startup.elc should be updated
	@@(cd ${WRKSRC}/lisp; \
		${WRKSRC}/src/emacs -batch -q -no-init-file \
			-f batch-byte-compile ${RECOMPILE_ELS} ; \
	)
	@@${RM} -f ${WRKSRC}/src/emacs ${WRKSRC}/src/emacs-${EMACS_VER}*
	@@(cd ${BUILD_WRKSRC}; \
		${SETENV} ${MAKE_ENV} \
		${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET} ;\
	)

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

.include <bsd.port.mk>
@


1.1
log
@Add elisp/emacsen ports in the ports tree @@ 2003/07/31
@
text
@d24 2
d29 1
d45 5
d64 5
@

