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