summaryrefslogtreecommitdiff
path: root/chat/riece/Makefile
blob: ffc8c6914ee8b00bea1ca868932279edaeacdc37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $NetBSD: Makefile,v 1.18 2009/08/06 01:44:46 minskim Exp $
#

DISTNAME=	riece-5.0.0
PKGNAME=	${EMACS_PKGNAME_PREFIX}${DISTNAME}
PKGREVISION=	1
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= \
		emacs23 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"