Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Volunteers wanted to help translate FreshPorts
Searches without login should now work. You must get asked to click a button.
Port details on branch 2026Q4
cmocka Unit testing framework for C with support for mock objects
2.0.2 sysutils Σ=7 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.2Version 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: docbook-xml, png, automake, p5-Net-SSLeay, libffi
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:
  • For RUN/BUILD depends:
    • cmocka>0:sysutils/cmocka
  • For LIB depends:
    • libcmocka.so: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
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest2.0.22.0.21.1.51.1.82.0.2
FreeBSD:14:quarterly2.0.22.0.2-1.1.72.0.2
FreeBSD:15:latest2.0.22.0.2n/a1.1.8n/a
FreeBSD:15:quarterly2.0.22.0.2n/a-n/a
FreeBSD:16:latest2.0.22.0.2n/a-n/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. devel/croaring
  5. net/samba416
  6. net/samba419
  7. net/samba420
Expand this list (29 items / 22 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list.
  2. net/samba422
  3. net/samba423
  4. net/samba424
  5. net/samba425
  6. security/openvpn
  7. security/openvpn-devel
  8. sysutils/flashrom
  9. x11/stalonetray
  10. 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.
for Test #
  1. archivers/unarr
  2. databases/ldb25
  3. databases/ldb28
  4. databases/ldb29
  5. devel/nss_wrapper
  6. devel/pam_wrapper
  7. devel/priv_wrapper
Expand this list (23 items / 16 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list.
  2. devel/resolv_wrapper
  3. devel/socket_wrapper
  4. devel/uid_wrapper
  5. multimedia/librist
  6. net/libyang2
  7. net/libyang3
  8. net/samba422
  9. net/samba423
  10. net/samba424
  11. net/samba425
  12. security/libssh
  13. x11/way-displays
  14. x11/wob
  15. Collapse this list.

Deleted ports which required this port:

Expand this list of 3 deleted ports
  1. databases/ldb22*
  2. net/libyang*
  3. net/samba413*
  4. 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 2026Q4 for this port