openbsd-ports/devel/ocaml-pcre/Makefile
sthen af4daa9c19 import ocaml-pcre; ok jasper@
This OCaml-library interfaces the PCRE (Perl-compatible regular expression)
library which is written in C. it can be used for matching regular expressions
which are written in the PERL style.
 
It is reentrant - and thus thread safe. This is not the case with the "Str"
module of OCaml, which builds on the GNU "regex"-library. Using reentrant
libraries also means more convenience for programmers. They do not have to
reason about states in which the library might be in.
 
The high-level functions for replacement and substitution, all implemented
in OCaml, are much faster than the ones of the "Str"-module. In fact, when
compiled to native code, they even seem to be significantly faster than
those of PERL.
2011-09-15 15:50:23 +00:00

42 lines
915 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2011/09/15 15:50:23 sthen Exp $
COMMENT= Objective Caml perl-compatible regexp library
CATEGORIES= devel textproc
DISTNAME= release-6.2.2
PKGNAME= ocaml-pcre-6.2.2
WRKDIST= ${WRKDIR}/pcre-ocaml-${DISTNAME}
DIST_SUBDIR= ocaml-pcre
HOMEPAGE= http://ocaml.info/home/ocaml_sources.html
# GPLv2+
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
MODULES= lang/ocaml
MASTER_SITES= http://hg.ocaml.info/release/pcre-ocaml/archive/
RUN_DEPENDS= sysutils/findlib
BUILD_DEPENDS= ${RUN_DEPENDS}
LIB_DEPENDS= devel/pcre
WANTLIB= pcre
NO_REGRESS= Yes
USE_GMAKE= Yes
MAKE_ENV+= OCAMLFIND_INSTFLAGS="-ldconf ignore"
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/ocaml/site-lib/pcre
.include <bsd.port.mk>
.if ${MODOCAML_NATIVE:L:Mno}
WRKSRC= ${WRKDIST}/lib
ALL_TARGET= byte-code-library
INSTALL_TARGET= libinstall-byte-code
.endif