openbsd-ports/editors/emacs/Makefile
marc c78bcf5e70 add patches so system termcap lib is NOT used,
fixes -nw mode on console/xterm; move generated
PLIST to  so concurrent loads don't
clobber each other
1999-01-31 21:40:05 +00:00

59 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 1999/01/31 21:40:05 marc Exp $
#
VER= 20.3
DISTNAME= emacs-${VER}
CATEGORIES= editors
MAINTAINER= ports@OpenBSD.ORG
MASTER_SITES= ${MASTER_SITE_GNU}
#USE_AUTOCONF= yes
GNU_CONFIGURE= yes
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
SYS_REL!= uname -r
GCCARCH= ${M_ARCH}-unknown-openbsd${SYS_REL}
CONFIGURE_ARGS= ${GCCARCH} --with-x-toolkit
# 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
# Put generated PLIST into WRKDIR to avoid collisions in a shared ports tree.
#
PLIST= ${WRKDIR}/PLIST
pre-install pre-package:
@${RM} -f ${WRKDIR}/PLIST
@${SED} -e 's/||CONFIG||/${GCCARCH}/' \
${FILESDIR}/PLIST.template >${WRKDIR}/PLIST
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>