summaryrefslogtreecommitdiffstats
path: root/www/rsstail/Makefile
blob: f7c7e00633c58f2b094ccaada047a1a36a81b714 (plain)
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
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$

PORTNAME=	rsstail
PORTVERSION=	2.1
CATEGORIES=	www
MASTER_SITES=	https://www.vanheusden.com/rsstail/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple RSS monitor

LICENSE=	GPLv2

LIB_DEPENDS=	libmrss.so:${PORTSDIR}/textproc/libmrss

MAKE_ENV=	bindir="${PREFIX}/bin" mandir="${MANPREFIX}/man/man1"

CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib ${ICONV_LIB}
USES=		iconv tar:tgz

PLIST_FILES=	bin/${PORTNAME} \
		man/man1/${PORTNAME}.1.gz

post-patch:
	@${REINPLACE_CMD} -e \
		's|^DEBUG=|#DEBUG=| ; \
		 s|^LDFLAGS=-liconv_hook |LDFLAGS+=| ; \
		 s|^CFLAGS=-O3 |CFLAGS+=| ; \
		 s|\([[:space:]]\)\($$(..ndir)\)|\1$$(DESTDIR)\2|g ; \
		 /bindir/s|install |$${BSD_INSTALL_PROGRAM} | ; \
		 /mandir/s|install -m 644 |$${BSD_INSTALL_MAN} |' \
		${WRKSRC}/Makefile

.include <bsd.port.mk>
OpenPOWER on IntegriCloud