1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/devel/ocaml-pcre/Makefile
Stanislav Sedov 6a0650cec3 - Update to 5.11.2
- Use new framework
- Honor permissions
2006-12-09 18:08:13 +00:00

45 lines
1.2 KiB
Makefile

# New ports collection makefile for: ocaml-pcre
# Date created: 21 April 2002
# Whom: Henrik Motakef <henrik.motakef@web.de>
#
# $FreeBSD$
#
PORTNAME= pcre
PORTVERSION= 5.11.2
CATEGORIES= devel
MASTER_SITES= http://www.ocaml.info/ocaml_sources/
PKGNAMEPREFIX= ocaml-
DISTNAME= pcre-ocaml-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Perl compatible regular expressions for Objective Caml
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre-utf8
USE_OCAML= yes
USE_OCAML_FINDLIB= yes
USE_OCAML_LDCONFIG= yes
CFLAGS+= -I${LOCALBASE}/include
MAKE_ENV+= LIBDIRS="${LOCALBASE}/lib"
USE_GMAKE= yes
EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME}
# XXX: exists untill it will be committed to bsd.port.mk
COPYTREE_SHARE= ${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
2>&1) && \
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \
${FIND} $$1/ -type d -exec ${CHMOD} 755 {} \; && \
${FIND} $$1/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;' --
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
.endif
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/lang/ocaml/bsd.ocaml.mk"
.include <bsd.port.post.mk>