notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Port details
ocaml-pgocaml PostgreSQL client library for OCaml with a type-safe query syntax extension
4.4.0+git20250314 databases on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 1.5_1Version of this port present on the latest quarterly branch.
Maintainer: freebsd@dev.thsi.be search for ports maintained by this maintainer
Port Added: 2008-05-12 22:19:48
Last Update: 2026-06-28 22:08:53
Commit Hash: a08d587
License: LGPL20
WWW:
https://github.com/darioteixeira/pgocaml
Description:
This library implements the PostgreSQL wire protocol (version 2, for PostgreSQL 7 and above) in pure OCaml. In addition to a low-level interface, this library provides a PPX syntax extension to type-check and validate SQL expressions at build time.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (57 items)
Collapse this list.
  1. /usr/local/share/licenses/ocaml-pgocaml-4.4.0+git20250314/catalog.mk
  2. /usr/local/share/licenses/ocaml-pgocaml-4.4.0+git20250314/LICENSE
  3. /usr/local/share/licenses/ocaml-pgocaml-4.4.0+git20250314/LGPL20
  4. lib/ocaml/site-lib/pgocaml/META
  5. lib/ocaml/site-lib/pgocaml/PGOCaml.a
  6. lib/ocaml/site-lib/pgocaml/PGOCaml.cma
  7. lib/ocaml/site-lib/pgocaml/PGOCaml.cmxa
  8. lib/ocaml/site-lib/pgocaml/PGOCaml.cmxs
  9. lib/ocaml/site-lib/pgocaml/PGOCaml.ml
  10. lib/ocaml/site-lib/pgocaml/PGOCaml.mli
  11. lib/ocaml/site-lib/pgocaml/PGOCaml_aux.ml
  12. lib/ocaml/site-lib/pgocaml/PGOCaml_aux.mli
  13. lib/ocaml/site-lib/pgocaml/PGOCaml_config.ml
  14. lib/ocaml/site-lib/pgocaml/PGOCaml_generic.ml
  15. lib/ocaml/site-lib/pgocaml/PGOCaml_generic.mli
  16. lib/ocaml/site-lib/pgocaml/dune-package
  17. lib/ocaml/site-lib/pgocaml/opam
  18. lib/ocaml/site-lib/pgocaml/pGOCaml.cmi
  19. lib/ocaml/site-lib/pgocaml/pGOCaml.cmt
  20. lib/ocaml/site-lib/pgocaml/pGOCaml.cmti
  21. lib/ocaml/site-lib/pgocaml/pGOCaml.cmx
  22. lib/ocaml/site-lib/pgocaml/pGOCaml_aux.cmi
  23. lib/ocaml/site-lib/pgocaml/pGOCaml_aux.cmt
  24. lib/ocaml/site-lib/pgocaml/pGOCaml_aux.cmti
  25. lib/ocaml/site-lib/pgocaml/pGOCaml_aux.cmx
  26. lib/ocaml/site-lib/pgocaml/pGOCaml_config.cmi
  27. lib/ocaml/site-lib/pgocaml/pGOCaml_config.cmt
  28. lib/ocaml/site-lib/pgocaml/pGOCaml_config.cmx
  29. lib/ocaml/site-lib/pgocaml/pGOCaml_generic.cmi
  30. lib/ocaml/site-lib/pgocaml/pGOCaml_generic.cmt
  31. lib/ocaml/site-lib/pgocaml/pGOCaml_generic.cmti
  32. lib/ocaml/site-lib/pgocaml/pGOCaml_generic.cmx
  33. lib/ocaml/site-lib/pgocaml/scram.cmi
  34. lib/ocaml/site-lib/pgocaml/scram.cmt
  35. lib/ocaml/site-lib/pgocaml/scram.cmti
  36. lib/ocaml/site-lib/pgocaml/scram.cmx
  37. lib/ocaml/site-lib/pgocaml/scram.ml
  38. lib/ocaml/site-lib/pgocaml/scram.mli
  39. lib/ocaml/site-lib/pgocaml_ppx/META
  40. lib/ocaml/site-lib/pgocaml_ppx/dune-package
  41. lib/ocaml/site-lib/pgocaml_ppx/opam
  42. lib/ocaml/site-lib/pgocaml_ppx/pgocaml_ppx.a
  43. lib/ocaml/site-lib/pgocaml_ppx/pgocaml_ppx.cma
  44. lib/ocaml/site-lib/pgocaml_ppx/pgocaml_ppx.cmi
  45. lib/ocaml/site-lib/pgocaml_ppx/pgocaml_ppx.cmt
  46. lib/ocaml/site-lib/pgocaml_ppx/pgocaml_ppx.cmx
  47. lib/ocaml/site-lib/pgocaml_ppx/pgocaml_ppx.cmxa
  48. lib/ocaml/site-lib/pgocaml_ppx/pgocaml_ppx.cmxs
  49. lib/ocaml/site-lib/pgocaml_ppx/pgocaml_ppx.ml
  50. lib/ocaml/site-lib/pgocaml_ppx/pgocaml_ppx__Ppx_pgsql.cmi
  51. lib/ocaml/site-lib/pgocaml_ppx/pgocaml_ppx__Ppx_pgsql.cmt
  52. lib/ocaml/site-lib/pgocaml_ppx/pgocaml_ppx__Ppx_pgsql.cmx
  53. lib/ocaml/site-lib/pgocaml_ppx/ppx.exe
  54. lib/ocaml/site-lib/pgocaml_ppx/ppx_pgsql.ml
  55. @owner
  56. @group
  57. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ocaml-pgocaml>0:databases/ocaml-pgocaml
