aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ocaml-curses/Makefile
blob: 861759614c7c7842cb3cb8e4c9eb6dfc9faa9ad2 (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
PORTNAME=	curses
PORTVERSION=	1.0.11
CATEGORIES=	devel
PKGNAMEPREFIX=	ocaml-

MAINTAINER=	freebsd@dev.thsi.be
COMMENT=	(N)curses binding for OCaml
WWW=		https://github.com/mbacarella/curses

LICENSE=	LGPL21+ # with a special exception to clause 6
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		ncurses ocaml:dune,ldconfig pkgconfig
USE_GITHUB=	yes
GH_ACCOUNT=	mbacarella

DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
PORTDOCS=	CHANGES.md README.md

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

.if ${ARCH} == powerpc
USE_BINUTILS=	yes
.endif

post-patch:
	@${REINPLACE_CMD} \
		-e "s/(name ${PORTNAME})/&\n(version ${PORTVERSION})/" \
		${WRKSRC}/dune-project

post-install:
	@${STRIP_CMD} \
		${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/curses/dllcurses_stubs.so \
		${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/curses/curses.cmxs

.include <bsd.port.mk>