Software Alternatives, Accelerators & Startups

CMake VS pkgsrc

Compare CMake VS pkgsrc and see what are their differences

CMake logo CMake

CMake is an open-source, cross-platform family of tools designed to build, test and package software.

pkgsrc logo pkgsrc

pkgsrc is a framework for building over 17,000 open source software packages.
  • CMake Landing page
    Landing page //
    2022-09-21

We recommend LibHunt CMake for discovery and comparisons of trending CMake projects.

  • pkgsrc Landing page
    Landing page //
    2023-06-30

CMake features and specs

  • Cross-platform support
    CMake is designed to support multiple operating systems including Windows, macOS, and Linux. This allows developers to write platform-independent CMake scripts.
  • Build tool agnostic
    CMake can generate build files for a variety of build systems including Makefiles, Ninja, and Visual Studio solutions. This means developers are not tied to a specific build tool.
  • Large community and extensive documentation
    CMake has a large user base and an extensive amount of documentation and tutorials available which can be helpful for new and experienced users alike.
  • Integrated testing support
    CMake includes support for testing frameworks such as CTest, which allows for automated testing of code during the build process.
  • Modular and scalable
    CMake is highly modular, enabling users to create reusable and maintainable code by organizing CMake scripts into libraries and modules.

Possible disadvantages of CMake

  • Steep learning curve
    CMake's complexity and its extensive range of features can be difficult for beginners to grasp, leading to a steep learning curve.
  • Verbose syntax
    CMake scripts can often become verbose and difficult to read, especially for large projects. This can make maintenance and debugging challenging.
  • Inconsistent module quality
    The quality and support of different CMake modules can vary, sometimes leading to issues with compatibility or functionality.
  • Performance overhead
    CMake may introduce some performance overhead during the configuration process, especially for very large projects.
  • Complexity in advanced features
    Some of the more advanced features of CMake, such as custom commands and complex dependency management, can be quite difficult to implement correctly.

pkgsrc features and specs

  • Cross-Platform Support
    pkgsrc is designed to be a portable package management system and can be used on a variety of Unix-like operating systems, including NetBSD, Solaris, Linux, and macOS. This cross-platform capability makes it a versatile tool for developers working in diverse environments.
  • Consistency Across Systems
    Using pkgsrc allows for a consistent package management experience regardless of the underlying operating system, reducing the learning curve and maintenance overhead for administrators managing multiple systems.
  • Comprehensive Package Collection
    pkgsrc offers a wide range of software packages, providing a robust collection that can meet diverse user needs from scientific libraries to web applications.
  • Quarterly Releases
    With quarterly releases, pkgsrc provides a balanced approach between stability and keeping software up to date, offering users new features regularly while maintaining reliability.
  • Flexible Build Options
    pkgsrc supports a flexible build system, allowing users to customize package builds with specific options or dependencies, tailored to their specific needs or system requirements.

Possible disadvantages of pkgsrc

  • Smaller Community
    Compared to other popular package management systems like apt (Debian/Ubuntu) or yum (RedHat/CentOS), pkgsrc has a relatively smaller community, which might affect the availability of support and community-driven improvements.
  • Potentially Older Software
    While pkgsrc maintains stable quarterly releases, it may occasionally lag behind other systems in terms of offering the very latest versions of certain software, which might not be ideal for users needing the newest features.
  • Manual Configuration
    Setting up pkgsrc might require manual interventions and configurations, which could pose a hurdle for users unfamiliar with its setup process or those who prefer more automated solutions.
  • Dependency Management
    Although pkgsrc is quite capable in dependency handling, some users may find its dependency resolution to be less automatic or seamless compared to other systems which offer more integrated solutions.
  • Performance Overhead
    Because it is designed to be cross-platform, there can be some performance overhead associated with using pkgsrc compared to native package managers that are optimized for specific operating systems.

Analysis of CMake

Overall verdict

  • CMake is generally considered a good tool for managing the build process of software projects, especially those with a complex codebase that spans multiple platforms.

Why this product is good

  • Flexibility
    It offers great flexibility in terms of defining build processes, enabling advanced configuration and optimization techniques to be used.
  • Integration
    It integrates well with many popular IDEs and other tools, providing a smoother development experience.
  • Wide adoption
    CMake is widely used in the industry, which leads to robust community support and regular updates.
  • Cross platform support
    CMake is designed to support multiple platforms, which makes it highly valuable for projects that need to be compiled and run on different operating systems.

