68 lines
1.6 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.20 2000/07/21 18:13:58 espie Exp $
1997-11-15 00:04:24 +00:00
VER= 20.7
1998-09-13 19:51:00 +00:00
DISTNAME= emacs-${VER}
1997-11-15 00:04:24 +00:00
CATEGORIES= editors
NEED_VERSION= 1.317
MASTER_SITES= ${MASTER_SITE_GNU}
1999-03-07 01:38:58 +00:00
MASTER_SITE_SUBDIR= emacs
1998-10-08 22:56:33 +00:00
MAINTAINER= xenophon@irtnog.org
1999-05-30 06:27:41 +00:00
# GPL
2000-03-07 02:13:10 +00:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2000-02-12 08:02:07 +00:00
2000-04-09 20:34:02 +00:00
FLAVORS= no_X11
CONFIGURE_STYLE= gnu dest
2000-03-07 02:13:10 +00:00
USE_GMAKE= Yes
1997-12-04 07:22:46 +00:00
.if ${MACHINE} == "arc" || ${MACHINE} == "pmax" || ${MACHINE} == "wgrisc"
M_ARCH= mipsel
.elif ${MACHINE} == "hkmips" || ${MACHINE} == "sgi"
M_ARCH= mips
.else
M_ARCH= ${MACHINE_ARCH}
.endif
2000-03-07 02:13:10 +00:00
GCCARCH= ${M_ARCH}-unknown-openbsd${OPSYS_VER}
SUBST_VARS= GCCARCH VER
2000-04-09 20:34:02 +00: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 defined(FLAVOR) && ${FLAVOR} == "no_X11"
2000-04-09 20:34:02 +00:00
CONFIGURE_ARGS+=--without-x
.else
2000-03-07 02:13:10 +00:00
CONFIGURE_ARGS+=${GCCARCH} --with-x-toolkit
2000-04-09 20:34:02 +00: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 19:51:00 +00: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 19:51:00 +00:00
STRIP_PROGS+= ${DISTNAME}
.endif
STRIP_EXECS= cvtmail digest-doc emacsserver fakemail hexl movemail \
profile sorted-doc yow
1997-11-15 00:04:24 +00:00
post-install:
.for file in ${STRIP_PROGS}
1997-11-15 00:04:24 +00:00
strip ${PREFIX}/bin/${file}
.endfor
.for file in ${STRIP_EXECS}
1998-09-13 19:51:00 +00:00
strip ${PREFIX}/libexec/emacs/${VER}/${GCCARCH}/${file}
.endfor
1997-11-15 00:04:24 +00:00
.include <bsd.port.mk>