pkgsrc/devel/elib/Makefile.common
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

39 lines
1.1 KiB
Text

# $NetBSD: Makefile.common,v 1.6 2008/10/11 09:31:55 uebayasi Exp $
#
DISTNAME= elib-1.0
CATEGORIES= devel
MASTER_SITES= http://jdee.sunsite.dk/
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Library of utility functions for Emacs
PKG_DESTDIR_SUPPORT= user-destdir
.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= # PLIST
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"