To install the port:
cd /usr/ports/databases/ocaml-pgocaml/ && make install clean
To add the package, run one of these commands:
  • pkg install databases/ocaml-pgocaml
  • pkg install ocaml-pgocaml
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: ocaml-pgocaml
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1752327869 SHA256 (darioteixeira-pgocaml-4.4.0+git20250314-572dd886b975872b28f89944246d14e983f7d181_GH0.tar.gz) = bb107a3f53565591a3ad435f73d340c4098340558712af4a0c8af9e61c9639c4 SIZE (darioteixeira-pgocaml-4.4.0+git20250314-572dd886b975872b28f89944246d14e983f7d181_GH0.tar.gz) = 55836

Packages (timestamps in pop-ups are UTC):
ocaml-pgocaml
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest-----n/an/an/a
FreeBSD:13:quarterly-----n/an/an/a
FreeBSD:14:latest4.4.0+git202503144.4.0+git20250314--4.4.0+git20250314---
FreeBSD:14:quarterly--------
FreeBSD:15:latest4.4.0+git202503144.4.0+git20250314n/a-n/an/a--
FreeBSD:15:quarterly--n/a-n/an/a--
FreeBSD:16:latest-4.4.0+git20250314n/a-n/an/a--
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. META : converters/ocaml-base64
  2. META : devel/ocaml-calendar
  3. META : devel/ocaml-camlp-streams
  4. META : textproc/ocaml-csv
  5. META : security/ocaml-digestif
  6. META : converters/ocaml-hex
  7. META : devel/ocaml-re
  8. META : devel/ocaml-parsexp
  9. META : devel/ocaml-ppx_deriving
  10. META : devel/ocaml-ppx_optcomp
  11. META : devel/ocaml-ppx_sexp_conv
  12. META : devel/ocaml-rresult
  13. META : devel/ocaml-sexplib
  14. ocaml-dune>=3.7.1_2 : devel/ocaml-dune
  15. ocamlc : lang/ocaml
Runtime dependencies:
  1. META : converters/ocaml-base64
  2. META : devel/ocaml-calendar
  3. META : devel/ocaml-camlp-streams
  4. META : textproc/ocaml-csv
  5. META : security/ocaml-digestif
  6. META : converters/ocaml-hex
  7. META : devel/ocaml-re
  8. META : devel/ocaml-parsexp
  9. META : devel/ocaml-ppx_deriving
  10. META : devel/ocaml-ppx_sexp_conv
  11. META : devel/ocaml-rresult
  12. META : devel/ocaml-sexplib
  13. ocamlc : lang/ocaml
Patch dependencies:
  1. ocamlc : lang/ocaml
Extract dependencies:
  1. ocamlc : lang/ocaml
There are no ports dependent upon this port

Configuration Options:
===> The following configuration options are available for ocaml-pgocaml-4.4.0+git20250314: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings
Options name:
databases_ocaml-pgocaml
USES:
ocaml:dune
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/darioteixeira/pgocaml/tar.gz/572dd886b975872b28f89944246d14e983f7d181?dummy=/
Collapse this list.

Number of commits found: 17

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
4.4.0+git20250314
28 Jun 2026 22:08:53
commit hash: a08d587db9467a5ec5d39058e76c6ab52e3081eecommit hash: a08d587db9467a5ec5d39058e76c6ab52e3081eecommit hash: a08d587db9467a5ec5d39058e76c6ab52e3081eecommit hash: a08d587db9467a5ec5d39058e76c6ab52e3081ee files touched by this commit
Muhammad Moinur Rahman (bofh) search for other commits by this committer
Author: Benjamin Jacobs
databases/ocaml-pgocaml: New port

