|
Lines 1-39
Link Here
|
| 1 |
# New ports collection makefile for: ocaml-type-conv |
1 |
# Created by: Stanislav Sedov <stas@FreeBSD.org> |
| 2 |
# Date created: 2008-04-08 |
|
|
| 3 |
# Whom: Stanislav Sedov <stas@FreeBSD.org> |
| 4 |
# |
| 5 |
# $FreeBSD: ports/devel/ocaml-typeconv/Makefile,v 1.4 2012/09/21 06:52:44 bapt Exp $ |
2 |
# $FreeBSD: ports/devel/ocaml-typeconv/Makefile,v 1.4 2012/09/21 06:52:44 bapt Exp $ |
| 6 |
# |
|
|
| 7 |
|
3 |
|
| 8 |
PORTNAME= type-conv |
4 |
PORTNAME= type-conv |
| 9 |
PORTVERSION= 1.0.0 |
5 |
PORTVERSION= 108.07.00 |
| 10 |
PORTREVISION= 1 |
|
|
| 11 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
| 12 |
MASTER_SITES= http://janestcapital.com/ocaml/ |
7 |
MASTER_SITES= https://ocaml.janestreet.com/ocaml-core/%SUBDIR%/ |
|
|
8 |
MASTER_SITE_SUBDIR= ${PORTVERSION}/individual |
| 9 |
DISTNAME= ${PORTNAME:S,-,_,}-${PORTVERSION} |
| 13 |
PKGNAMEPREFIX= ocaml- |
10 |
PKGNAMEPREFIX= ocaml- |
| 14 |
|
11 |
|
| 15 |
MAINTAINER= ports@FreeBSD.org |
12 |
MAINTAINER= ports@FreeBSD.org |
| 16 |
COMMENT= Type conversion routines for OCaml |
13 |
COMMENT= Type conversion routines for OCaml |
| 17 |
|
14 |
|
| 18 |
DEPRECATED= No more public distfiles |
15 |
LICENSE= BSD |
| 19 |
EXPIRATION_DATE= 2012-10-20 |
|
|
| 20 |
|
16 |
|
| 21 |
USE_GMAKE= yes |
|
|
| 22 |
USE_OCAML= yes |
17 |
USE_OCAML= yes |
| 23 |
USE_OCAML_FINDLIB=yes |
18 |
USE_OCAML_FINDLIB=yes |
|
|
19 |
USE_OCAMLFIND_PLIST=yes |
| 20 |
OCAML_PKGDIRS= ${PORTNAME:S,-,_,} |
| 24 |
|
21 |
|
| 25 |
SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR} |
22 |
HAS_CONFIGURE= yes |
|
|
23 |
CONFIGURE_ARGS= --prefix ${PREFIX} --disable-docs |
| 24 |
MAKE_JOBS_UNSAFE=yes |
| 26 |
|
25 |
|
| 27 |
.include <bsd.port.pre.mk> |
26 |
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME:S,-,_,} |
| 28 |
|
27 |
|
| 29 |
post-extract: |
28 |
PORTDOCS= * |
| 30 |
# For nonstandard prefixes |
29 |
|
| 31 |
.if !exists(${OCAMLFIND_DESTDIR}) |
30 |
.include <bsd.port.options.mk> |
| 32 |
${MKDIR} ${OCAMLFIND_DESTDIR} |
31 |
|
|
|
32 |
.if ${PORT_OPTIONS:MDOCS} |
| 33 |
PLIST_DIRSTRY= ${OCAML_DOCSDIR:S,^${PREFIX}/,,} |
| 33 |
.endif |
34 |
.endif |
| 34 |
|
35 |
|
| 35 |
post-install: |
36 |
post-install: |
| 36 |
@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \ |
37 |
.if ${PORT_OPTIONS:MDOCS} |
| 37 |
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} |
38 |
@${MKDIR} ${DOCSDIR} |
|
|
39 |
.for i in CHANGES.txt README.md |
| 40 |
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR}) |
| 41 |
.endfor |
| 42 |
.endif |
| 38 |
|
43 |
|
| 39 |
.include <bsd.port.post.mk> |
44 |
.include <bsd.port.mk> |