mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 02:16:27 -04:00
- Remove patches for FreeBSD 12 (patch-lib-ecam.c and patch-lib-mmio-ports.c) Changes: https://github.com/pciutils/pciutils/blob/master/ChangeLog
39 lines
1 KiB
Text
39 lines
1 KiB
Text
--- Makefile.orig 2024-02-24 23:10:18 UTC
|
|
+++ Makefile
|
|
@@ -1,8 +1,8 @@
|
|
# Makefile for The PCI Utilities
|
|
# (c) 1998--2024 Martin Mares <mj@ucw.cz>
|
|
|
|
-OPT=-O2
|
|
-CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
|
|
+#OPT=-O2
|
|
+CFLAGS+=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
|
|
|
|
VERSION=3.11.1
|
|
DATE=2024-02-25
|
|
@@ -32,11 +32,11 @@ ABI_VERSION=3
|
|
ABI_VERSION=3
|
|
|
|
# Installation directories
|
|
-PREFIX=/usr/local
|
|
+#PREFIX=/usr/local
|
|
BINDIR=$(PREFIX)/bin
|
|
SBINDIR=$(PREFIX)/sbin
|
|
SHAREDIR=$(PREFIX)/share
|
|
-IDSDIR=$(SHAREDIR)
|
|
+IDSDIR=$(SHAREDIR)/pciids
|
|
MANDIR:=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi)
|
|
INCDIR=$(PREFIX)/include
|
|
LIBDIR=$(PREFIX)/lib
|
|
@@ -48,9 +48,9 @@ STRIP+=--strip-program $(CROSS_COMPILE)strip
|
|
STRIP=-s
|
|
ifdef CROSS_COMPILE
|
|
STRIP+=--strip-program $(CROSS_COMPILE)strip
|
|
-CC=$(CROSS_COMPILE)gcc
|
|
+CC?=$(CROSS_COMPILE)gcc
|
|
else
|
|
-CC=cc
|
|
+CC?=cc
|
|
endif
|
|
AR=$(CROSS_COMPILE)ar
|
|
RANLIB=$(CROSS_COMPILE)ranlib
|