summaryrefslogtreecommitdiffstats
path: root/textproc/uim-el/Makefile
blob: 14c583ba705a9867033c5fc3d6318a734c7a6518 (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
39
40
41
42
43
44
45
46
# Created by: MANTANI Nobutaka <nobutaka@FreeBSD.org>
# $FreeBSD$

PORTNAME=	uim-el
PORTVERSION=	1.8.6
PORTREVISION=	5
CATEGORIES=	textproc
MASTER_SITES=	https://github.com/uim/uim/releases/download/uim-${PORTVERSION}/
PKGNAMESUFFIX=	-${EMACS_PORT_NAME}
DISTNAME=	uim-${PORTVERSION}

MAINTAINER=	nobutaka@FreeBSD.org
COMMENT?=	Emacs lisp for uim input method library

CONFLICTS?=	uim-el-xemacs21-mule-[0-9]* \
		uim-el-emacs22-[0-9]* \
		uim-el-emacs21-[0-9]*

RUN_DEPENDS=	uim-el-agent:textproc/uim

OPTIONS_DEFINE=	DOCS

USES=		gettext-tools gmake iconv perl5 tar:bzip2
USE_PERL5=	build
USE_GNOME=	intltool
USE_EMACS=	yes
GNU_CONFIGURE=	yes

BUILD_WRKSRC=	${WRKSRC}/emacs
INSTALL_WRKSRC=	${WRKSRC}/emacs

CONFIGURE_ARGS?=--enable-emacs --with-lispdir=${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}
CONFIGURE_ENV=	EMACS="${EMACS_CMD}"
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib

DOCSDIR_JA=	${PREFIX}/share/doc/ja/uim-el
PLIST_SUB+=	DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}"

post-install:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${MKDIR} ${STAGEDIR}${DOCSDIR_JA}
	${INSTALL_DATA} ${WRKSRC}/emacs/README ${STAGEDIR}${DOCSDIR}/README
	${INSTALL_DATA} ${WRKSRC}/emacs/README.ja ${STAGEDIR}${DOCSDIR_JA}/README.ja

.include <bsd.port.mk>
OpenPOWER on IntegriCloud