summaryrefslogtreecommitdiff
path: root/misc/cxxmatrix/Makefile
blob: 5ea41746516913da72bde5a3beef79255d68725c (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

PORTNAME=	cxxmatrix
DISTVERSION=	g20201128
CATEGORIES=	misc

MAINTAINER=	eduardo@FreeBSD.org
COMMENT=	C++ Matrix: The Matrix Reloaded in Terminals

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE.md

BUILD_DEPENDS=	gawk:lang/gawk

USES=		compiler:c++17-lang gmake
MAKEFILE=	GNUmakefile
USE_GITHUB=	yes
GH_ACCOUNT=	akinomyoga
GH_TAGNAME=	93e505c

PORTDOCS=	README.md
PLIST_FILES=	bin/cxxmatrix \
		share/man/man1/cxxmatrix.1.gz

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} \
		-e 's|CXXFLAGS :=|CXXFLAGS +=|g' \
		-e 's|-Ofast||g' \
	${WRKSRC}/GNUmakefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/cxxmatrix ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/cxxmatrix.1 ${STAGEDIR}${PREFIX}/share/man/man1

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

.include <bsd.port.mk>