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 photosAll times are UTC
Ukraine
Port details on branch 2025Q4
cmocka Unit testing framework for C with support for mock objects
2.0.2 sysutils on this many watch lists=8 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 2.0.0Version of this port present on the latest quarterly branch.
Maintainer: diizzy@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2016-12-01 22:24:36
Last Update: 2026-01-17 18:31:59
Commit Hash: ca1ed8c
People watching this port, also watch:: autoconf, p5-Error, libinotify, libunwind, glib
License: APACHE20
WWW:
https://cmocka.org/
Description:
cmocka is a fork for Google's cmockery unit testing framework to fix bugs and support it in future.
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 (18 items)
Collapse this list.
  1. @ldconfig
  2. /usr/local/share/licenses/cmocka-2.0.2/catalog.mk
  3. /usr/local/share/licenses/cmocka-2.0.2/LICENSE
  4. /usr/local/share/licenses/cmocka-2.0.2/APACHE20
  5. include/cmocka.h
  6. include/cmocka_pbc.h
  7. include/cmocka_version.h
  8. lib/cmake/cmocka/cmocka-config-version.cmake
  9. lib/cmake/cmocka/cmocka-config.cmake
  10. lib/cmake/cmocka/cmocka-targets-release.cmake
  11. lib/cmake/cmocka/cmocka-targets.cmake
  12. lib/libcmocka.so
  13. lib/libcmocka.so.0
  14. lib/libcmocka.so.1.0.2
  15. libdata/pkgconfig/cmocka.pc
  16. @owner
  17. @group
  18. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • cmocka>0:sysutils/cmocka
To install the port:
cd /usr/ports/sysutils/cmocka/ && make install clean
To add the package, run one of these commands:
  • pkg install sysutils/cmocka
  • pkg install cmocka
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: cmocka
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1768440101 SHA256 (cmocka-2.0.2.tar.xz) = 39f92f366bdf3f1a02af4da75b4a5c52df6c9f7e736c7d65de13283f9f0ef416 SIZE (cmocka-2.0.2.tar.xz) = 121144

Packages (timestamps in pop-ups are UTC):
cmocka
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.0.22.0.21.1.51.1.82.0.2n/an/an/a
FreeBSD:13:quarterly2.0.12.0.11.1.51.1.72.0.1n/an/an/a
FreeBSD:14:latest2.0.22.0.21.1.51.1.82.0.21.1.5-1.1.5
FreeBSD:14:quarterly2.0.12.0.1-1.1.72.0.11.1.51.1.51.1.5
FreeBSD:15:latest2.0.22.0.2n/a1.1.8n/an/a1.1.51.1.5
FreeBSD:15:quarterly2.0.12.0.1n/a-n/an/a--
FreeBSD:16:latest2.0.22.0.2n/a-n/an/a--
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. cmake : devel/cmake-core
  2. ninja : devel/ninja
This port is required by:
for Build
  1. databases/ldb25
  2. databases/ldb28
  3. databases/ldb29
  4. net/samba416
  5. net/samba419
  6. net/samba420
  7. net/samba422
Expand this list (25 items / 18 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. net/samba423
  3. security/openvpn
  4. security/openvpn-devel
  5. sysutils/flashrom
  6. Collapse this list.

Deleted ports which required this port:

Expand this list of 14 deleted ports
  1. databases/ldb12*
  2. databases/ldb13*
  3. databases/ldb14*
  4. databases/ldb15*
  5. databases/ldb20*
  6. databases/ldb21*
  7. databases/ldb22*
  8. net/samba4-devel*
  9. net/samba410*
  10. net/samba411*
  11. net/samba412*
  12. net/samba413*
  13. net/samba47*
  14. net/samba48*
  15. Collapse this list of deleted ports.
for Libraries
  1. net/freeipa-client

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. cad/xtrkcad*
  2. Collapse this list of deleted ports.
for Run

Deleted ports which required this port:

Expand this list of 9 deleted ports
  1. databases/ldb12*
  2. databases/ldb13*
  3. databases/ldb14*
  4. databases/ldb15*
  5. databases/ldb20*
  6. databases/ldb21*
  7. net/samba4-devel*
  8. net/samba47*
  9. net/samba48*
  10. Collapse this list of deleted ports.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

Configuration Options:
No options to configure
Options name:
sysutils_cmocka
USES:
cmake:testing pathfix tar:xz
pkg-message:
For install:
For more information on using cmocka, see https://api.cmocka.org
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://cmocka.org/files/2.0/
Collapse this list.

There are no commits on branch 2025Q4 for this port