openbsd-ports/editors/emacs/Makefile

67 lines
1.5 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.23 2001/02/09 02:06:23 brad Exp $
1997-11-14 19:04:24 -05:00
VER= 20.7
1998-09-13 15:51:00 -04:00
DISTNAME= emacs-${VER}
1997-11-14 19:04:24 -05:00
CATEGORIES= editors
NEED_VERSION= 1.336
MASTER_SITES= ${MASTER_SITE_GNU}
1999-03-06 20:38:58 -05:00
MASTER_SITE_SUBDIR= emacs
1998-10-08 18:56:33 -04:00
2000-10-23 13:26:07 -04:00
MAINTAINER= Matthew Economou <xenophon@irtnog.org>
1999-05-30 02:27:41 -04:00
2000-03-06 21:13:10 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2000-02-12 03:02:07 -05:00
SUBST_VARS= GCCARCH VER
2000-03-06 21:13:10 -05:00
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu dest
FLAVORS= no_x11
FLAVOR?=
1997-12-04 02:22:46 -05:00
.if ${MACHINE} == "pmax"
1997-12-04 02:22:46 -05:00
M_ARCH= mipsel
.else
M_ARCH= ${MACHINE_ARCH}
.endif
2000-03-06 21:13:10 -05:00
GCCARCH= ${M_ARCH}-unknown-openbsd${OPSYS_VER}
2000-04-09 16:34:02 -04:00
# 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 ${FLAVOR:L} == "no_x11"
CONFIGURE_ARGS+= --without-x
2000-04-09 16:34:02 -04:00
.else
CONFIGURE_ARGS+= ${GCCARCH} --with-x-toolkit
2000-04-09 16:34:02 -04:00
.endif
# Do NOT strip on install. We will strip those things that can be
# stripped after install. (emacs crashes if stripped on an alpha)
1998-09-13 15:51:00 -04:00
# 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")
1998-09-13 15:51:00 -04:00
STRIP_PROGS+= ${DISTNAME}
.endif
STRIP_EXECS= cvtmail digest-doc emacsserver fakemail hexl movemail \
profile sorted-doc yow
1997-11-14 19:04:24 -05:00
post-install:
.for file in ${STRIP_PROGS}
@strip ${PREFIX}/bin/${file}
1997-11-14 19:04:24 -05:00
.endfor
.for file in ${STRIP_EXECS}
@strip ${PREFIX}/libexec/emacs/${VER}/${GCCARCH}/${file}
.endfor
1997-11-14 19:04:24 -05:00
.include <bsd.port.mk>