Add files from parent branch HEAD:
[pkgsrc.git] / editors / matlab-mode / Makefile
1 # $NetBSD$
2 #
3
4 DISTNAME=               matlab.el
5 # we do this because we want DIST_SUBDIR to not change based on
6 # emacs vs xemacs
7 BASEPKGNAME=            matlab-mode-2.3.1
8 PKGNAME=                ${EMACS_PKGNAME_PREFIX}${BASEPKGNAME}
9 PKGREVISION=            1
10 CATEGORIES=             editors math
11 MASTER_SITES=           http://www.mathworks.com/matlabcentral/files/104/
12 EXTRACT_SUFX=
13
14 MAINTAINER=             dmcmahill@NetBSD.org
15 HOMEPAGE=               http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=104&objectType=file
16 COMMENT=                Matlab mode for Emacs
17
18 PKG_DESTDIR_SUPPORT=    user-destdir
19
20 WRKSRC=                 ${WRKDIR}
21 DIST_SUBDIR=            ${BASEPKGNAME}
22
23 .include "../../editors/emacs/modules.mk"
24
25 .if ${EMACS_FLAVOR} == "emacs"
26 EMACS=  emacs
27 .else
28 EMACS=  xemacs
29 .endif
30
31 SRCS=   matlab.el
32
33 do-build:
34         for f in ${SRCS}; do                                            \
35                 ${EMACS} --no-init-file --no-site-file -batch           \
36                 -f batch-byte-compile ${WRKSRC}/$$f;                    \
37         done
38
39 do-install:
40         ${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}/${PKGBASE:C|^xemacs-||}
41         cd ${WRKSRC} && ${INSTALL_DATA} ${SRCS} ${SRCS:.el=.elc} ${DESTDIR}${EMACS_LISPPREFIX}/${PKGBASE}
42
43 .include "../../mk/bsd.pkg.mk"