openbsd-ports/editors/emacs/Makefile
pvalchev 69a751d30d Fix identical to the one drahn made to emacs21:
Work around the fact that emacs undump knows too much about the layout
of elf files (or thinks it does). These assumptions were just broken
by binutils/ld changes to put GOT and PLT into their own PT_LOAD sections.
Thus BSS is no longer part of the DATA PT_LOAD section. This is a workaround
using the '-Z' compatibility flag which disables the GOT/PLT padding.
2003-01-24 08:54:54 +00:00

69 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.28 2003/01/24 08:54:54 pvalchev Exp $
COMMENT= "GNU editor"
VER= 20.7
DISTNAME= emacs-${VER}
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_GNU:=emacs/}
MAINTAINER= Matthew Economou <xenophon@irtnog.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
SUBST_VARS= GCCARCH VER
.include <bsd.own.mk>
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu dest
CONFIGURE_ARGS+= ${GCCARCH}
.if ${ELF_TOOLCHAIN} == "yes"
CONFIGURE_ENV= LDFLAGS="-Z"
.endif
FLAVORS= no_x11
FLAVOR?=
M_ARCH= ${MACHINE_ARCH}
GCCARCH= ${M_ARCH}-unknown-openbsd${OPSYS_VER}
# Uncomment for POP support
#CONFIGURE_ARGS+=--with-pop
# Uncomment for Kerberos support
#CONFIGURE_ARGS+=--with-kerberos
# Uncomment for Hesiod support
#CONFIGURE_ARGS+=--with-hesiod
.if ${FLAVOR:L} == "no_x11"
CONFIGURE_ARGS+= --without-x
.else
CONFIGURE_ARGS+= --with-x-toolkit
.endif
# 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
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>