2011-12-08 21:40:32 +01:00
|
|
|
# $NetBSD: Makefile,v 1.42 2011/12/08 20:40:32 marino Exp $
|
2003-04-11 02:31:43 +02:00
|
|
|
|
|
|
|
DISTNAME= emacs-20.7
|
2010-03-30 02:44:47 +02:00
|
|
|
PKGREVISION= 14
|
2003-04-11 02:31:43 +02:00
|
|
|
CATEGORIES= editors
|
2008-03-06 13:34:44 +01:00
|
|
|
MASTER_SITES= http://ftp.gnu.org/pub/old-gnu/emacs/ \
|
|
|
|
ftp://ftp.gnu.org/pub/old-gnu/emacs
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
DISTFILES+= ${DISTNAME}-mule-4.1b-elc${EXTRACT_SUFX}
|
|
|
|
SITES.${DISTNAME}-mule-4.1b-elc.tar.gz= ${MASTER_SITE_LOCAL}
|
2003-04-11 02:31:43 +02:00
|
|
|
|
|
|
|
# Mule enhancement (back port) patch by Satoshi Yatagawa
|
2008-03-06 13:34:44 +01:00
|
|
|
SITES.emacs-20.7-mule-4.1b.patch= \
|
|
|
|
http://www.teu.ac.jp/nsit/~yatagawa/comp/emacs/
|
2003-04-11 02:31:43 +02:00
|
|
|
PATCHFILES= emacs-20.7-mule-4.1b.patch
|
|
|
|
# XIM fix patch by Seiichiro Inoue
|
2008-03-06 13:34:44 +01:00
|
|
|
SITES.emacs20-xim-20000713.diff= \
|
|
|
|
http://home.catv.ne.jp/pp/ginoue/software/emacs-xim/
|
2003-04-11 02:31:43 +02:00
|
|
|
PATCHFILES+= emacs20-xim-20000713.diff
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
2011-08-01 07:41:08 +02:00
|
|
|
MAINTAINER= dholland@NetBSD.org
|
2003-04-11 02:31:43 +02:00
|
|
|
HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html
|
|
|
|
COMMENT= GNU editing macros (editor)
|
|
|
|
|
2010-02-04 07:40:19 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2011-12-08 21:40:32 +01:00
|
|
|
NOT_FOR_PLATFORM= Darwin-*-* DragonFly-*-*
|
2005-05-16 23:05:27 +02:00
|
|
|
|
2003-04-11 02:31:43 +02:00
|
|
|
CONFLICTS= mule-[0-9]*
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2003-04-11 02:31:43 +02:00
|
|
|
GNU_ARCH.mipsbe= mips
|
|
|
|
|
2005-06-30 12:12:35 +02:00
|
|
|
# build PATH in the dumped emacs is not a problem
|
2006-12-06 16:03:49 +01:00
|
|
|
CHECK_WRKREF_SKIP+= bin/emacs
|
|
|
|
CHECK_WRKREF_SKIP+= bin/emacs-20.7
|
2005-06-30 12:12:35 +02:00
|
|
|
|
2003-04-11 02:31:43 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-06-28 19:14:29 +02:00
|
|
|
# This matches NetBSD <1.7 releases and 1.6A-1.6P, where ld is <2.13.2.1.
|
2006-01-04 18:00:32 +01:00
|
|
|
.if (${OPSYS} == "NetBSD" && \
|
2003-06-28 19:14:29 +02:00
|
|
|
(empty(OS_VERSION:M1.[0-5]*) && \
|
|
|
|
empty(OS_VERSION:M1.6_*) && \
|
|
|
|
empty(OS_VERSION:M1.6) && \
|
|
|
|
empty(OS_VERSION:M1.6.[0-9]*) && \
|
2006-01-04 18:00:32 +01:00
|
|
|
empty(OS_VERSION:M1.6[A-P]*))) || \
|
|
|
|
(${OPSYS} == "DragonFly")
|
2003-06-28 19:14:29 +02:00
|
|
|
# If using GNU ld 2.13.2.1 or later, avoid creating combined reloc
|
|
|
|
# sections and .data reloc sections, both of which Emacs can't handle
|
|
|
|
# properly. Analyzed by Stephen Ma.
|
|
|
|
LDFLAGS+= -Wl,-z,nocombreloc
|
|
|
|
.endif
|
|
|
|
|
2010-03-30 02:44:47 +02:00
|
|
|
# NetBSD < 5.99.24 uses termcap; afterwards terminfo. Emacs needs to be told.
|
|
|
|
.if (${OPSYS} == "NetBSD") && !exists(/usr/include/term.h)
|
|
|
|
CPPFLAGS+=-D__NETBSD_USE_TERMCAP__
|
|
|
|
.endif
|
|
|
|
|
2009-04-30 19:22:06 +02:00
|
|
|
.if (${OPSYS} == "DragonFly") && exists(/usr/lib/crtn.o)
|
|
|
|
CPPFLAGS+= -DDFLY_CRT_USRLIB
|
2007-06-30 03:01:12 +02:00
|
|
|
.endif
|
|
|
|
|
2007-08-13 14:40:57 +02:00
|
|
|
.include "options.mk"
|
2003-04-11 06:00:17 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= INSTALL_STRIP=${_STRIPFLAG_INSTALL:Q}
|
2003-06-30 02:17:06 +02:00
|
|
|
|
2004-03-25 23:13:34 +01:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if !empty(CC_VERSION:Mgcc-3.*)
|
|
|
|
CFLAGS+= -fno-zero-initialized-in-bss
|
|
|
|
.endif
|
|
|
|
|
2006-03-30 05:44:41 +02:00
|
|
|
INFO_FILES= # PLIST
|
2003-04-11 02:31:43 +02:00
|
|
|
|
|
|
|
INSTALL_PROGRAM=${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
|
|
|
|
|
2004-02-28 21:57:48 +01:00
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/amd64.h ${WRKSRC}/src/m
|
2007-06-30 03:01:12 +02:00
|
|
|
${CP} ${FILESDIR}/dragonfly.h ${WRKSRC}/src/s
|
2004-02-28 21:57:48 +01:00
|
|
|
|
2003-04-11 02:31:43 +02:00
|
|
|
pre-install:
|
2004-01-27 01:53:10 +01:00
|
|
|
@${FIND} ${WRKSRC} -type f -name "*.orig*" -print | ${XARGS} ${RM} -f
|
2003-04-11 02:31:43 +02:00
|
|
|
|
|
|
|
post-install:
|
2010-02-04 07:40:19 +01:00
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${PREFIX}/share/emacs
|
2003-04-11 02:31:43 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|