aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/calcurse/Makefile
blob: 4e102c82be81eb4002c1dfa376dfb66d52807c23 (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
# Created by: Herbert J. Skuhra <h.skuhra@gmail.com>
# $FreeBSD$

PORTNAME=   calcurse
PORTVERSION=    4.0.0
CATEGORIES= deskutils
MASTER_SITES=   http://calcurse.org/files/

MAINTAINER= culot@FreeBSD.org
COMMENT=    Text-based calendar and scheduling application

LICENSE=    BSD2CLAUSE

OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB=    yes

USES=       gmake ncurses
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --without-asciidoc

DOCS_CONFIGURE_ENABLE=  docs
NLS_CONFIGURE_ENABLE=   nls
NLS_USES=   gettext

post-patch:
    @${REINPLACE_CMD} -e 's|^docdir = .*|docdir = ${DOCSDIR}|' ${WRKSRC}/doc/Makefile.in
    @${REINPLACE_CMD} -e 's|-R$$found_dir||' ${WRKSRC}/configure

post-install:
    ${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1

.include <bsd.port.mk>