freebsd-ports/devel/ocaml-extlib/Makefile

42 lines
731 B
Makefile

# Created by: mukai
# $FreeBSD$
PORTNAME= extlib
PORTVERSION= 1.5.4
CATEGORIES= devel
MASTER_SITES= GOOGLE_CODE
PROJECTHOST= ${PKGNAMEPREFIX}${PORTNAME}
PKGNAMEPREFIX= ocaml-
MAINTAINER= ports@FreeBSD.org
COMMENT= Complete - yet small - standard library for OCaml
LICENSE= LGPL21
OPTIONS_DEFINE= DOCS
USE_OCAML= yes
USE_OCAML_FINDLIB=yes
USE_OCAMLFIND_PLIST=yes
ALL_TARGET= all opt
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
PORTDOCS= *
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
ALL_TARGET+= doc
PLIST_DIRSTRY= ${OCAML_DOCSDIR:S,^${PREFIX}/,,}
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${DOCSDIR})
.endif
.include <bsd.port.mk>