summaryrefslogtreecommitdiff
path: root/devel/pcre-ocaml/Makefile
blob: 47ed54812761cec8aea603ef1dd4ba4729d584ca (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
# $NetBSD: Makefile,v 1.15 2014/10/09 19:39:24 jaapb Exp $

DISTNAME=		pcre-ocaml-${VERSION}
PKGNAME=	${DISTNAME} # avoid prefixing with ocaml
VERSION=	7.1.1
CATEGORIES=		devel
MASTER_SITES=		http://github.com/mmottl/pcre-ocaml/releases/download/v${VERSION}/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://github.com/mmottl/pcre-ocaml
COMMENT=		Perl compatible regular expressions for OCaml

OCAML_USE_OASIS=	yes

.include "../../mk/bsd.prefs.mk"
.include "../../mk/ocaml.mk"

.if ${OCAML_USE_OPT_COMPILER} != "yes"
BUILD_TARGET=		byte
.endif

EGDIR=			${PREFIX}/share/examples/pcre-ocaml
INSTALLATION_DIRS+=	${EGDIR}

post-install:
	cd ${WRKSRC}/examples && pax -rw -pm . ${DESTDIR}${EGDIR}

.include "../../devel/pcre/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"