Lines 1-12
Link Here
|
1 |
PORTNAME= camlidl |
1 |
PORTNAME= camlidl |
2 |
PORTVERSION= 1.05 |
2 |
PORTVERSION= 1.12 |
3 |
PORTREVISION= 3 |
|
|
4 |
CATEGORIES= lang |
3 |
CATEGORIES= lang |
5 |
MASTER_SITES= http://caml.inria.fr/distrib/bazar-ocaml/ |
|
|
6 |
PKGNAMEPREFIX= ocaml- |
4 |
PKGNAMEPREFIX= ocaml- |
7 |
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ |
|
|
8 |
${PORTNAME}-${PORTVERSION}.doc.html.tar.gz |
9 |
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} |
10 |
|
5 |
|
11 |
MAINTAINER= kennedy.greg@gmail.com |
6 |
MAINTAINER= kennedy.greg@gmail.com |
12 |
COMMENT= Stub code generator for using C/C++ libraries from OCaml |
7 |
COMMENT= Stub code generator for using C/C++ libraries from OCaml |
Lines 16-65
LICENSE= LGPL20 LGPL21
Link Here
|
16 |
LICENSE_COMB= dual |
11 |
LICENSE_COMB= dual |
17 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
18 |
|
13 |
|
|
|
14 |
USES= gmake |
19 |
USE_OCAML= yes |
15 |
USE_OCAML= yes |
|
|
16 |
USE_GITHUB= yes |
17 |
GH_ACCOUNT= xavierleroy |
18 |
GH_TAGNAME= ${PORTNAME}${DISTVERSION:S/.//} |
20 |
|
19 |
|
21 |
MAKE_JOBS_UNSAFE= yes |
20 |
MAKE_JOBS_UNSAFE= yes |
22 |
|
21 |
|
23 |
DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME} |
22 |
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} |
24 |
|
23 |
|
25 |
OPTIONS_DEFINE= DOCS |
24 |
OPTIONS_DEFINE= DOCS |
26 |
|
25 |
DOCS_BUILD_DEPENDS= hevea>=0:textproc/hevea |
27 |
.include <bsd.port.pre.mk> |
|
|
28 |
|
29 |
.if ${OPSYS} == FreeBSD |
30 |
CFLAGS+= -Wno-error=int-conversion |
31 |
.endif |
32 |
|
33 |
post-extract: |
34 |
@${REINPLACE_CMD} -e "s,^\(OCAMLLIB=\).*,\1${STAGEDIR}${PREFIX}/lib/ocaml,g" \ |
35 |
-e "s,^\(BINDIR=\).*,\1${STAGEDIR}${PREFIX}/bin,g" \ |
36 |
-e "s,^CFLAGS=.*,#\&,g" \ |
37 |
-e "s,^\(CPP=\).*,\1/usr/bin/cpp,g" \ |
38 |
${WRKSRC}/config/Makefile.unix |
39 |
|
40 |
@${REINPLACE_CMD} -e \ |
41 |
"/^install/,/^$$/s,\([ \t]*\)cp,\1${INSTALL_SCRIPT},g" \ |
42 |
-e 's,$$(OCAMLC),& -warn-error -a,' \ |
43 |
${WRKSRC}/compiler/Makefile |
44 |
|
45 |
@${REINPLACE_CMD} -e \ |
46 |
"/^install/,/^$$/s,\([ \t]*\)cp,\1${INSTALL_DATA},g" \ |
47 |
${WRKSRC}/lib/Makefile ${WRKSRC}/runtime/Makefile.unix |
48 |
|
26 |
|
|
|
27 |
post-patch: |
49 |
@${LN} -sf ${WRKSRC}/config/Makefile.unix ${WRKSRC}/config/Makefile |
28 |
@${LN} -sf ${WRKSRC}/config/Makefile.unix ${WRKSRC}/config/Makefile |
50 |
|
29 |
|
|
|
30 |
do-build-DOCS-on: |
31 |
cd ${WRKSRC}/doc && ${SETENVI} ${MAKE_ENV} ${MAKE_CMD} \ |
32 |
tools/transf tools/texquote2 ../docs/index.html |
33 |
${RM} ${WRKSRC}/docs/main.haux ${WRKSRC}/docs/main.htoc |
34 |
|
51 |
pre-install: |
35 |
pre-install: |
52 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/ocaml/caml |
36 |
@${MKDIR} ${STAGEDIR}${PREFIX}/${OCAML_LIBDIR}/caml \ |
|
|
37 |
${STAGEDIR}${PREFIX}/${OCAML_LIBDIR}/stublibs |
53 |
|
38 |
|
54 |
post-install-DOCS-on: |
39 |
post-install-DOCS-on: |
55 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
40 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
56 |
${GZCAT} ${_DISTDIR}/${PORTNAME}-${PORTVERSION}.doc.html.tar.gz \ |
41 |
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/htmlman |
57 |
| ${TAR} -C ${STAGEDIR}${DOCSDIR} -xf - |
|
|
58 |
|
42 |
|
59 |
test: |
43 |
do-test: |
60 |
@${ECHO_CMD} "Testing IDL library" |
44 |
@${ECHO_CMD} "Testing IDL library" |
61 |
@${REINPLACE_CMD} -e "s,^\(CCPP=\).*,\1${CXX},g" \ |
45 |
cd ${WRKSRC}/tests && ${SETENVI} ${MAKE_ENV} ${MAKE_CMD} all |
62 |
${WRKSRC}/tests/Makefile |
|
|
63 |
cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE} all |
64 |
|
46 |
|
65 |
.include <bsd.port.post.mk> |
47 |
.include <bsd.port.mk> |