blob: b6197cb8fb17d975fad500240f1856c7ab3df77f (
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
47
48
49
50
51
52
53
|
# $NetBSD: Makefile,v 1.6 2017/07/30 22:32:18 wiz Exp $
#
DISTNAME= dbskkd-cdb-2.00
PKGREVISION= 1
CATEGORIES= inputmethod japanese
MASTER_SITES= http://dbskkd-cdb.googlecode.com/files/
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= https://github.com/jj1bdx/dbskkd-cdb
COMMENT= SKK dictionary server based on cdb
LICENSE= gnu-gpl-v3
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
INSTALLATION_DIRS= libexec \
${DOCSDIR} \
bin
DEPENDS= skk-jisyo-cdb-[0-9]*:../../inputmethod/skk-jisyo-cdb
SUBST_CLASSES+= fix-paths
SUBST_STAGE.fix-paths= pre-configure
SUBST_MESSAGE.fix-paths= fixing pathes
SUBST_FILES.fix-paths= dbskkd-cdb.c
SUBST_SED.fix-paths= -e 's,/usr/local/share/skk/SKK-JISYO.L.cdb,${LOCALBASE}/share/skk/SKK-JISYO.L.cdb,g'
CDBLIB= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.tinycdb}/lib \
-L${BUILDLINK_PREFIX.tinycdb}/lib -lcdb
MAKE_FLAGS+= CDBLIB=${CDBLIB:Q}
MAKE_FLAGS+= INSTALLDIR=${DESTDIR}${PREFIX}/libexec
INSTALL_DOCS= CHANGES \
LICENSE \
README \
READMEJP \
example-daemontools.txt \
example-inetd.txt \
skk-server-protocol.txt
INSTALL_SCRIPTS= makeskkcdb.sh \
skktocdbm.sh
post-install:
.for filename in ${INSTALL_DOCS}
${INSTALL_DATA} ${WRKSRC}/${filename} ${DESTDIR}/${DOCSDIR}
.endfor
.for filename in ${INSTALL_SCRIPTS}
${INSTALL_SCRIPT} ${WRKSRC}/${filename} ${DESTDIR}${DOCSDIR}
.endfor
.include "../../databases/tinycdb/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|