aboutsummaryrefslogtreecommitdiffstats
path: root/www/bkmrkconv/Makefile
blob: 89ed8e415d37d9478906e0f6172b203059506ce0 (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
# Created by: Will Andrews <andrews@technologist.com>
# $FreeBSD$

PORTNAME=   bkmrkconv
PORTVERSION=    1.12
CATEGORIES= www
MASTER_SITES=   http://www.bleb.org/software/bkmrkconv/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Netscape bookmarks.html converter

LICENSE=    ART10

USES=       perl5
NO_BUILD=   yes
NO_ARCH=    yes

OPTIONS_DEFINE= DOCS

post-patch:
    @${FIND} ${WRKSRC} -type f -name '*.pl' | ${XARGS} ${REINPLACE_CMD} -i '' -e \
        's|/usr/bin/perl|${PERL}|g ; \
         s|%%PREFIX%%|${PREFIX}|g'

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/bkmrkconv.pl \
        ${STAGEDIR}${PREFIX}/bin/bkmrkconv
    @${MKDIR} ${STAGEDIR}${DATADIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/utils/* ${STAGEDIR}${DATADIR}
    @${MKDIR} ${STAGEDIR}${DATADIR}/src
    ${INSTALL_DATA} ${WRKSRC}/src.example/* ${STAGEDIR}${DATADIR}/src

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>