pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libplacebo: Fetch <fast_float/fast_float.h> manually



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Sun Dec 31 15:38:48 2023 +0100
Changeset:	a5354068d0bc3233f86f159bc92154ee46db878d

Modified Files:
	libplacebo/Makefile
	libplacebo/distinfo

Log Message:
libplacebo: Fetch <fast_float/fast_float.h> manually

Fetch <fast_float/fast_float.h> manually because it is expected to be
present (but we just mv it to the proper directory without needing
git).

Also bump USE_CXX_FEATURES to c++17 because it is needed for
`__has_include` (probably we could use just `has_include` instead of
c++17 but I think `has_include` is a subset of c++17 so just requiring
c++17 is probably fine and safer).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a5354068d0bc3233f86f159bc92154ee46db878d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libplacebo/Makefile | 12 +++++++++++-
 libplacebo/distinfo |  3 +++
 2 files changed, 14 insertions(+), 1 deletion(-)

diffs:
diff --git a/libplacebo/Makefile b/libplacebo/Makefile
index e6138065f3..9b2b1171b5 100644
--- a/libplacebo/Makefile
+++ b/libplacebo/Makefile
@@ -5,6 +5,10 @@ PKGNAME=	${DISTNAME:S/-v/-/}
 CATEGORIES=	multimedia
 MASTER_SITES=	https://code.videolan.org/videolan/libplacebo/-/archive/v${PKGVERSION}/
 
+FAST_FLOAT_H=		fast_float.h
+SITES.${FAST_FLOAT_H}=	https://github.com/fastfloat/fast_float/releases/download/v6.0.0/
+DISTFILES=		${DEFAULT_DISTFILES} ${FAST_FLOAT_H}
+
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	https://code.videolan.org/videolan/libplacebo
 COMMENT=	GPU-accelerated image/video processing primitives and shaders
@@ -23,7 +27,13 @@ MESON_ARGS+=	-Dxxhash=enabled
 
 USE_TOOLS+=	pkg-config
 
-USE_LANGUAGES=	c c++
+USE_LANGUAGES=		c c++
+USE_CXX_FEATURES=	c++17
+
+# Populate <fast_float/fast_float.h>
+pre-configure:
+	${MKDIR} ${WRKSRC}/3rdparty/fast_float/include/fast_float
+	${MV} ${WRKDIR}/fast_float.h ${WRKSRC}/3rdparty/fast_float/include/fast_float
 
 .include "../../devel/meson/build.mk"
 .include "../../devel/xxhash/buildlink3.mk"
diff --git a/libplacebo/distinfo b/libplacebo/distinfo
index e46cbf03a5..09c169db0d 100644
--- a/libplacebo/distinfo
+++ b/libplacebo/distinfo
@@ -1,5 +1,8 @@
 $NetBSD$
 
+BLAKE2s (fast_float.h) = dc9754b685f47fc6d6e0cba321b804829b6dda01f30f47c676374172bff12baf
+SHA512 (fast_float.h) = 85d4b85e03bdf42fe2f6d6ba40dfc2e85552c3367272e57469a274e7b9a283fc5953e1554dfe668be45bb08334e60ae91623faa4375fdea63d86a8c3b393e00f
+Size (fast_float.h) = 128947 bytes
 BLAKE2s (libplacebo-v6.338.1.tar.gz) = 8f0736a5de08a9b7c592c1d7fb589c5eefc2a6bef83d2c38de10cccabbf813ab
 SHA512 (libplacebo-v6.338.1.tar.gz) = a538a26552bda77af98264abde0e721c967f0c5eba73c0ffdff3cc7f52a4505ee5b618b99884becf502546261ff6e48881900ce7c782c5495ee3a6728dca9eb1
 Size (libplacebo-v6.338.1.tar.gz) = 840798 bytes


Home | Main Index | Thread Index | Old Index