aboutsummaryrefslogtreecommitdiffstats
path: root/www/newsboat/Makefile
blob: a8574e57f082d19113f031835dae910317a6275f (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
# Created by: arved
# $FreeBSD$

PORTNAME=   newsboat
PORTVERSION=    2.13
DISTVERSIONPREFIX=  r
CATEGORIES= www

MAINTAINER= mt@markoturk.info
COMMENT=    RSS feed reader for the text console

LICENSE=    MIT
LICENSE_FILE=   ${WRKSRC}/LICENSE

BUILD_DEPENDS=  a2x:textproc/asciidoc
LIB_DEPENDS=    libstfl.so:devel/stfl \
        libcurl.so:ftp/curl \
        libjson-c.so:devel/json-c

USES=       compiler:c++11-lib gettext gmake gnome iconv:translit ncurses \
        pkgconfig sqlite shebangfix ssl
USE_GITHUB= yes
USE_CXXSTD= gnu++11
USE_GNOME=  libxml2

MAKE_ARGS=  mandir=${PREFIX}/man prefix=${PREFIX}

OPTIONS_DEFINE= DOCS

post-patch:
    ${REINPLACE_CMD} -e 's,fail "ncursesw",true,; s,fail "libcrypto",true,' \
        ${WRKSRC}/config.sh
    ${REINPLACE_CMD} -e 's|-liconv|${ICONV_LIB} -lcrypto -lncursesw|;s|-Werror||' \
        ${WRKSRC}/Makefile

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*boat

.include <bsd.port.mk>