1cc02bea84
Now builds itself using `devel/ocaml-dune', so drop most of the old USE_OCAML_* knobs. This also makes the build parallel-safe. While here, convert to static pkg-plist and install some examples.
38 lines
827 B
Makefile
38 lines
827 B
Makefile
# Created by: Jaap Boender <jaapb@kerguelen.org>
|
|
|
|
PORTNAME= ssl
|
|
PORTVERSION= 0.5.9
|
|
CATEGORIES= security devel
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= OpenSSL bindings for OCaml
|
|
|
|
LICENSE= LGPL21+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= dune:devel/ocaml-dune
|
|
|
|
USES= ssl
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= savonet
|
|
GH_PROJECT= ocaml-ssl
|
|
USE_OCAML= yes
|
|
|
|
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
|
|
EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
do-build:
|
|
cd ${BUILD_WRKSRC} && dune build -p ${PORTNAME} -j ${MAKE_JOBS_NUMBER}
|
|
|
|
do-install:
|
|
cd ${INSTALL_WRKSRC} && dune install --destdir=${STAGEDIR} \
|
|
--libdir=${OCAML_SITELIBDIR}
|
|
|
|
do-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|