pkgsrc/devel/apel/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

50 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.20 2008/10/11 09:31:55 uebayasi Exp $
DISTNAME= apel-10.7
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://kanji.zinbun.kyoto-u.ac.jp/~tomo/lemi/dist/apel/
MAINTAINER= uebayasi@NetBSD.org
HOMEPAGE= http://www.kanji.zinbun.kyoto-u.ac.jp/~tomo/elisp/APEL/
COMMENT= Portable Emacs library
PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS+= ${DOCDIR} \
${EMACS_LISPPREFIX:C|^${PREFIX}/||}/apel \
${EMACS_LISPPREFIX:C|^${PREFIX}/||}/emu
PLIST_SRC= ${PKGDIR}/PLIST.${EMACS_FLAVOR}
BUILD_TARGET= ${BUILD_TARGET.${EMACS_FLAVOR}}
INSTALL_TARGET= ${INSTALL_TARGET.${EMACS_FLAVOR}}
MAKE_FLAGS+= EMACS=${EMACS_FLAVOR:Q}
MAKE_FLAGS+= LISPDIR=${EMACS_LISPPREFIX:Q}
MAKE_FLAGS+= VERSION_SPECIFIC_LISPDIR=${EMACS_LISPPREFIX:Q}
MAKE_FLAGS+= ${MAKE_FLAGS.${EMACS_FLAVOR}}
# apel is included in xemacs-packages
EMACS_VERSIONS_ACCEPTED=emacs22 emacs22nox emacs21 emacs21nox emacs20
BUILD_TARGET.emacs= elc
BUILD_TARGET.xemacs= package
INSTALL_TARGET.emacs= install
INSTALL_TARGET.xemacs= install-package
MAKE_FLAGS.emacs=
MAKE_FLAGS.xemacs= PACKAGEDIR=${EMACS_LISPPREFIX:C|/lisp$||}
# Pkgsrc developers should run "install" without this and check if PLIST is
# correct. Users just need to install files.
do-install: plist
cd ${WRKSRC}; \
for subdir in emu apel; do \
grep -v '^@' ${PLIST} | grep "/site-lisp/$$subdir/" | \
while read file; do \
file=$$( basename $$file ); \
${INSTALL_DATA} $$file \
${DESTDIR}${EMACS_LISPPREFIX}/$$subdir/$$file; \
done \
done
.include "../../editors/emacs/modules.mk"
.include "../../mk/bsd.pkg.mk"