summaryrefslogtreecommitdiff
path: root/www/edbrowse/Makefile
blob: 06e905aa595adf747b5926b47de92c5e8d269ffc (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
36
37
38
39
40
41
42
43

PORTNAME=	edbrowse
DISTVERSIONPREFIX=	v
DISTVERSION=	3.7.7
CATEGORIES=	www editors

MAINTAINER=	alfix86@gmail.com
COMMENT=	Line-oriented web browser and text editor

LICENSE=	GPLv2

LIB_DEPENDS=	libpcre.so:devel/pcre \
		libcurl.so:ftp/curl \
		libtidy5.so:www/tidy-html5 \
		libduktape.so:lang/duktape-lib

USES=		cmake:insource compiler:c11 perl5 readline
USE_PERL5=	build
USE_GITHUB=	yes

GH_ACCOUNT=	CMB

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

PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

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

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC}/doc && \
		${FIND} . \( -name article.wikipedia -or -name "man-edbrowse*" \) -delete  && \
		${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>