$NetBSD: patch-Makefile,v 1.1 2025/02/28 23:21:14 pin Exp $ Adapt the Makefile to make it compliant with pkgsrc. --- Makefile.orig 2025-02-28 18:38:40.671186310 +0000 +++ Makefile @@ -1,8 +1,7 @@ # Makefile for The PCI Utilities # (c) 1998--2024 Martin Mares -OPT=-O2 -CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes +CFLAGS=-Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes VERSION=3.13.0 DATE=2024-05-30 @@ -13,7 +12,7 @@ RELEASE= CROSS_COMPILE= # Support for compressed pci.ids (yes/no, default: detect) -ZLIB= +ZLIB=no # Support for resolving ID's by DNS (yes/no, default: detect) DNS= @@ -45,9 +44,9 @@ PKGCFDIR=$(LIBDIR)/pkgconfig # Commands INSTALL=install DIRINSTALL=install -d -STRIP=-s +#STRIP=-s ifdef CROSS_COMPILE -STRIP+=--strip-program $(CROSS_COMPILE)strip +#STRIP+=--strip-program $(CROSS_COMPILE)strip CC=$(CROSS_COMPILE)gcc else CC=cc