aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/nl-mythes/Makefile
blob: cd769678e0403159e9826699bf973ca8f1cdeabe (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
41
42
43
44
45
# New ports collection makefile for:    nl-mythes
# Date created:     2011-07-21
# Whom:         Baptiste Daroussin <bapt@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   mythes
PORTVERSION=    2011.08.23
CATEGORIES= textproc
MASTER_SITES=   LOCAL/sunpoet/${PORTNAME}/
PKGNAMEPREFIX=  nl-
DISTNAME=   thes_nl-${PORTVERSION:C/\.//g}
EXTRACT_SUFX=   .oxt
DIST_SUBDIR=    ${PORTNAME}

MAINTAINER= office@FreeBSD.org
COMMENT=    Dutch thesaurus

LICENSE=    BSD

USE_ZIP=    yes
NO_BUILD=   yes
NO_WRKSUBDIR=   yes

PLIST_FILES=    %%DATADIR%%/th_nl_NL_v2.dat \
        %%DATADIR%%/th_nl_NL_v2.idx
PLIST_DIRSTRY=  %%DATADIR%%

NLALIASES=  nl_AW nl_BE
.for ALIAS in ${NLALIASES}
PLIST_FILES+=   %%DATADIR%%/th_${ALIAS}_v2.dat \
        %%DATADIR%%/th_${ALIAS}_v2.idx
.endfor

do-install:
    ${MKDIR} ${DATADIR}/
    ${INSTALL_DATA} ${WRKSRC}/th_nl_v2.dat ${DATADIR}/th_nl_NL_v2.dat
    ${INSTALL_DATA} ${WRKSRC}/th_nl_v2.dat ${DATADIR}/th_nl_NL_v2.idx
.for ALIAS in ${NLALIASES}
    ${LN} -s th_nl_NL_v2.dat ${DATADIR}/th_${ALIAS}_v2.dat
    ${LN} -s th_nl_NL_v2.idx ${DATADIR}/th_${ALIAS}_v2.idx
.endfor

.include <bsd.port.mk>