|
Lines 7-46
Link Here
|
| 7 |
# |
7 |
# |
| 8 |
|
8 |
|
| 9 |
PORTNAME= aifad |
9 |
PORTNAME= aifad |
| 10 |
PORTVERSION= 1.0.27 |
10 |
PORTVERSION= 2.0.2 |
| 11 |
PORTREVISION= 3 |
|
|
| 12 |
CATEGORIES= devel |
11 |
CATEGORIES= devel |
| 13 |
MASTER_SITES= http://www.ocaml.info/ocaml_sources/ |
12 |
MASTER_SITES= http://cdn.bitbucket.org/mmottl/aifad/downloads/ |
| 14 |
|
13 |
|
| 15 |
MAINTAINER= ports@FreeBSD.org |
14 |
MAINTAINER= ports@FreeBSD.org |
| 16 |
COMMENT= Machine learning system |
15 |
COMMENT= Machine learning system |
| 17 |
|
16 |
|
| 18 |
BUILD_DEPENDS= ${SA_DIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre \ |
17 |
LICENSE= GPLv3 |
| 19 |
${SA_DIR}/res/res.a:${PORTSDIR}/devel/ocaml-res \ |
18 |
|
| 20 |
${SA_DIR}/cfg/cfg.a:${PORTSDIR}/devel/ocaml-cfg |
19 |
BUILD_DEPENDS= menhir:${PORTSDIR}/devel/menhir \ |
| 21 |
LIB_DEPENDS= pcre.1:${PORTSDIR}/devel/pcre |
20 |
ocaml-cfg>0:${PORTSDIR}/devel/ocaml-cfg \ |
|
|
21 |
ocaml-pcre>0:${PORTSDIR}/devel/ocaml-pcre \ |
| 22 |
ocaml-res>0:${PORTSDIR}/devel/ocaml-res |
| 23 |
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre |
| 24 |
|
| 25 |
OPTIONS_DEFINE= DOCS EXAMPLES |
| 22 |
|
26 |
|
| 23 |
USE_BZIP2= yes |
|
|
| 24 |
USE_GMAKE= yes |
| 25 |
USE_OCAML= yes |
27 |
USE_OCAML= yes |
| 26 |
NO_OCAML_RUNDEPENDS=yes |
28 |
NO_OCAML_RUNDEPENDS=yes |
| 27 |
|
29 |
|
| 28 |
ALL_TARGET= opt |
30 |
HAS_CONFIGURE= yes |
| 29 |
SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR} |
31 |
CONFIGURE_ARGS= --prefix ${PREFIX} |
| 30 |
|
32 |
|
| 31 |
DOCS= README.txt TODO |
33 |
PORTDOCS= * |
|
|
34 |
PORTEXAMPLES= * |
| 35 |
PLIST_FILES= bin/${PORTNAME} |
| 32 |
|
36 |
|
| 33 |
.include <bsd.port.pre.mk> |
37 |
.include <bsd.port.options.mk> |
| 34 |
|
|
|
| 35 |
do-install: |
| 36 |
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin/ |
| 37 |
|
38 |
|
| 38 |
post-install: |
39 |
post-install: |
| 39 |
.if !defined(NOPORTDOCS) |
40 |
@${STRIP_CMD} ${PREFIX}/bin/${PORTNAME} |
|
|
41 |
.if ${PORT_OPTIONS:MDOCS} |
| 40 |
@${MKDIR} ${DOCSDIR} |
42 |
@${MKDIR} ${DOCSDIR} |
|
|
43 |
.for i in AUTHORS.txt CHANGES.txt README.md TODO.md |
| 44 |
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR}) |
| 45 |
.endfor |
| 46 |
.endif |
| 47 |
.if ${PORT_OPTIONS:MEXAMPLES} |
| 41 |
@${MKDIR} ${EXAMPLESDIR} |
48 |
@${MKDIR} ${EXAMPLESDIR} |
| 42 |
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/ |
49 |
(cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${EXAMPLESDIR}) |
| 43 |
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}/ |
|
|
| 44 |
.endif |
50 |
.endif |
| 45 |
|
51 |
|
| 46 |
.include <bsd.port.post.mk> |
52 |
.include <bsd.port.mk> |