pkgsrc/chat/riece/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

45 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.16 2008/10/11 09:31:54 uebayasi Exp $
#
DISTNAME= riece-5.0.0
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
CATEGORIES= chat japanese
MASTER_SITES= http://download.savannah.gnu.org/releases/riece/
MAINTAINER= uebayasi@NetBSD.org
HOMEPAGE= http://www.nongnu.org/riece/
COMMENT= IRC client for Emacs
PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS= ${EMACS_LISPPREFIX:C|^${PREFIX}/||}/riece \
${EMACS_INFOPREFIX:C|^${PREFIX}/||}
EMACS_VERSIONS_ACCEPTED= \
emacs22 emacs22nox emacs21 emacs21nox xemacs215 xemacs215nox xemacs214 xemacs214nox
EMACS_MODULES= base
WRKSRC= ${WRKDIR}/${DISTNAME:C|[^0-9]$||}
GNU_CONFIGURE= YES
INFO_FILES= # PLIST
# --with-emacs=... or --with-xemacs=...
CONFIGURE_ARGS+= --with-${EMACS_FLAVOR}=${EMACS_BIN:Q}
CONFIGURE_ARGS+= ${CONFIGURE_ARGS.${EMACS_FLAVOR}}
# Riece digs sub directory.
CONFIGURE_ARGS.emacs= --with-lispdir=${EMACS_LISPPREFIX:Q}
CONFIGURE_ARGS.xemacs= --with-packagedir=${EMACS_LISPPREFIX:C|/lisp\$||}
do-install: plist
${INSTALL_DATA} ${WRKSRC}/doc/*.info ${DESTDIR}${EMACS_INFOPREFIX}
cd ${WRKSRC}/lisp; \
grep -v '^@' ${PLIST} | grep '/site-lisp/riece/' | \
while read file; do \
file=$$( basename $$file ); \
${INSTALL_DATA} $$file ${DESTDIR}${EMACS_LISPPREFIX}/riece; \
done
.include "../../editors/emacs/modules.mk"
.include "../../mk/bsd.pkg.mk"