Recommended for

  • projects requiring cross-platform compatibility
  • developers looking for a powerful build configuration tool
  • complex software projects with numerous dependencies
  • teams that value strong community and industry support

CMake videos

CMake for Dummies

More videos:

  • Review - CppCon 2017: Mathieu Ropert โ€œUsing Modern CMake Patterns to Enforce a Good Modular Designโ€
  • Review - Hunter, a CMake driven package manager for C/C++ projects - Daniel Friedrich - Lightning Talks

pkgsrc videos

pkgsrc on ChromeOS

More videos:

  • Review - Using pkgsrc for multi-platform deployments in heterogeneous environments, G Clifford Williams

Category Popularity

0-100% (relative to CMake and pkgsrc)
Front End Package Manager
Developer Tools
0 0%
100% 100
JS Build Tools
100 100%
0% 0
Package Manager
0 0%
100% 100

User comments

Share your experience with using CMake and pkgsrc. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, CMake should be more popular than pkgsrc. It has been mentiond 55 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

CMake mentions (55)

  • How I deployed my first project for my devops portfolio: Project Architecture
    I used CMAKE as my compiling tool followed by make. - Source: dev.to / 12 months ago
  • DeadLock: Research Results & Tech Stack
    All this C++ project can't be ran as simple C++ code, so I will be building this whole package using CMake. It will streamline building this project onto other computers. - Source: dev.to / about 1 year ago
  • Master This Feature of DevEco Studio to Efficiently Implement ArkTS and C++ Glue Code
    For knowledge in this aspect, you can refer to the relevant documents of the CMake build tool: https://cmake.org/. - Source: dev.to / over 1 year ago
  • Creating a Native Desktop GUI Using C++ with GTK
    I used CMAKE to define the build configurations. I find it very convenient that CMAKE generates the Makefile on Linux and can also create a Visual Studio project on Windows. - Source: dev.to / over 1 year ago
  • Top 7 C++ Tools to explore in 2024 if it's not already the case.
    CMake stands for "Cross-platform Make" and is an open-source, platform-independent build system. It's designed to build, test, and package software projects written in C and C++, but it can also be used for other languages. Here's an overview of CMake and its features:. - Source: dev.to / over 2 years ago
View more

pkgsrc mentions (11)

  • Debian isn't waiting for 2038 to blow up, switches to 64-bit time for everything
    > Most open source software packages are also compiled for BSD variants, they switched to 64 bit time_t a long time ago and reported back upstream any problems. * NetBSD in 2012: https://www.netbsd.org/releases/formal-6/NetBSD-6.0.html * OpenBSD in 2014: http://www.openbsd.org/55.html For packaging, NetBSD uses their (multi-platform) Pkgsrc, which has 29,000 packages, which probably covers a large swath of... - Source: Hacker News / 11 months ago
  • Our Audit of Homebrew
    > https://pkgsrc.smartos.org/install-on-macos/ Note that Pkgsrc is a NetBSD-derived project. * https://pkgsrc.org The Joyent folks leveraged it to allow their customers, who were perhaps not as familiar with Solaris/SmartOS, a larger pool of packages. Pkgsrc was running on Solaris before Joyent, Joyent built on top of it. - Source: Hacker News / almost 2 years ago
  • Show HN: Brioche โ€“ A new Nix-like package manager
    Https://pkgsrc.org/ from netbsd runs on many systems. - Source: Hacker News / about 2 years ago
  • Installing packages without an internet connection?
    It seems according to pkgsrc.org that pkgin might follow the PKG_PATH environment variable. You're supposed to set PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r|cut -f '1 2' -d.)/All/", and according to uname(1), -p gives the processor architecture and -r gives the operating system [kernel] release. Source: over 3 years ago
  • pkgsrc.se is no more :(
    It seems like pkgsrc.org hasnโ€™t got the news yet. Source: over 3 years ago
View more

What are some alternatives?

When comparing CMake and pkgsrc, you can also consider the following products

GNU Make - GNU Make is a tool which controls the generation of executables and other non-source files of a program from the program's source files.

Conda - Binary package manager with support for environments.

SCons - SCons is an Open Source software construction toolโ€”that is, a next-generation build tool.

Homebrew - The missing package manager for macOS

SBT - SBT is a build tool for Scala, like Ant or Maven but with hieroglyphics.

Yay - Yay is an AUR helper written in go, based on the design of yaourt, apacman and pacaur.