nghttp2: Add Cflags.private in pkgconfig file

This defines NGHTTP2_STATICLIB macro for static linking.
This commit is contained in:
Biswapriyo Nath
2024-05-30 15:53:56 +00:00
parent f4f3125473
commit 356ffbfa80
2 changed files with 13 additions and 3 deletions

View File

@@ -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

View File

@@ -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() {