blob: 7958bba5f3ffc0f12e82a1d86d274c3e46eccaf9 (
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
|
# Created by: Henrik Motakef <henrik.motakef@web.de>
# $FreeBSD$
PORTNAME= pcre
PORTVERSION= 7.2.3
DISTVERSIONPREFIX= v
CATEGORIES= devel
PKGNAMEPREFIX= ocaml-
MAINTAINER= ports@FreeBSD.org
COMMENT= Perl compatible regular expressions for Objective Caml
LIB_DEPENDS= libpcre.so: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-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
|