Created attachment 201589 [details] change from gmake to cmake to support more ARCHs Since version 1.0.0 more architectures are supported than just amd64 (i386, arm32, arm64), but only when building with CMake (it has some nifty autodetection logic). Result is the SHLIB moves backwards from 1 to 0 though and the debug tools ristretto and shakesum are no longer built by default. CMake insists on installing in ${LOCALBASE}/include/decaf, but that messes with autodetection of libdecaf for several ports (.ie powerdns, powerdns-recursor), so patched it to install in ${LOCALBASE}/include instead. Poudriere buildlogs: i386: https://pkg.cainites.net/data/latest-per-pkg/libdecaf/1.0.0_1/freebsd_12x32-system.log amd64: https://pkg.cainites.net/data/latest-per-pkg/libdecaf/1.0.0_1/freebsd_12x64-system.log
@Ralf: Wouldn't it make sense, then, to patch the CMakeLists.txt so it sets DECAF_SO_VERSION to 1? Then you're not messing with the soversion. shakesum and ristretto are built when CMake option ENABLE_TESTS is on: which it is by default, so nothing really changes there.
@Adriaan: you're right. I've added a patch to change DECAF_SO_VERSION to 1 to my local port. I do notice the tests are built, but with different names. And while some are installed using gmake, they're not installed using cmake. Question is, do we really need 'ristretto' and 'shakesum' binaries to be part of the port ? I don't think so.
Created attachment 203159 [details] change from gmake to cmake to support more ARCHs (+patch shlib version) Added a patch to set shlib to the same number as when compiling using gmake (as suggested)
A commit references this bug: Author: krion Date: Thu Mar 28 09:28:52 UTC 2019 New revision: 497007 URL: https://svnweb.freebsd.org/changeset/ports/497007 Log: Change from gmake to cmake to support more ARCHs. PR: 235376 Submitted by: Ralf van der Enden <tremere at cainites_net> Changes: head/security/libdecaf/Makefile head/security/libdecaf/files/patch-CMakeLists.txt head/security/libdecaf/files/patch-Makefile head/security/libdecaf/files/patch-src_CMakeLists.txt head/security/libdecaf/pkg-plist