pkgsrc/devel/pcre-ocaml/Makefile

35 lines
952 B
Makefile

# $NetBSD: Makefile,v 1.33 2018/07/19 15:15:26 jaapb Exp $
VERSION= 7.3.4
DISTNAME= pcre-${VERSION}
PKGNAME= pcre-ocaml-${VERSION}
PKGREVISION= 3
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=mmottl/}
MAINTAINER= jaapb@NetBSD.org
HOMEPAGE= https://github.com/mmottl/pcre-ocaml
COMMENT= Perl compatible regular expressions for OCaml
LICENSE= gnu-lgpl-v2.1
WRKSRC= ${WRKDIR}/pcre-ocaml-${VERSION}
OCAML_USE_JBUILDER= yes
OPAM_INSTALL_FILES= pcre
USE_TOOLS= pax
.include "../../mk/bsd.prefs.mk"
.include "../../mk/ocaml.mk"
EGDIR= ${PREFIX}/share/examples/pcre-ocaml
INSTALLATION_DIRS+= ${EGDIR}
OCAML_FINDLIB_DIRS= pcre
post-install:
cd ${WRKSRC}/examples && pax -rw -pm . ${DESTDIR}${EGDIR}
.include "../../devel/ocaml-base/buildlink3.mk"
.include "../../devel/ocaml-configurator/buildlink3.mk"
.include "../../devel/ocaml-stdio/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"