diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2022-07-01 01:35:09 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2022-07-01 06:17:09 +0000 |
commit | b4056c50ababae5927076dcbf42bc9e0870f5674 (patch) | |
tree | 4968264b8763bfd296af29b94dd88f9c28cf03f9 /net-im/libsignal-node/Makefile | |
parent | 865e71116bd5a4c500fcfc7f251dfac1b53c342f (diff) | |
download | ports-b4056c50ababae5927076dcbf42bc9e0870f5674.tar.gz ports-b4056c50ababae5927076dcbf42bc9e0870f5674.zip |
net-im/libsignal-node: fix build on powerpc64*
Properly set CARGO_ARCH. Since nodejs sets ppc64 target_arch for both powerpc64* architectures,
create separate patches for both.
Also modify do-install target to account for powerpc64*.
Diffstat (limited to 'net-im/libsignal-node/Makefile')
-rw-r--r-- | net-im/libsignal-node/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net-im/libsignal-node/Makefile b/net-im/libsignal-node/Makefile index 3e0acd1e7368..7b6b23727b70 100644 --- a/net-im/libsignal-node/Makefile +++ b/net-im/libsignal-node/Makefile @@ -259,6 +259,12 @@ USE_LDCONFIG= yes PLIST_FILES= lib/libsignal_node.so +.include <bsd.port.options.mk> + +.if ${ARCH:Mpowerpc64*} +EXTRA_PATCHES= ${FILESDIR}/${ARCH}-patch-node_binding.gyp +.endif + post-patch: ${REINPLACE_CMD} "s#python3#${PYTHON_CMD}#" \ ${WRKSRC}/node/binding.gyp @@ -271,7 +277,7 @@ do-build: ${SETENV} ${MAKE_ENV} yarn tsc do-install: - ${INSTALL_DATA} ${WRKSRC}/node/build/Release/obj.target/libsignal_client_freebsd_x64.node/geni/rust/x86_64-unknown-freebsd/release/libsignal_node.so \ + ${INSTALL_DATA} ${WRKSRC}/node/build/Release/obj.target/libsignal_client_freebsd_${ARCH:S/amd64/x64/:C/powerpc64.*/ppc64/}.node/geni/rust/${ARCH:S/amd64/x86_64/}-unknown-freebsd/release/libsignal_node.so \ ${STAGEDIR}${PREFIX}/lib/ create-caches-tarball: |