aboutsummaryrefslogtreecommitdiffstats
path: root/www/tickr/Makefile
blob: 8992c1fc76059e336f7184ed04452ba73f02b9cb (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
# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$

PORTNAME=   tickr
PORTVERSION=    0.6.4
PORTREVISION=   2
CATEGORIES= www
MASTER_SITES=   http://www.newsrssticker.com/src/ \
        LOCAL/nivit/

MAINTAINER= nivit@FreeBSD.org
COMMENT=    News RSS Ticker

LICENSE=    GPLv3

GNU_CONFIGURE=  yes

PLIST_SUB=  DESKTOPDIR=${DESKTOPDIR:S,${PREFIX}/,,}

REINPLACE_ARGS= -e 's,%%DATADIR%%,${DATADIR},1' -e 's,%%PREFIX%%,${PREFIX},1' -i.bak

DOS2UNIX_GLOB=  tickr.h
USE_GNOME=  gtk20 libxml2
USES=       desktop-file-utils dos2unix pkgconfig libtool

post-patch:
    ${REINPLACE_CMD} ${WRKSRC}/${PORTNAME}.desktop ${WRKSRC}/src/tickr/tickr.h

post-install:
    @${MKDIR} ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/tickr-url-list ${STAGEDIR}${DATADIR}/tickr-url-list
    ${LOCALBASE}/bin/desktop-file-install \
        --mode=${SHAREMODE} --dir=${STAGEDIR}${DESKTOPDIR} \
        ${WRKSRC}/${PORTNAME}.desktop

.include <bsd.port.mk>