This library implements the PostgreSQL wire protocol (version 2, for
PostgreSQL 7 and above) in pure OCaml. In addition to a low-level
interface, this library provides a PPX syntax extension to type-check
and validate SQL expressions at build time.

WWW: https://github.com/darioteixeira/pgocaml
1.5_1
01 Sep 2014 12:53:55
Revision:366869Original commit files touched by this commit
bapt search for other commits by this committer
Remove non staged ports without pending PR from databases
1.5_1
29 Jul 2014 19:11:53
Revision:363374Original commit files touched by this commit
adamw search for other commits by this committer
Convert a bunch of EXTRACT_SUFX=... into USES=tar:...

Approved by:	portmgr (not really, but touches unstaged ports)
1.5_1
04 Jul 2014 23:48:56
Revision:360691Original commit files touched by this commit
bapt search for other commits by this committer
Resetting maintainership on ports that have not been staged and without any
pending PR (related to stage)

With hat:	portmgr
1.5_1
24 Jun 2014 22:29:56
Revision:359151Original commit files touched by this commit
bapt search for other commits by this committer
Properly use the framework

With hat:	portmgr
1.5_1
10 Jun 2014 07:39:02
Revision:357277Original commit files touched by this commit
olgeni search for other commits by this committer
Remove indefinite articles and trailing periods from COMMENT, plus
minor COMMENT typos and surrounding whitespace fixes. Categories D-F.

CR:		D196
Approved by:	portmgr (bapt)
1.5_1
26 May 2014 11:57:56
Revision:355309Original commit files touched by this commit
miwi search for other commits by this committer
- Convert gmake, bzip to USES

Approved by:	portmgr
1.5_1
20 Apr 2014 19:06:04
Revision:351630Original commit files touched by this commit
antoine search for other commits by this committer
Mark broken, fails to build

ocamlfind ocamlc -g -package unix,extlib,pcre,calendar,csv \
  -pp "camlp4o pa_extend.cmo q_MLast.cmo  -parser Camlp4MacroParser -impl" \
  -I +camlp4 -c -impl pa_pgsql.ml4
File "pa_pgsql.ml4", line 127, characters 16-16:
Error: Unbound value _loc

Reported by:	pkg-fallout
With hat:	portmgr
1.5_1
20 Sep 2013 16:13:49
Revision:327717Original commit files touched by this commit
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
databases)
10 Dec 2012 19:11:12
Revision:308630Original commit files touched by this commit Sanity Test Failure Refresh
mm search for other commits by this committer
Update PCRE to 8.32
Introduces the UTF-32 library pcre32
Bump PORTREVISION in dependent ports
1.5
21 Apr 2012 21:30:48
Original commit files touched by this commit
jgh search for other commits by this committer
- Update to 1.5

PR:     ports/167053
Submitted by:   jyyou@cs.nctu.edu.tw
Approved by:    maintainer, tcrimi@gmail.com
1.4
09 Apr 2012 23:51:44
Original commit files touched by this commit
bapt search for other commits by this committer
Mark as deprecated and set expiration to 2012-05-10 for ports that are mark as
broken for more than 6 month
1.4
25 Mar 2011 20:46:26
Original commit files touched by this commit
pav search for other commits by this committer
- Mark BROKEN: does not build

Reported by:    pointyhat
1.4
17 Nov 2010 12:23:11
Original commit files touched by this commit
arved search for other commits by this committer
Update to 1.4

PR:             151156
Submitted by:   maintainer
1.1
02 Mar 2009 00:22:36
Original commit files touched by this commit
pav search for other commits by this committer
- Update to 1.1

Submitted by:   Thomas Crimi <tcrimi@gmail.com> (maintainer)
1.0_1
12 May 2008 23:37:19
Original commit files touched by this commit
stas search for other commits by this committer
- Fix package building
- Bump portrevision.
1.0
12 May 2008 22:18:23
Original commit files touched by this commit
stas search for other commits by this committer
- Add databases/ocaml-pgocaml.

PG'OCaml is a type-safe, simple interface to PostgreSQL from OCaml. It lets you
embed SQL statements directly into OCaml code.

PR:             ports/118800
Submitted by:   Jaap Boender <jaapb at kerguelen.org>

Number of commits found: 17