pkgsrc/textproc/xslide/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

42 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2008/10/11 09:31:58 uebayasi Exp $
#
DISTNAME= xslide-0.2.2
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xslide/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://xslide.sourceforge.net/
COMMENT= XSL major mode for emacs
.include "../../editors/emacs/modules.mk"
.if ${EMACS_FLAVOR} == "emacs"
EMACS= emacs
.else
EMACS= xemacs
.endif
SRCS= xslide-abbrev.el xslide-data.el xslide-font.el xslide-process.el xslide.el
do-build:
cd ${WRKSRC} && \
for f in ${SRCS}; do \
${EMACS} --no-init-file --no-site-file -batch \
-l font-lock -l sendmail \
-l xslide-data.el -l xslide-abbrev.el -l xslide-font.el \
-l xslide-process.el -l xslide.el \
-f batch-byte-compile $$f; \
done
do-install:
${INSTALL_DATA_DIR} ${EMACS_LISPPREFIX}/${PKGBASE}
cd ${WRKSRC} && ${INSTALL_DATA} ${SRCS} ${SRCS:.el=.elc} ${EMACS_LISPPREFIX}/${PKGBASE}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xslide
${INSTALL_DATA} ${WRKSRC}/README.TXT ${PREFIX}/share/doc/xslide
${INSTALL_DATA} ${WRKSRC}/dot_emacs ${PREFIX}/share/doc/xslide
.include "../../mk/bsd.pkg.mk"