openbsd-ports/editors/emacs/Makefile

59 lines
1.4 KiB
Makefile
Raw Normal View History

# $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
MAINTAINER= ports@OpenBSD.ORG
1997-11-14 19:04:24 -05:00
MASTER_SITES= ${MASTER_SITE_GNU}
1998-10-08 18:56:33 -04: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
SYS_REL!= uname -r
1997-12-04 02:22:46 -05:00
GCCARCH= ${M_ARCH}-unknown-openbsd${SYS_REL}
1997-12-04 02:22:46 -05:00
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)
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
# 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
1997-11-14 19:04:24 -05:00
post-install:
.for file in ${STRIP_PROGS}
1997-11-14 19:04:24 -05:00
strip ${PREFIX}/bin/${file}
.endfor
.for file in ${STRIP_EXECS}
1998-09-13 15:51:00 -04:00
strip ${PREFIX}/libexec/emacs/${VER}/${GCCARCH}/${file}
.endfor
1997-11-14 19:04:24 -05:00
.include <bsd.port.mk>