summaryrefslogtreecommitdiff
path: root/textproc/hunspell/Makefile.common
blob: afbbf283e53746d807ac5aa7dd2efa211cec0a8f (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
54
55
56
57
58
59
60
61
62
# $NetBSD: Makefile.common,v 1.6 2015/02/20 03:14:01 mef Exp $
#
# used by textproc/hunspell-af_ZA/Makefile
# used by textproc/hunspell-bg_BG/Makefile
# used by textproc/hunspell-ca_ES/Makefile
# used by textproc/hunspell-cs_CZ/Makefile
# used by textproc/hunspell-cy_GB/Makefile
# used by textproc/hunspell-da_DK/Makefile
# used by textproc/hunspell-el_GR/Makefile
# used by textproc/hunspell-en_CA/Makefile
# used by textproc/hunspell-en_NZ/Makefile
# used by textproc/hunspell-en_ZA/Makefile
# used by textproc/hunspell-es_ES/Makefile
# used by textproc/hunspell-es_MX/Makefile
# used by textproc/hunspell-fo_FO/Makefile
# used by textproc/hunspell-fy_NL/Makefile
# used by textproc/hunspell-ga_IE/Makefile
# used by textproc/hunspell-he_IL/Makefile
# used by textproc/hunspell-hr_HR/Makefile
# used by textproc/hunspell-id_ID/Makefile
# used by textproc/hunspell-lt_LT/Makefile
# used by textproc/hunspell-lv_LV/Makefile
# used by textproc/hunspell-mg_MG/Makefile
# used by textproc/hunspell-ms_MY/Makefile
# used by textproc/hunspell-nl_NL/Makefile
# used by textproc/hunspell-ny_MW/Makefile
# used by textproc/hunspell-pl_PL/Makefile
# used by textproc/hunspell-ru_RU/Makefile

PKGNAME=	hunspell-${DISTNAME}-${VERSION}
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_OPENOFFICE:=contrib/dictionaries/}

HOMEPAGE=	http://wiki.services.openoffice.org/wiki/Dictionaries

# Whether to install readme files for dict
HUNDICT_INSTALL_README?=	yes
PLIST_VARS=	readme

EXTRACT_SUFX=	.zip
USE_LANGUAGES=	# none
NO_BUILD=	yes

WRKSRC=			${WRKDIR}
DIST_SUBDIR=		hunspell-dictionaries/${DISTNAME}-${VERSION}

PLIST_SRC=		../../textproc/hunspell/PLIST.common
PLIST_SUBST+=		DISTNAME=${DISTNAME}

.if ${HUNDICT_INSTALL_README} == "yes"
PLIST.readme=		yes
.endif

INSTALLATION_DIRS=	share/hunspell share/doc/hunspell-${DISTNAME}

do-install:
	${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.aff ${DESTDIR}${PREFIX}/share/hunspell
	${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.dic ${DESTDIR}${PREFIX}/share/hunspell
.if ${HUNDICT_INSTALL_README} == "yes"
	${INSTALL_DATA} ${WRKSRC}/README_${DISTNAME}.txt \
	${DESTDIR}${PREFIX}/share/doc/hunspell-${DISTNAME}
.endif