freebsd-ports/devel/ocaml-pcre/Makefile
Mathieu Arnold 90a49f0472 Cleanup USE_GITHUB usage.
With hat:	portmgr
Sponsored by:	Absolight
2015-05-30 21:25:06 +00:00

39 lines
926 B
Makefile

# Created by: Henrik Motakef <henrik.motakef@web.de>
# $FreeBSD$
PORTNAME= pcre
PORTVERSION= 7.1.5
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= ocaml-
MAINTAINER= johans@FreeBSD.org
COMMENT= Perl compatible regular expressions for Objective Caml
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
USE_GITHUB= yes
GH_ACCOUNT= mmottl
GH_PROJECT= ${PORTNAME}-ocaml
USE_OCAML= yes
USE_OCAML_FINDLIB= yes
USE_OCAML_LDCONFIG= yes
EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/pcre-ocaml
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e 's|$$prefix"/"share|${STAGEDIR}${PREFIX}/share|' \
-e '/datarootdir/s|$$pkg_name|&-ocaml|' \
${WRKSRC}/setup.ml
@${REINPLACE_CMD} -e 's| safe_string,||' ${WRKSRC}/_tags
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>