$NetBSD: patch-Makefile,v 1.3 2026/05/06 09:27:00 pin Exp $

Adapt the Makefile to make it compliant with pkgsrc.

--- Makefile.orig	2026-05-06 05:02:29.273908310 +0000
+++ Makefile
@@ -1,8 +1,7 @@
 # Makefile for The PCI Utilities
 # (c) 1998--2026 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.15.0
 DATE=2026-04-05
@@ -13,7 +12,7 @@ CROSS_COMPILE=
 CROSS_COMPILE=
 
 # Support for compressed pci.ids (yes/no, default: detect)
-ZLIB=
+ZLIB=no
 
 # Support for resolving IDs by DNS (yes/no, default: detect)
 DNS=
@@ -45,9 +44,9 @@ DIRINSTALL=install -d
 # 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
