aboutsummaryrefslogtreecommitdiffstats
path: root/accessibility/yasr/Makefile
blob: d6dbe18a4b3ade4a5e71522f8b6c8ff95f8e81b6 (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
# Created by: David K. Gerry
# $FreeBSD$

PORTNAME=   yasr
PORTVERSION=    0.6.9
PORTREVISION=   4
CATEGORIES= accessibility
MASTER_SITES=   SF

MAINTAINER= David.K.Gerry@GMail.com
COMMENT=    General-purpose console screen reader

LICENSE=    LGPL20
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       gmake
GNU_CONFIGURE=  yes
PORTDOCS=   AUTHORS BUGS CREDITS ChangeLog NEWS README TODO \
        README-br README-de README-es README-fr README-ru
SUB_FILES=  pkg-message

NLS_USES=   gettext
NLS_CONFIGURE_ENABLE=   nls
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB=    yes
EXTRA_PATCHES=  ${FILESDIR}/extra-patch-yasr__main.c

PLIST_FILES=    bin/yasr \
        man/man1/yasr.1.gz \
        %%DATADIR%%/yasr.conf \
        %%NLS%%share/locale/es/LC_MESSAGES/yasr.mo \
        %%NLS%%share/locale/fr/LC_MESSAGES/yasr.mo

post-patch:
    @${REINPLACE_CMD} -e 's|/bin/bash|/bin/csh|' ${WRKSRC}/yasr.conf

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>