summaryrefslogtreecommitdiff
path: root/www/newsbeuter/Makefile
blob: 4a667e79046e01b7417a10798a38cefb73944ec0 (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: arved
# $FreeBSD$

PORTNAME=	newsbeuter
PORTVERSION=	2.8
PORTREVISION=	3
CATEGORIES=	www
MASTER_SITES=	http://newsbeuter.org/downloads/

MAINTAINER=	arved@FreeBSD.org
COMMENT=	An RSS feed reader for the text console

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	stfl:${PORTSDIR}/devel/stfl \
		curl:${PORTSDIR}/ftp/curl \
		libjson.so:${PORTSDIR}/devel/json-c

OPTIONS_DEFINE= PODCAST
OPTIONS_DEFAULT=PODCAST
OPTIONS_SUB=	yes
PODCAST_DESC=	Podcast client (podbeuter)

USES=		compiler:c++11-lang gettext gmake iconv:translit ncurses perl5 pkgconfig
USE_CXXSTD=	gnu++11
USE_PERL5=	build
USE_SQLITE=	yes
USE_GNOME=	libxml2

post-patch:
	${REINPLACE_CMD} -e "s,share/man,man,; \
			/^prefix/s|=.*|=${PREFIX}|; /^CXX=/d; \
			s|/usr/local|${LOCALBASE}|; s|ruby1.8|ruby18|" \
				${WRKSRC}/Makefile
	${REINPLACE_CMD} -e 's,<ncursesw/ncurses.h>,<ncurses.h>,' \
		${WRKSRC}/src/controller.cpp ${WRKSRC}/src/view.cpp
	${REINPLACE_CMD} -e 's,fail "ncursesw",true,; s,fail "libcrypto",true,' \
		${WRKSRC}/config.sh
	${REINPLACE_CMD} -e 's|-liconv|${ICONV_LIB} -lcrypto -lncursesw|' \
		${WRKSRC}/Makefile

.include <bsd.port.mk>