summaryrefslogtreecommitdiff
path: root/japanese/Wnn7-lib/Makefile
blob: 43507d9420658b26ce416c1a55890586c91cdb63 (plain) (blame)
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
# Created by: Satoshi Taoka <taoka@FreeBSD.org>
# $FreeBSD$

PORTNAME=	Wnn7
PORTVERSION=	2001.10.17
PORTREVISION=	3
CATEGORIES=	japanese
MASTER_SITES=	http://www.omronsoft.co.jp/SP/pcunix/sdk/wnn/
PKGNAMESUFFIX=	-lib
DISTNAME=	Wnn7SDK
EXTRACT_SUFX=	.tgz

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	Wnn7 client library

USES=		imake
USE_LDCONFIG=	yes
WRKSRC=		${WRKDIR}/src
PORTDOCS=	README

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \
		${WRKSRC}/config/Project.tmpl \
		${WRKSRC}/config/X11.tmpl \
		${WRKSRC}/Makefile.ini
	@${REINPLACE_CMD} -e 's/((/(/' ${WRKSRC}/config/X11.tmpl

# Warning: we cannot use USE_IMAKE.
do-build:
	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} make World -f Makefile.ini)

post-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/include/wnn7/wnn
	${INSTALL_DATA} ${WRKSRC}/Wnn/include/*.h ${STAGEDIR}${PREFIX}/include/wnn7/wnn
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>