45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.6 2013/03/10 10:42:37 hiramatsu Exp $
|
|
#
|
|
|
|
DISTNAME= SKK-JISYO.L.${SKKJISYO_VERS}
|
|
PKGNAME= skk-jisyo-cdb-${SKKJISYO_VERS}
|
|
CATEGORIES= japanese inputmethod
|
|
MASTER_SITES= ${MASTER_SITE_FREEBSD_LOCAL:=matusita/skk-jisyo/}
|
|
EXTRACT_SUFX= .bz2
|
|
|
|
MAINTAINER= ryoon@NetBSD.org
|
|
HOMEPAGE= http://openlab.ring.gr.jp/skk/wiki/wiki.cgi?page=SKK%BC%AD%BD%F1
|
|
COMMENT= Dictionary collection for SKK
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
BUILD_DEPENDS+= tinycdb-[0-9]*:../../databases/tinycdb
|
|
|
|
USE_LANGUAGES= # empty
|
|
|
|
SKKJISYO_VERS= 201212
|
|
|
|
INSTALLATION_DIRS+= ${PREFIX}/share/skk
|
|
|
|
FIND_PREFIX:= CDBDIR=tinycdb
|
|
.include "../../mk/find-prefix.mk"
|
|
|
|
do-build:
|
|
LC_ALL=C ${AWK} '/^[^;]/ { \
|
|
s = substr($$0, index($$0, " ") + 1); \
|
|
print "+" length($$1) "," length(s) ":" $$1 "->" s; \
|
|
} \
|
|
END { \
|
|
print ""; \
|
|
}' \
|
|
< ${WRKDIR}/SKK-JISYO.L.${SKKJISYO_VERS} | \
|
|
${CDBDIR}/bin/cdb -c -t - \
|
|
${WRKDIR}/SKK-JISYO.L.${SKKJISYO_VERS}.cdb
|
|
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKDIR}/SKK-JISYO.L.${SKKJISYO_VERS}.cdb \
|
|
${DESTDIR}${PREFIX}/share/skk/SKK-JISYO.L.cdb
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|