freebsd-ports/devel/libpci/files/patch-Makefile
Sunpoet Po-Chuan Hsieh 4ff4c58aff - Respect PREFIX
Reported by:	stas
Approved by:	pgollucci (mentor)
2010-10-01 01:01:55 +00:00

25 lines
765 B
Text

--- Makefile.orig 2010-02-01 01:42:12.000000000 +0800
+++ Makefile 2010-09-29 20:31:29.000000000 +0800
@@ -1,8 +1,7 @@
# Makefile for The PCI Utilities
# (c) 1998--2010 Martin Mares <mj@ucw.cz>
-OPT=-O2
-CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
+CFLAGS+=-fPIC -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
VERSION=3.1.7
DATE=2010-01-31
@@ -25,10 +24,10 @@
ABI_VERSION=.3
# Installation directories
-PREFIX=/usr/local
+PREFIX=%%PREFIX%%
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