freebsd-ports/editors/emacs20/Makefile
Will Andrews f3171de7e6 First round of auto* cleanups:
- USE_AUTO* -> USE_AUTO*_VER=* where required
 - USE_AUTO* / *_DEPENDS=.*auto*:*/devel/auto* -> GNU_CONFIGURE where OK
 - Other minor changes to fix things

These changes should be no-ops with the current bsd.port.mk, but will
assist in preparing for the next generation of USE_AUTO*.

Submitted by:	bento 4-exp USE_AUTO* cleanups
		http://people.FreeBSD.org/~will/4-exp/
		http://bento.FreeBSD.org/errorlogs/4-exp-latest/
2002-01-06 06:20:22 +00:00

56 lines
1.3 KiB
Makefile

# New ports collection makefile for: GNU emacs
# Date created: 29 October 1994
# Whom: jkh
#
# $FreeBSD$
#
PORTNAME= emacs
PORTVERSION= ${EMACS_VER}
PORTREVISION= 1
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
USE_AUTOCONF_VER=213
USE_GMAKE= yes
EMACS_VER= 20.7
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
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} ;\
)
.include <bsd.port.mk>