blob: af989bcd8fbd745258f7ea07bd1803b6dbdb8ceb (
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,v 1.5 2004/03/27 21:45:07 wiz Exp $
#
DISTNAME= matlab.el
PKGNAME= matlab-mode-2.3.1
CATEGORIES= editors math
MASTER_SITES= http://www.mathworks.com/matlabcentral/files/104/
EXTRACT_SUFX=
MAINTAINER= dmcmahill@NetBSD.org
HOMEPAGE= http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=104&objectType=file
COMMENT= Matlab mode for Emacs
WRKSRC= ${WRKDIR}
EXTRACT_CMD= ${CP} ${DOWNLOADED_DISTFILE} ${WRKDIR}
DIST_SUBDIR= ${PKGNAME_NOREV}
.include "../../mk/emacs.mk"
.if ${EMACS_FLAVOR} == "emacs"
EMACS= emacs
.else
EMACS= xemacs
.endif
SRCS= matlab.el
do-build:
for f in ${SRCS}; do \
${EMACS} --no-init-file --no-site-file -batch \
-f batch-byte-compile ${WRKSRC}/$$f; \
done
do-install:
${INSTALL_DATA_DIR} ${EMACS_LISPPREFIX}/${PKGBASE}
cd ${WRKSRC} && ${INSTALL_DATA} ${SRCS} ${SRCS:.el=.elc} ${EMACS_LISPPREFIX}/${PKGBASE}
.include "../../mk/bsd.pkg.mk"
|