1999-01-31 16:40:05 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.9 1999/01/31 21:40:05 marc Exp $
|
1997-11-17 13:53:37 -05:00
|
|
|
#
|
1997-11-14 19:04:24 -05:00
|
|
|
|
1998-09-13 15:51:00 -04:00
|
|
|
VER= 20.3
|
|
|
|
DISTNAME= emacs-${VER}
|
1997-11-14 19:04:24 -05:00
|
|
|
CATEGORIES= editors
|
|
|
|
|
1998-03-29 02:35:28 -05:00
|
|
|
MAINTAINER= ports@OpenBSD.ORG
|
1997-11-14 19:04:24 -05:00
|
|
|
|
1998-12-27 15:18:57 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
1998-10-08 18:56:33 -04:00
|
|
|
|
1999-01-31 16:40:05 -05:00
|
|
|
#USE_AUTOCONF= yes
|
1997-11-14 19:04:24 -05:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
1997-12-04 02:22:46 -05: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
|
1998-03-29 02:35:28 -05:00
|
|
|
SYS_REL!= uname -r
|
1997-12-04 02:22:46 -05:00
|
|
|
|
1998-03-29 02:35:28 -05:00
|
|
|
GCCARCH= ${M_ARCH}-unknown-openbsd${SYS_REL}
|
1997-12-04 02:22:46 -05:00
|
|
|
CONFIGURE_ARGS= ${GCCARCH} --with-x-toolkit
|
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
|
|
|
|
1999-01-31 16:40:05 -05:00
|
|
|
# Put generated PLIST into WRKDIR to avoid collisions in a shared ports tree.
|
|
|
|
#
|
|
|
|
PLIST= ${WRKDIR}/PLIST
|
|
|
|
|
1998-03-29 02:35:28 -05:00
|
|
|
pre-install pre-package:
|
1999-01-31 16:40:05 -05:00
|
|
|
@${RM} -f ${WRKDIR}/PLIST
|
1998-03-29 02:35:28 -05:00
|
|
|
@${SED} -e 's/||CONFIG||/${GCCARCH}/' \
|
1999-01-31 16:40:05 -05:00
|
|
|
${FILESDIR}/PLIST.template >${WRKDIR}/PLIST
|
1998-03-29 02:35:28 -05:00
|
|
|
|
1997-11-14 19:04:24 -05:00
|
|
|
post-install:
|
1998-04-06 01:17:48 -04:00
|
|
|
.for file in ${STRIP_PROGS}
|
1997-11-14 19:04:24 -05:00
|
|
|
strip ${PREFIX}/bin/${file}
|
|
|
|
.endfor
|
1998-04-06 01:17:48 -04:00
|
|
|
.for file in ${STRIP_EXECS}
|
1998-09-13 15:51:00 -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>
|