pkgsrc/editors/leim21/Makefile
uebayasi 34004f51e0 Move mk/emacs.mk to editors/emacs/modules.mk.
Don't call pkg_info to get the installed Emacs version; always use the
version matching EMACS_TYPE set by users.  Be DEPENDS to it.  This should
address pkg/37146 by Aleksey Cheusov.

While here convert some emacs lisp packages to user-destdir.
2008-10-11 09:31:54 +00:00

40 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2008/10/11 09:31:56 uebayasi Exp $
DISTNAME= leim-${VERSION}
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
PKGREVISION= 1
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_GNU:=emacs/}
DISTFILES= emacs-${VERSION}a${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html
COMMENT= Libraries of Emacs Input Methods (for emacs21)
WRKSRC= ${WRKDIR}/emacs-${VERSION}/leim
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
VERSION= 21.4
EMACS_VERSIONS_ACCEPTED= emacs21 emacs21nox
CONFIG_GUESS_OVERRIDE= ../config.guess
CONFIG_SUB_OVERRIDE= ../config.sub
EMACS21_FILESDIR= ${.CURDIR}/../../editors/emacs21/files
post-extract:
@${ECHO} '#!/bin/sh' >${WRKSRC}/configure
@${ECHO} 'cd ..' >>${WRKSRC}/configure
@${ECHO} 'exec ./configure $$*' >>${WRKSRC}/configure
@${CHMOD} +x ${WRKSRC}/configure
${CP} ${EMACS21_FILESDIR}/dragonfly.h ${WRKSRC}/../src/s
.include "../../mk/bsd.prefs.mk"
post-install:
@${CHOWN} -R ${ROOT_USER} ${PREFIX}/share/emacs/${VERSION}/leim
.include "../../editors/emacs/modules.mk"
.include "../../mk/bsd.pkg.mk"