pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CRCpp: import of 1.2.2.0
Module Name: pkgsrc-wip
Committed By: Bartosz Kuzma <bartosz.kuzma%gmail.com@localhost>
Pushed By: bartosz.kuzma
Date: Tue Jul 21 05:13:46 2026 +0200
Changeset: c39e7a4c7a4c15ad9900d54e59febcffaed06433
Modified Files:
Makefile
Added Files:
CRCpp/DESCR
CRCpp/Makefile
CRCpp/PLIST
CRCpp/buildlink3.mk
CRCpp/distinfo
CRCpp/patches/patch-CMakeLists.txt
CRCpp/patches/patch-cmake_CRCppConfig.cmake.in
Log Message:
CRCpp: import of 1.2.2.0
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c39e7a4c7a4c15ad9900d54e59febcffaed06433
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
CRCpp/DESCR | 16 ++++++++++
CRCpp/Makefile | 25 ++++++++++++++++
CRCpp/PLIST | 5 ++++
CRCpp/buildlink3.mk | 13 ++++++++
CRCpp/distinfo | 7 +++++
CRCpp/patches/patch-CMakeLists.txt | 41 ++++++++++++++++++++++++++
CRCpp/patches/patch-cmake_CRCppConfig.cmake.in | 11 +++++++
Makefile | 1 +
8 files changed, 119 insertions(+)
diffs:
diff --git a/CRCpp/DESCR b/CRCpp/DESCR
new file mode 100644
index 0000000000..e317e3d66e
--- /dev/null
+++ b/CRCpp/DESCR
@@ -0,0 +1,16 @@
+Tired of writing CRC code over and over again? Don't want to include a dozen
+boost header files just for a little bit of functionality? CRC++ is a portable
+and extremely lightweight alternative that is incredibly simple, fast and clean.
+
+CRC++ supports bit-by-bit and byte-by-byte calculation of full and multipart
+CRCs. The algorithms used are highly optimized and can even be configured to
+be branchless (as always, be sure to profile your code to choose the most
+efficient option). CRC++ is a great option for embedded C++ projects with a
+need for efficiency.
+
+CRC++ consists of a single header file which can be included in any
+existing C++ application. No libraries, no boost, no mess, no fuss.
+
+Any CRC width is supported - even CRCs larger than 64 bits, provided there
+is an integer type large enough to contain it. Trying to compute a 57-bit CRC?
+Got you covered.
diff --git a/CRCpp/Makefile b/CRCpp/Makefile
new file mode 100644
index 0000000000..e62483865c
--- /dev/null
+++ b/CRCpp/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+DISTNAME= release-1.2.2.0
+PKGNAME= ${GITHUB_PROJECT}-${DISTNAME:S/release-//}
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_GITHUB:=d-bahr/}
+GITHUB_PROJECT= CRCpp
+GITHUB_TAG= refs/tags/${DISTNAME}
+DIST_SUBDIR= ${GITHUB_PROJECT}
+
+MAINTAINER= bartosz.kuzma%gmail.com@localhost
+HOMEPAGE= https://github.com/d-bahr/CRCpp/
+COMMENT= Easy to use and fast C++ CRC library
+LICENSE= modified-bsd
+
+.include "../../devel/cmake/build.mk"
+
+WRKSRC= ${WRKDIR}/${PKGBASE}-${DISTNAME}
+USE_LANGUAGES= c c++
+USE_CXX_FEATURES= c++11
+USE_TOOLS= pkg-config
+
+PKGCONFIG_OVERRIDE+= cmake/CRCpp.pc.in
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/CRCpp/PLIST b/CRCpp/PLIST
new file mode 100644
index 0000000000..0b6ac17b41
--- /dev/null
+++ b/CRCpp/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+include/CRC.h
+lib/cmake/crcpp/CRCppConfig.cmake
+lib/cmake/crcpp/CRCppConfigVersion.cmake
+lib/pkgconfig/CRCpp.pc
diff --git a/CRCpp/buildlink3.mk b/CRCpp/buildlink3.mk
new file mode 100644
index 0000000000..5c8a1c6323
--- /dev/null
+++ b/CRCpp/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+BUILDLINK_TREE+= CRCpp
+
+.if !defined(CRCPP_BUILDLINK3_MK)
+CRCPP_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.CRCpp+= CRCpp>=1.2.1.0
+BUILDLINK_PKGSRCDIR.CRCpp?= ../../wip/CRCpp
+
+.endif # CRCPP_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -CRCpp
diff --git a/CRCpp/distinfo b/CRCpp/distinfo
new file mode 100644
index 0000000000..0f8554df22
--- /dev/null
+++ b/CRCpp/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (CRCpp/release-1.2.2.0.tar.gz) = 4008bc47b8d17102a387aa0a2296a6d7fc8a9a86a83f68000f09f9e9cd512d02
+SHA512 (CRCpp/release-1.2.2.0.tar.gz) = 0e1338eb1f0f2a05d119ffae6071be06c24c39f20dcc846ea2c6248367ce600797af23b1f31dcd0f9e389efadc769bcc7129d8b741c30782571500c731c75451
+Size (CRCpp/release-1.2.2.0.tar.gz) = 53191 bytes
+SHA1 (patch-CMakeLists.txt) = 67de643d1a4c91b471f544f3c47eff1b4a4cc668
+SHA1 (patch-cmake_CRCppConfig.cmake.in) = ef413711142998caf8a9bedd003c3b7dd8570151
diff --git a/CRCpp/patches/patch-CMakeLists.txt b/CRCpp/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..dfbcf4fa74
--- /dev/null
+++ b/CRCpp/patches/patch-CMakeLists.txt
@@ -0,0 +1,41 @@
+$NetBSD$
+
+Fix installation dirs
+
+--- CMakeLists.txt.orig 2026-06-18 08:04:34.000000000 +0000
++++ CMakeLists.txt
+@@ -1,6 +1,6 @@
+ cmake_minimum_required (VERSION 3.5)
+
+-project(CRCpp VERSION 1.2.1.0)
++project(CRCpp VERSION 1.2.2.0)
+
+ include(CMakePackageConfigHelpers)
+ include(GNUInstallDirs)
+@@ -32,21 +32,22 @@ configure_file(
+ configure_package_config_file(
+ cmake/CRCppConfig.cmake.in
+ "${CMAKE_CURRENT_BINARY_DIR}/CRCppConfig.cmake"
+- INSTALL_DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/crcpp")
++ INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/crcpp"
++ PATH_VARS CMAKE_INSTALL_INCLUDEDIR)
+ write_basic_package_version_file(CRCppConfigVersion.cmake
+ VERSION ${PACKAGE_VERSION}
+ COMPATIBILITY SameMajorVersion
+ ARCH_INDEPENDENT)
+
+ # Installation
+-install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/inc/ DESTINATION ${CMAKE_INSTALL_INCLUDE_DIR})
++install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/inc/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ install(FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/CRCpp.pc
+- DESTINATION ${CMAKE_INSTALL_DATADIR}/pkgconfig)
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
+ install(FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/CRCppConfig.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/CRCppConfigVersion.cmake
+- DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake/crcpp)
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/crcpp)
+
+ # Documentation
+ if (BUILD_DOC)
diff --git a/CRCpp/patches/patch-cmake_CRCppConfig.cmake.in b/CRCpp/patches/patch-cmake_CRCppConfig.cmake.in
new file mode 100644
index 0000000000..ef7d76e86b
--- /dev/null
+++ b/CRCpp/patches/patch-cmake_CRCppConfig.cmake.in
@@ -0,0 +1,11 @@
+$NetBSD$
+
+Fix installation dirs
+
+--- cmake/CRCppConfig.cmake.in.orig 2026-07-19 18:00:18.421438179 +0000
++++ cmake/CRCppConfig.cmake.in
+@@ -1,3 +1,3 @@
+ @PACKAGE_INIT@
+
+-set_and_check(CRCpp_INCLUDE_DIR "@PACKAGE_CRCpp_INCLUDE_INSTALL_DIR@")
++set_and_check(CRCpp_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
diff --git a/Makefile b/Makefile
index 698da74e3d..fe15cffee8 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@ SUBDIR+= 8cc-git
SUBDIR+= ARC
SUBDIR+= Aseprite
SUBDIR+= Bear
+SUBDIR+= CRCpp
SUBDIR+= Chinput
SUBDIR+= CodeWhale
SUBDIR+= Coin
Home |
Main Index |
Thread Index |
Old Index