2002-05-13 08:37:36 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.26 2002/05/13 12:37:36 naddy Exp $
|
2001-05-05 20:28:54 -04:00
|
|
|
|
|
|
|
COMMENT= "GNU editor"
|
1997-11-14 19:04:24 -05:00
|
|
|
|
2000-07-21 01:33:03 -04: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
|
2002-05-13 08:37:36 -04:00
|
|
|
NEED_VERSION= 1.528
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=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
|
|
|
|
2001-02-08 21:06:23 -05:00
|
|
|
SUBST_VARS= GCCARCH VER
|
|
|
|
|
2000-03-06 21:13:10 -05:00
|
|
|
USE_GMAKE= Yes
|
2000-10-21 13:27:56 -04:00
|
|
|
CONFIGURE_STYLE= gnu dest
|
2001-09-15 17:43:42 -04:00
|
|
|
CONFIGURE_ARGS+= ${GCCARCH}
|
2000-10-21 13:27:56 -04:00
|
|
|
|
|
|
|
FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
1997-12-04 02:22:46 -05:00
|
|
|
|
|
|
|
M_ARCH= ${MACHINE_ARCH}
|
|
|
|
|
2000-03-06 21:13:10 -05:00
|
|
|
GCCARCH= ${M_ARCH}-unknown-openbsd${OPSYS_VER}
|
2000-04-09 16:34:02 -04:00
|
|
|
|
2000-07-21 01:33:03 -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
|
|
|
|
|
2000-10-21 13:27:56 -04:00
|
|
|
.if ${FLAVOR:L} == "no_x11"
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
2000-04-09 16:34:02 -04:00
|
|
|
.else
|
2001-09-15 17:43:42 -04:00
|
|
|
CONFIGURE_ARGS+= --with-x-toolkit
|
2000-04-09 16:34:02 -04:00
|
|
|
.endif
|
1998-04-06 01:17:48 -04:00
|
|
|
|
|
|
|
# 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).
|
1998-04-06 01:17:48 -04:00
|
|
|
INSTALL_STRIP=
|
|
|
|
STRIP_PROGS= emacsclient etags ctags b2m
|
|
|
|
.if (${MACHINE_ARCH} != "alpha")
|
1998-09-13 15:51:00 -04:00
|
|
|
STRIP_PROGS+= ${DISTNAME}
|
1998-04-06 01:17:48 -04:00
|
|
|
.endif
|
|
|
|
STRIP_EXECS= cvtmail digest-doc emacsserver fakemail hexl movemail \
|
|
|
|
profile sorted-doc yow
|
1997-11-14 19:04:24 -05:00
|
|
|
|
|
|
|
post-install:
|
1998-04-06 01:17:48 -04:00
|
|
|
.for file in ${STRIP_PROGS}
|
2000-10-21 13:27:56 -04:00
|
|
|
@strip ${PREFIX}/bin/${file}
|
1997-11-14 19:04:24 -05:00
|
|
|
.endfor
|
1998-04-06 01:17:48 -04:00
|
|
|
.for file in ${STRIP_EXECS}
|
2000-10-21 13:27:56 -04:00
|
|
|
@strip ${PREFIX}/libexec/emacs/${VER}/${GCCARCH}/${file}
|
1998-04-06 01:17:48 -04:00
|
|
|
.endfor
|
1997-11-14 19:04:24 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|