summaryrefslogtreecommitdiff
path: root/databases/ocaml-sqlite3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/ocaml-sqlite3/Makefile')
-rw-r--r--databases/ocaml-sqlite3/Makefile39
1 files changed, 14 insertions, 25 deletions
diff --git a/databases/ocaml-sqlite3/Makefile b/databases/ocaml-sqlite3/Makefile
index c9eb0e19baf7..9ecf9a118310 100644
--- a/databases/ocaml-sqlite3/Makefile
+++ b/databases/ocaml-sqlite3/Makefile
@@ -1,46 +1,35 @@
PORTNAME= sqlite3
-PORTVERSION= 4.0.5
-DISTVERSIONPREFIX= v
-PORTREVISION= 2
+DISTVERSION= 5.2.0
CATEGORIES= databases
PKGNAMEPREFIX= ocaml-
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= freebsd@dev.thsi.be
COMMENT= OCaml bindings to sqlite3 library
WWW= https://mmottl.github.io/sqlite3-ocaml/
LICENSE= OCSQLT3
LICENSE_NAME= OCaml-SQLite3 unique permissive license
-LICENSE_FILE= ${WRKSRC}/COPYING.txt
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BUILD_DEPENDS= ocamlbuild:devel/ocaml-ocamlbuild
-USES= compiler:features gmake pkgconfig sqlite
-USE_OCAML= yes
-USE_OCAML_FINDLIB= yes
-USE_OCAML_LDCONFIG= yes
-USE_OCAMLFIND_PLIST= yes
-HAS_CONFIGURE= yes
-MAKE_JOBS_UNSAFE= yes
-CONFIGURE_ARGS= --destdir "${STAGEDIR}" \
- --prefix "${PREFIX}"
-
+USES= ocaml:dune pkgconfig sqlite
+USE_GITHUB= yes
GH_ACCOUNT= mmottl
GH_PROJECT= ${PORTNAME}-ocaml
-USE_GITHUB= yes
-post-patch:
- @${REINPLACE_CMD} -e 's,"install" :: findlib_name,"install" :: "-destdir ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /var/null" :: findlib_name,' \
- ${WRKSRC}/setup.ml
+USE_OCAML= yes
+USE_OCAML_LDCONFIG= yes
-do-configure:
- (cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS})
+DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
+PORTDOCS= CHANGES.md LICENSE.md README.md
-do-build:
- (cd ${WRKSRC} && ocaml setup.ml -build)
+OPTIONS_DEFINE= DOCS
-do-install:
- (cd ${WRKSRC} && ocaml setup.ml -install)
+post-install:
+ @${STRIP_CMD} \
+ ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/dllsqlite3_stubs.so \
+ ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/sqlite3.cmxs
.include <bsd.port.mk>