2011-03-23 15:55:01 +01:00
|
|
|
# $NetBSD: Makefile,v 1.25 2011/03/23 14:55:01 minskim Exp $
|
2001-02-20 09:33:59 +01:00
|
|
|
|
2011-03-23 15:55:01 +01:00
|
|
|
DISTNAME= apel-10.8
|
2005-08-28 06:25:28 +02:00
|
|
|
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
|
2001-02-20 09:33:59 +01:00
|
|
|
CATEGORIES= devel
|
2007-02-20 15:20:54 +01:00
|
|
|
MASTER_SITES= http://kanji.zinbun.kyoto-u.ac.jp/~tomo/lemi/dist/apel/
|
2001-02-20 09:33:59 +01:00
|
|
|
|
2007-02-20 15:20:54 +01:00
|
|
|
MAINTAINER= uebayasi@NetBSD.org
|
2001-02-20 09:33:59 +01:00
|
|
|
HOMEPAGE= http://www.kanji.zinbun.kyoto-u.ac.jp/~tomo/elisp/APEL/
|
2007-02-20 15:20:54 +01:00
|
|
|
COMMENT= Portable Emacs library
|
2003-01-11 10:28:47 +01:00
|
|
|
|
2008-10-11 11:31:54 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
INSTALLATION_DIRS+= ${DOCDIR} \
|
|
|
|
${EMACS_LISPPREFIX:C|^${PREFIX}/||}/apel \
|
|
|
|
${EMACS_LISPPREFIX:C|^${PREFIX}/||}/emu
|
|
|
|
|
2004-03-25 04:16:25 +01:00
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST.${EMACS_FLAVOR}
|
2007-02-20 15:20:54 +01:00
|
|
|
BUILD_TARGET= ${BUILD_TARGET.${EMACS_FLAVOR}}
|
|
|
|
INSTALL_TARGET= ${INSTALL_TARGET.${EMACS_FLAVOR}}
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_FLAGS+= EMACS=${EMACS_FLAVOR:Q}
|
|
|
|
MAKE_FLAGS+= LISPDIR=${EMACS_LISPPREFIX:Q}
|
|
|
|
MAKE_FLAGS+= VERSION_SPECIFIC_LISPDIR=${EMACS_LISPPREFIX:Q}
|
2007-02-20 15:20:54 +01:00
|
|
|
MAKE_FLAGS+= ${MAKE_FLAGS.${EMACS_FLAVOR}}
|
2003-01-11 10:28:47 +01:00
|
|
|
|
2005-03-05 17:33:07 +01:00
|
|
|
# apel is included in xemacs-packages
|
2011-02-09 13:45:33 +01:00
|
|
|
EMACS_VERSIONS_ACCEPTED=emacs24 emacs23 emacs23nox emacs22 emacs22nox \
|
2010-11-20 23:44:39 +01:00
|
|
|
emacs21 emacs21nox emacs20
|
2007-10-29 13:53:51 +01:00
|
|
|
|
2007-02-20 15:20:54 +01:00
|
|
|
BUILD_TARGET.emacs= elc
|
|
|
|
BUILD_TARGET.xemacs= package
|
2007-10-29 13:53:51 +01:00
|
|
|
INSTALL_TARGET.emacs= install
|
2007-02-20 15:20:54 +01:00
|
|
|
INSTALL_TARGET.xemacs= install-package
|
2007-10-29 13:53:51 +01:00
|
|
|
MAKE_FLAGS.emacs=
|
2007-02-20 15:20:54 +01:00
|
|
|
MAKE_FLAGS.xemacs= PACKAGEDIR=${EMACS_LISPPREFIX:C|/lisp$||}
|
2003-08-18 15:12:47 +02:00
|
|
|
|
2011-03-23 15:55:01 +01:00
|
|
|
.include "../../editors/emacs/modules.mk"
|
|
|
|
|
|
|
|
PLIST_VARS+= emacs23 emacs19
|
|
|
|
.if empty(EMACS_TYPE:Mxemacs)
|
|
|
|
. if !empty(EMACS_TYPE:Memacs2[3-9])
|
|
|
|
PLIST.emacs23= yes
|
|
|
|
. else
|
|
|
|
PLIST.emacs19= yes
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2008-10-11 11:31:54 +02:00
|
|
|
# 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
|
|
|
|
|
2001-02-20 09:33:59 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|