On Tue, Oct 17, 2023 at 07:07:12PM +0100, Stuart Henderson wrote:
> I think this is a better fix (checked there's no change to the produced
> package so I didn't bump).
I concur, thanks.
OK kn
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/archivers/snappy/Makefile,v
> retrieving revision 1.20
> diff -u -p -r1.20 Makefile
> --- Makefile 16 Oct 2023 21:17:52 -0000 1.20
> +++ Makefile 17 Oct 2023 17:56:42 -0000
> @@ -25,8 +25,12 @@ CONFIGURE_ARGS += -DBUILD_SHARED_LIBS=ON
> -DINSTALL_GTEST=OFF \
> -DSNAPPY_BUILD_BENCHMARKS=OFF
>
> -EXTRA_ports-gcc += -I${LOCALBASE}/include
> -CXXFLAGS += ${EXTRA_${CHOSEN_COMPILER}}
> +# used in tests
> +BUILD_DEPENDS = archivers/lz4 \
> + archivers/lzo2
> +
> +CXXFLAGS += -I${LOCALBASE}/include
> +MODCMAKE_LDFLAGS = -L${LOCALBASE}/lib
>
> # expects submodule/cannot use system library
> DIST_TUPLE = github google googletest
> e40661d89b051e9ef4eb8a2420b74bf78b39ef41 \
>