1997-11-14 19:04:24 -05:00
|
|
|
# New ports collection makefile for: GNU emacs
|
|
|
|
# Version required: 20.2
|
|
|
|
# Date created: 14 Nov 1997
|
|
|
|
# Whom: ejovi
|
1997-11-17 13:53:37 -05:00
|
|
|
#
|
1998-03-29 02:35:28 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.4 1998/03/29 07:35:28 marc Exp $
|
1997-11-17 13:53:37 -05:00
|
|
|
#
|
1997-11-14 19:04:24 -05:00
|
|
|
|
|
|
|
DISTNAME= emacs-20.2
|
|
|
|
CATEGORIES= editors
|
|
|
|
MASTER_SITES= ftp://prep.ai.mit.edu/pub/gnu/
|
|
|
|
|
1998-03-29 02:35:28 -05:00
|
|
|
MAINTAINER= ports@OpenBSD.ORG
|
1997-11-14 19:04:24 -05:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/emacs-20.2
|
|
|
|
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
|
1997-11-14 19:04:24 -05:00
|
|
|
STRIP=
|
|
|
|
MAN1= emacs.1 etags.1 ctags.1
|
|
|
|
|
1998-03-29 02:35:28 -05:00
|
|
|
pre-install pre-package:
|
|
|
|
@${RM} -f ${PKGDIR}/PLIST
|
|
|
|
@${SED} -e 's/||CONFIG||/${GCCARCH}/' \
|
|
|
|
${FILESDIR}/PLIST.template >${PKGDIR}/PLIST
|
|
|
|
|
1997-11-14 19:04:24 -05:00
|
|
|
post-install:
|
|
|
|
.for file in emacs-20.2 emacsclient etags ctags b2m
|
|
|
|
strip ${PREFIX}/bin/${file}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|