freebsd-ports/lang/ocaml-examples/Makefile
Johan van Selst d8e1b9974d - Update ocaml-examples to match lang/ocaml version
- Respect NOPORTEXAMPLES: Don't install anything if it is set
- Adopt port

Feature safe:	yes
2011-12-11 17:02:24 +00:00

29 lines
726 B
Makefile

# New ports collection makefile for: ocaml-examples
# Date created: 2006-07-27
# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
#
# $FreeBSD$
#
PORTNAME= ocaml
PORTVERSION= 3.12
CATEGORIES= lang
MASTER_SITES= http://cristal.inria.fr/caml_examples/
PKGNAMESUFFIX= -examples
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
MAINTAINER= johans@FreeBSD.org
COMMENT= Example programs for the Objective Caml
NO_BUILD= yes
do-install:
.ifndef NOPORTEXAMPLES
@${MKDIR} ${EXAMPLESDIR}
@${TAR} -cf- -C ${WRKSRC} --exclude Imakefile . | \
${TAR} -xf- -C ${EXAMPLESDIR}
@${FIND} ${EXAMPLESDIR} -type f -exec ${CHMOD} ${SHAREMODE} {} \;
@${FIND} ${EXAMPLESDIR} -exec ${CHOWN} ${SHAREOWN} {} \;
.endif
.include <bsd.port.mk>