summaryrefslogtreecommitdiff
path: root/devel/elib/Makefile.common
blob: 0a6688013c3adcf090e363a037fe955d3d6d328b (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
# $NetBSD: Makefile.common,v 1.10 2017/08/16 20:45:34 wiz Exp $
#
# used by devel/emacs20-elib/Makefile

DISTNAME=	elib-1.0
CATEGORIES=	devel
#MASTER_SITES=	http://jdee.sunsite.dk/

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	Library of utility functions for Emacs

.include "../../editors/emacs/modules.mk"

PKGSRC_MAKE_ENV+=	EMACS=${EMACS_FLAVOR:Q}
MAKEFLAGS+=		EMACS=${EMACS_FLAVOR:Q}

NO_CONFIGURE=	yes
USE_TOOLS+=	gmake makeinfo

INFO_FILES=	yes

DISTINFO_FILE=	${.CURDIR}/../../devel/elib/distinfo
PATCHDIR=	${.CURDIR}/../../devel/elib/patches
PLIST_SRC=	${.CURDIR}/../../devel/elib/PLIST

INSTALLATION_DIRS=	${EMACS_LISPPREFIX}/elib ${EMACS_INFOPREFIX}

SRCS=	stack-f.el stack-m.el queue-f.el queue-m.el elib-node.el	\
	bintree.el avltree.el string.el read.el cookie.el dll.el	\
	dll-debug.el

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}/elib
	cd ${WRKSRC} && ${INSTALL_DATA} ${SRCS} ${SRCS:.el=.elc} 	\
			${DESTDIR}${EMACS_LISPPREFIX}/elib
	cd ${WRKSRC} && ${INSTALL_DATA} elib.info* ${DESTDIR}${EMACS_INFOPREFIX}

.include "../../mk/bsd.pkg.mk"