|
Lines 2-59
Link Here
|
| 2 |
# $FreeBSD: ports/devel/ocaml-pomap/Makefile,v 1.9 2012/10/26 14:57:50 bapt Exp $ |
2 |
# $FreeBSD: ports/devel/ocaml-pomap/Makefile,v 1.9 2012/10/26 14:57:50 bapt Exp $ |
| 3 |
|
3 |
|
| 4 |
PORTNAME= pomap |
4 |
PORTNAME= pomap |
| 5 |
PORTVERSION= 2.9.8 |
5 |
PORTVERSION= 3.0.1 |
| 6 |
PORTREVISION= 1 |
|
|
| 7 |
PORTREVISION= 1 |
| 8 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
| 9 |
MASTER_SITES= http://www.ocaml.info/ocaml_sources/ |
7 |
MASTER_SITES= http://cdn.bitbucket.org/mmottl/pomap/downloads/ |
| 10 |
PKGNAMEPREFIX= ocaml- |
8 |
PKGNAMEPREFIX= ocaml- |
| 11 |
|
9 |
|
| 12 |
MAINTAINER= ports@FreeBSD.org |
10 |
MAINTAINER= ports@FreeBSD.org |
| 13 |
COMMENT= OCaml library to maintain a list of partially ordered elements |
11 |
COMMENT= OCaml library to maintain a list of partially ordered elements |
| 14 |
|
12 |
|
| 15 |
DEPRECATED= No more public distfiles |
13 |
LICENSE= LGPL21 |
| 16 |
EXPIRATION_DATE= 2012-11-26 |
14 |
|
|
|
15 |
OPTIONS_DEFINE= DOCS EXAMPLES |
| 17 |
|
16 |
|
| 18 |
USE_BZIP2= yes |
|
|
| 19 |
USE_GMAKE= yes |
| 20 |
USE_OCAML= yes |
17 |
USE_OCAML= yes |
| 21 |
USE_OCAML_FINDLIB=yes |
18 |
USE_OCAML_FINDLIB=yes |
|
|
19 |
USE_OCAMLFIND_PLIST=yes |
| 22 |
USE_OCAML_WASH= yes |
20 |
USE_OCAML_WASH= yes |
| 23 |
|
21 |
|
| 24 |
DOCS= README |
22 |
HAS_CONFIGURE= yes |
| 25 |
DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME} |
23 |
CONFIGURE_ARGS= --prefix ${PREFIX} --disable-docs --disable-examples |
| 26 |
EXAMPLESDIR= ${PREFIX}/share/examples/ocaml/${PORTNAME} |
24 |
MAKE_JOBS_UNSAFE=yes |
| 27 |
|
25 |
|
| 28 |
.include <bsd.port.pre.mk> |
26 |
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} |
| 29 |
|
27 |
EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME} |
| 30 |
post-extract: |
28 |
|
| 31 |
# For nonstandard prefixes |
29 |
PORTDOCS= * |
| 32 |
.if !exists(${OCAMLFIND_DESTDIR}) |
30 |
PORTEXAMPLES= * |
| 33 |
${MKDIR} ${OCAMLFIND_DESTDIR} |
31 |
|
|
|
32 |
.include <bsd.port.options.mk> |
| 33 |
|
| 34 |
.if ${PORT_OPTIONS:MDOCS} |
| 35 |
PLIST_DIRSTRY+= ${OCAML_DOCSDIR:S,^${PREFIX}/,,} |
| 36 |
.endif |
| 37 |
|
| 38 |
.if ${PORT_OPTIONS:MEXAMPLES} |
| 39 |
PLIST_DIRSTRY+= ${OCAML_EXAMPLESDIR:S,^${PREFIX}/,,} |
| 34 |
.endif |
40 |
.endif |
| 35 |
|
41 |
|
| 36 |
post-install: |
42 |
post-install: |
| 37 |
@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \ |
43 |
.if ${PORT_OPTIONS:MDOCS} |
| 38 |
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} |
|
|
| 39 |
.if !defined(NOPORTDOCS) |
| 40 |
@${MKDIR} ${DOCSDIR} |
44 |
@${MKDIR} ${DOCSDIR} |
| 41 |
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/ |
45 |
.for i in AUTHORS.txt CHANGES.txt README.md |
|
|
46 |
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR}) |
| 47 |
.endfor |
| 48 |
.endif |
| 49 |
.if ${PORT_OPTIONS:MEXAMPLES} |
| 42 |
@${MKDIR} ${EXAMPLESDIR} |
50 |
@${MKDIR} ${EXAMPLESDIR} |
| 43 |
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/) |
51 |
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) |
| 44 |
@${FIND} ${EXAMPLESDIR}/ ! -type d | \ |
|
|
| 45 |
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST} |
| 46 |
@${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \ |
| 47 |
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST} |
| 48 |
@${FIND} ${DOCSDIR}/ ! -type d | \ |
| 49 |
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST} |
| 50 |
@${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \ |
| 51 |
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST} |
| 52 |
# XXX: temporary workaround for non-standard PREFIX |
| 53 |
@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null || true" \ |
| 54 |
>> ${TMPPLIST} |
| 55 |
@${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null||true" \ |
| 56 |
>> ${TMPPLIST} |
| 57 |
.endif |
52 |
.endif |
| 58 |
|
53 |
|
| 59 |
.include <bsd.port.post.mk> |
54 |
.include <bsd.port.mk> |