aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/dailystrips/Makefile
blob: f784480903a505be689045792b5b65bdbb5a2f9c (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
44
45
46
47
48
# Created by: Pete Fritchman <petef@databits.net>
# $FreeBSD$

PORTNAME=   dailystrips
PORTVERSION=    1.1.0
CATEGORIES= deskutils www
MASTER_SITES=   SF

MAINTAINER= ports@FreeBSD.org
COMMENT=    Utility to download or view your favorite online comic strips daily

LICENSE=    GPLv2

RUN_DEPENDS=    p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
        p5-TimeDate>=0:${PORTSDIR}/devel/p5-TimeDate

NO_BUILD=   yes
USE_PERL5=  yes

PORTDOCS=   *
PLIST_FILES=    bin/getstrips.pl \
        bin/makepage.pl \
        bin/shared_functions.pl \
        share/dailystrips/strips.def
PLIST_DIRS= share/dailystrips

post-patch-script:
    @${REINPLACE_CMD} 's|^#!/usr/bin/perl|#!${PERL}|; \
        s!strips.def!${DATADIR}/strips.def!; \
        s!robotman!!; \
        s!shared_functions.pl!${PREFIX}/bin/shared_functions.pl!' \
        ${WRKSRC}/getstrips.pl ${WRKSRC}/makepage.pl \
        ${WRKSRC}/strips.def

.include <bsd.port.options.mk>

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/*.pl ${PREFIX}/bin
    @${MKDIR} ${DATADIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/strips.def ${DATADIR}
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
.for file in README README.DEFS README.LOCAL archive.html
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>