Hi,

Straightforward but there's an incompatable API change. dnsdist (the
sole consumer afaik) handles that correctly.

OK?
        -Otto

Index: Makefile
===================================================================
RCS file: /home/cvs/ports/net/quiche/Makefile,v
diff -u -p -r1.4 Makefile
--- Makefile    8 May 2024 05:30:14 -0000       1.4
+++ Makefile    28 Jun 2024 10:42:10 -0000
@@ -3,10 +3,11 @@ COMMENT       =               library implementing QUIC and
 # ring-v0.17 does not support this arch
 NOT_FOR_ARCHS =                sparc64
 
-V =                    0.21.0
-PKG_NAME =             quiche-${V}
+VERSION =              0.21.0
+PKG_NAME =             quiche-${VERSION}
 CATEGORIES =           net
 HOMEPAGE =             https://github.com/cloudflare/quiche
+REVISION =             0
 
 MAINTAINER =           Otto Moerbeek <o...@drijf.net>
 
@@ -15,7 +16,7 @@ PERMIT_PACKAGE =      Yes
 
 GH_ACCOUNT =           cloudflare
 GH_PROJECT =           quiche
-GH_TAGNAME =           ${V}
+GH_TAGNAME =           ${VERSION}
 EXTRACT_SUFX =         .tar.gz
 
 MODCARGO_BUILD_ARGS += --no-default-features --features ffi --package quiche
@@ -31,6 +32,13 @@ MODCARGO_INSTALL =   No
 do-install:
        ${INSTALL_DATA} ${WRKSRC}/quiche/include/quiche.h ${PREFIX}/include
        ${INSTALL_DATA} ${WRKBUILD}/target/release/libquiche.a  ${PREFIX}/lib
+
+
+SUBST_VARS +=  VERSION
+
+post-install:
+       ${SUBST_CMD} -c -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
+           ${FILESDIR}/quiche.pc.in ${PREFIX}/lib/pkgconfig/quiche.pc
 
 .include "crates.inc"
 
Index: files/quiche.pc.in
===================================================================
RCS file: files/quiche.pc.in
diff -N files/quiche.pc.in
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ files/quiche.pc.in  28 Jun 2024 10:23:24 -0000
@@ -0,0 +1,11 @@
+prefix=${TRUEPREFIX}
+exec_prefix=${prefix}
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+Name: quiche
+Description: quiche library
+URL: https://github.com/cloudflare/quiche
+Version: ${VERSION}
+Cflags: -I${includedir}
+Libs: -L${libdir} -lquiche
Index: pkg/PLIST
===================================================================
RCS file: /home/cvs/ports/net/quiche/pkg/PLIST,v
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   24 Oct 2023 09:49:05 -0000      1.1.1.1
+++ pkg/PLIST   28 Jun 2024 10:25:14 -0000
@@ -1,2 +1,3 @@
 include/quiche.h
 @static-lib lib/libquiche.a
+lib/pkgconfig/quiche.pc

Reply via email to