From 356ffbfa803b7fc0495663ece6fe54e4092946f4 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Thu, 30 May 2024 15:53:56 +0000 Subject: [PATCH] nghttp2: Add Cflags.private in pkgconfig file This defines NGHTTP2_STATICLIB macro for static linking. --- .../002-nghttp2-pkgconfig-add-cflags-private.patch | 7 +++++++ mingw-w64-nghttp2/PKGBUILD | 9 ++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 mingw-w64-nghttp2/002-nghttp2-pkgconfig-add-cflags-private.patch diff --git a/mingw-w64-nghttp2/002-nghttp2-pkgconfig-add-cflags-private.patch b/mingw-w64-nghttp2/002-nghttp2-pkgconfig-add-cflags-private.patch new file mode 100644 index 0000000000..cb66bce24a --- /dev/null +++ b/mingw-w64-nghttp2/002-nghttp2-pkgconfig-add-cflags-private.patch @@ -0,0 +1,7 @@ +--- a/lib/libnghttp2.pc.in ++++ b/lib/libnghttp2.pc.in +@@ -31,3 +31,4 @@ + Version: @VERSION@ + Libs: -L${libdir} -lnghttp2 + Cflags: -I${includedir} ++Cflags.private: -DNGHTTP2_STATICLIB diff --git a/mingw-w64-nghttp2/PKGBUILD b/mingw-w64-nghttp2/PKGBUILD index 306d98bcc5..d39abb22ad 100644 --- a/mingw-w64-nghttp2/PKGBUILD +++ b/mingw-w64-nghttp2/PKGBUILD @@ -4,7 +4,7 @@ _realname=nghttp2 pkgbase=mingw-w64-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") pkgver=1.61.0 -pkgrel=1 +pkgrel=2 pkgdesc="Framing layer of HTTP/2 is implemented as a reusable C library (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') @@ -22,14 +22,17 @@ makedepends=( ) license=('spdx:MIT') source=("https://github.com/nghttp2/nghttp2/releases/download/v${pkgver}/${_realname}-${pkgver}.tar.xz" - "001-fix-pc-prefix.patch") + "001-fix-pc-prefix.patch" + "002-nghttp2-pkgconfig-add-cflags-private.patch") sha256sums=('c0e660175b9dc429f11d25b9507a834fb752eea9135ab420bb7cb7e9dbcc9654' - 'baf901e7d565eaea1133d30b13620b02681ce96ebe56d38e1dea4394299106b6') + 'baf901e7d565eaea1133d30b13620b02681ce96ebe56d38e1dea4394299106b6' + 'd82d0b5b32e26955c99ef70e129b33696fee01ad9a9a4e5d0fb98951fb5d0f22') prepare() { cd $srcdir/${_realname}-${pkgver} patch -Nbp1 -i "${srcdir}/001-fix-pc-prefix.patch" + patch -Nbp1 -i "${srcdir}/002-nghttp2-pkgconfig-add-cflags-private.patch" } build() {