summaryrefslogtreecommitdiff
path: root/textproc/po-mode/Makefile
blob: 8e740ce837d0905c483b341340012d51518e204e (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.2 2010/09/16 14:46:04 taca Exp $

DISTNAME=		gettext-0.18.1.1
PKGNAME=		po-mode-2.2
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"