$NetBSD: patch-Makefile,v 1.2 2025/07/23 18:32:32 pin Exp $

Adapt the Makefile to make it compliant with pkgsrc.

--- Makefile.orig	2025-07-23 14:26:12.489051242 +0000
+++ Makefile
@@ -1,8 +1,7 @@
 # Makefile for The PCI Utilities
 # (c) 1998--2025 Martin Mares <mj@ucw.cz>
 
-OPT=-O2
-CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
+CFLAGS=-Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
 
 VERSION=3.14.0
 DATE=2025-06-21
@@ -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
