aboutsummaryrefslogtreecommitdiffstats
path: root/www/edbrowse/Makefile
blob: e8383a974d42edd19f93e7df86f811e0248aa82e (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
# $FreeBSD$

PORTNAME=   edbrowse
PORTVERSION=    3.5.1
CATEGORIES= www editors
MASTER_SITES=   http://the-brannons.com/edbrowse/ \
        http://rithmomachia.org/edbrowse/

MAINTAINER= david.vionnet@vmailbox.org
COMMENT=    Line-oriented Web browser and text editor

LICENSE=    GPLv2

BUILD_DEPENDS=  ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
LIB_DEPENDS=    libpcre.so:${PORTSDIR}/devel/pcre \
        libmozjs-24.so:${PORTSDIR}/lang/spidermonkey24 \
        libcurl.so:${PORTSDIR}/ftp/curl

USE_OPENSSL=    yes
USES=       compiler:c11 readline zip

OPTIONS_DEFINE= DOCS

WRKBASE=    ${WRKDIR}/${PORTNAME}-${PORTVERSION}
WRKSRC=     ${WRKBASE}/src

MAKEFILE=   makefile.bsd

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/edbrowse ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKBASE}/doc/man-edbrowse-debian.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/edbrowse.1

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_MAN} ${WRKBASE}/CHANGES ${STAGEDIR}${DOCSDIR}
    ${INSTALL_MAN} ${WRKBASE}/COPYING ${STAGEDIR}${DOCSDIR}
    ${INSTALL_MAN} ${WRKBASE}/README ${STAGEDIR}${DOCSDIR}
    (cd ${WRKBASE}/doc && \
        ${FIND} . \( -name setup.ebrc -or -name "man-edbrowse*" \) -delete  && \
        ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>