summaryrefslogtreecommitdiff
path: root/graphics/cadubi/Makefile
blob: 33fdc6b51c905939a7aea2555285054d004b300f (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
# Created by: Kris Kennaway <kris@FreeBSD.org>
# $FreeBSD$

PORTNAME=	cadubi
PORTVERSION=	1.3
PORTREVISION=	2
CATEGORIES=	graphics editors
MASTER_SITES=	http://langworth.com/pub/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	ASCII drawing utility

BROKEN=		unfetchable

LICENSE=	ART10

RUN_DEPENDS=	p5-Term-ReadKey>=0:${PORTSDIR}/devel/p5-Term-ReadKey

USES=		perl5 shebangfix
SHEBANG_FILES=	cadubi
NO_BUILD=	yes

PLIST_FILES=	bin/${PORTNAME} \
		%%DATADIR%%/help.txt \
		%%DATADIR%%/logo.txt

PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e 's|$$Bin/help|${DATADIR}/help|' \
		${WRKSRC}/cadubi

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
	@${MKDIR} ${STAGEDIR}${DATADIR}
.for d in help.txt logo.txt
	@(cd ${WRKSRC} && ${INSTALL_DATA} ${d} ${STAGEDIR}${DATADIR})
.endfor

	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/extras/ansi_term_codes.txt ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>