summaryrefslogtreecommitdiff
path: root/textproc/po-mode/Makefile
blob: 77c94ce3b2211ef8d2e0a896c5a0f1c8fdc52206 (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
# $NetBSD: Makefile,v 1.1.1.1 2010/02/16 17:22:13 taca Exp $

DISTNAME=		gettext-0.14.6
PKGNAME=		po-mode-2.01
CATEGORIES=		textproc
MASTER_SITES=		${MASTER_SITE_GNU:=gettext/}
EXTRACT_ELEMENTS=	${DISTNAME}/gettext-tools/misc

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.gnu.org/software/gettext/gettext.html
COMMENT=		PO(Portable Object) file editing mode for GNU emacs
LICENSE=		gnu-gpl-v2

WRKSRC=			${WRKDIR}/${DISTNAME}/gettext-tools/misc
NO_CONFIGURE=		YES
PKG_DESTDIR_SUPPORT=	user-destdir
INSTALLATION_DIRS+=	${EMACS_LISPPREFIX:C|^${PREFIX}/||}/po-mode

SRCS=			po-compat.el po-mode.el start-po.el

do-build:
.for f in ${SRCS}
	cd ${WRKSRC} && \
		${EMACS_BIN} --no-init-file --no-site-file -batch \
		-f batch-byte-compile ${f}
.endfor

do-install:
	cd ${WRKSRC} && \
		${INSTALL_DATA} ${SRCS} ${SRCS:.el=.elc} \
			${DESTDIR}${EMACS_LISPPREFIX}/po-mode

.include "../../editors/emacs/modules.mk"
.include "../../mk/bsd.pkg.mk"