openbsd-ports/editors/emacs/Makefile
espie 300de2f141 Use standard ports tree substitution mechanisms,
adapt to recent formatting changes (CONFIGURE_STYLE)

Set MAINTAINER.
2000-07-21 18:13:58 +00:00

68 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.20 2000/07/21 18:13:58 espie Exp $
VER= 20.7
DISTNAME= emacs-${VER}
CATEGORIES= editors
NEED_VERSION= 1.317
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= emacs
MAINTAINER= xenophon@irtnog.org
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
FLAVORS= no_X11
CONFIGURE_STYLE= gnu dest
USE_GMAKE= Yes
.if ${MACHINE} == "arc" || ${MACHINE} == "pmax" || ${MACHINE} == "wgrisc"
M_ARCH= mipsel
.elif ${MACHINE} == "hkmips" || ${MACHINE} == "sgi"
M_ARCH= mips
.else
M_ARCH= ${MACHINE_ARCH}
.endif
GCCARCH= ${M_ARCH}-unknown-openbsd${OPSYS_VER}
SUBST_VARS= GCCARCH VER
# Uncomment for POP support
#CONFIGURE_ARGS+=--with-pop
# Uncomment for Kerberos support
#CONFIGURE_ARGS+=--with-kerberos
# Uncomment for Hesiod support
#CONFIGURE_ARGS+=--with-hesiod
.if defined(FLAVOR) && ${FLAVOR} == "no_X11"
CONFIGURE_ARGS+=--without-x
.else
CONFIGURE_ARGS+=${GCCARCH} --with-x-toolkit
.endif
# Do NOT strip on install. We will strip those things that can be
# stripped after install. (emacs crashes if stripped on an alpha)
# To do the job correctly temacs should be stripped, not emacs
# (which is created from temacs).
INSTALL_STRIP=
STRIP_PROGS= emacsclient etags ctags b2m
.if (${MACHINE_ARCH} != "alpha")
STRIP_PROGS+= ${DISTNAME}
.endif
STRIP_EXECS= cvtmail digest-doc emacsserver fakemail hexl movemail \
profile sorted-doc yow
post-install:
.for file in ${STRIP_PROGS}
strip ${PREFIX}/bin/${file}
.endfor
.for file in ${STRIP_EXECS}
strip ${PREFIX}/libexec/emacs/${VER}/${GCCARCH}/${file}
.endfor
.include <bsd.port.mk>