|
Lines 1-55
Link Here
|
| 1 |
# New ports collection makefile for: ocaml-sexplib |
1 |
# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru> |
| 2 |
# Date created: 2006-08-01 |
|
|
| 3 |
# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru> |
| 4 |
# |
| 5 |
# $MBSDlabs$ |
| 6 |
# $FreeBSD: ports/devel/ocaml-sexplib/Makefile,v 1.8 2011/10/24 03:32:56 stas Exp $ |
2 |
# $FreeBSD: ports/devel/ocaml-sexplib/Makefile,v 1.8 2011/10/24 03:32:56 stas Exp $ |
| 7 |
# |
|
|
| 8 |
|
3 |
|
| 9 |
PORTNAME= sexplib |
4 |
PORTNAME= sexplib |
| 10 |
PORTVERSION= 3.0.0 |
5 |
PORTVERSION= 108.07.00 |
| 11 |
PORTREVISION= 1 |
|
|
| 12 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
| 13 |
MASTER_SITES= http://www.janestcapital.com/ocaml/ |
7 |
MASTER_SITES= https://ocaml.janestreet.com/ocaml-core/%SUBDIR%/ |
|
|
8 |
MASTER_SITE_SUBDIR= ${PORTVERSION}/individual |
| 14 |
PKGNAMEPREFIX= ocaml- |
9 |
PKGNAMEPREFIX= ocaml- |
| 15 |
DISTNAME= ${PORTNAME}310-${PORTVERSION} |
|
|
| 16 |
|
10 |
|
| 17 |
MAINTAINER= ports@FreeBSD.org |
11 |
MAINTAINER= ports@FreeBSD.org |
| 18 |
COMMENT= An OCaml library for working with S-expressions |
12 |
COMMENT= An OCaml library for working with S-expressions |
| 19 |
|
13 |
|
| 20 |
BUILD_DEPENDS= ${SA_DIR}/type-conv/pa_type_conv.cmi:${PORTSDIR}/devel/ocaml-typeconv |
14 |
LICENSE= BSD |
| 21 |
RUN_DEPENDS= ${SA_DIR}/type-conv/pa_type_conv.cmi:${PORTSDIR}/devel/ocaml-typeconv |
15 |
|
|
|
16 |
BUILD_DEPENDS= ocaml-type-conv>0:${PORTSDIR}/devel/ocaml-typeconv |
| 17 |
RUN_DEPENDS= ocaml-type-conv>0:${PORTSDIR}/devel/ocaml-typeconv |
| 18 |
|
| 19 |
OPTIONS_DEFINE= DOCS |
| 22 |
|
20 |
|
| 23 |
USE_GMAKE= yes |
|
|
| 24 |
USE_OCAML= yes |
21 |
USE_OCAML= yes |
| 25 |
USE_OCAML_FINDLIB=yes |
22 |
USE_OCAML_FINDLIB=yes |
| 26 |
MAKE_JOBS_UNSAFE= yes |
23 |
USE_OCAMLFIND_PLIST=yes |
| 27 |
|
24 |
|
| 28 |
DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME} |
25 |
HAS_CONFIGURE= yes |
| 29 |
SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR} |
26 |
CONFIGURE_ARGS= --prefix ${PREFIX} --disable-docs |
|
|
27 |
MAKE_JOBS_UNSAFE=yes |
| 30 |
|
28 |
|
| 31 |
.include <bsd.port.pre.mk> |
29 |
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} |
| 32 |
|
30 |
|
| 33 |
post-extract: |
31 |
PORTDOCS= * |
| 34 |
# For nonstandard prefixes |
32 |
|
| 35 |
.if !exists(${OCAMLFIND_DESTDIR}) |
33 |
.include <bsd.port.options.mk> |
| 36 |
${MKDIR} ${OCAMLFIND_DESTDIR} |
34 |
|
| 37 |
.endif |
35 |
.if ${PORT_OPTIONS:MDOCS} |
| 38 |
.if !exists(${OCAMLFIND_LDCONF}) |
36 |
PLIST_DIRSTRY+= ${OCAML_DOCSDIR:S,^${PREFIX}/,,} |
| 39 |
${TOUCH} ${OCAMLFIND_LDCONF} |
|
|
| 40 |
.endif |
37 |
.endif |
| 41 |
@${REINPLACE_CMD} -E -e "/lib_test/d" ${WRKSRC}/Makefile |
|
|
| 42 |
|
38 |
|
| 43 |
post-install: |
39 |
post-install: |
|
|
40 |
.if ${PORT_OPTIONS:MDOCS} |
| 44 |
@${MKDIR} ${DOCSDIR} |
41 |
@${MKDIR} ${DOCSDIR} |
| 45 |
${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR} |
42 |
.for i in CHANGES.txt README.md |
| 46 |
|
43 |
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR}) |
| 47 |
@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \ |
44 |
.endfor |
| 48 |
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} |
45 |
.endif |
| 49 |
@${FIND} ${DOCSDIR} -type f | \ |
|
|
| 50 |
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} |
| 51 |
@${ECHO_CMD} "@dirrm share/doc/ocaml/${PORTNAME}" >> ${TMPPLIST} |
| 52 |
@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null ||true"\ |
| 53 |
>> ${TMPPLIST} |
| 54 |
|
46 |
|
| 55 |
.include <bsd.port.post.mk> |
47 |
.include <bsd.port.mk> |