aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/bedic-data/Makefile
blob: 43acca9a83918e7fc2cbf39909a6e8b488813025 (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
# Created by: Peter Pentchev <roam@FreeBSD.org>
# $FreeBSD$

PORTNAME=   bedic-data
PORTVERSION=    0.1.b1
CATEGORIES= textproc
MASTER_SITES=   SF/kbedic/Dictionary%20Data/1.0
DISTNAME=   ${PORTNAME}

MAINTAINER= todorov@freebsd-bg.org
COMMENT=    Data (dictionary) files for the kbedic and cbedic ports

NO_BUILD=   yes
PLIST=      ${WRKDIR}/pkg-plist

DICT_ALL=   buleng.dat engbul.dat
DICT_DIR?=  ${PREFIX}/share
DICTIONARIES?=  ${DICT_ALL}

NO_STAGE=   yes
pre-fetch:
        @${ECHO_MSG} "You may set the DICTIONARIES variable to specify which dictionaries"
        @${ECHO_MSG} "should be installed; currently, it is set to ${DICTIONARIES}"
        @${ECHO_MSG} "Set it to one or more of the following: ${DICT_ALL}"

pre-install:
        @${ECHO_CMD} ${DICTIONARIES} | ${TR} ' ' '\n' | ${SED} 's,^,share/,' > ${PLIST}

do-install:
        ${MKDIR} ${DICT_DIR}
        ${INSTALL} ${DICTIONARIES:S,^,${WRKSRC}/,} ${DICT_DIR}/

.include <bsd.port.mk>