# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# 
# Filename: package/.../pciutils/libpci.patch
# Copyright (C) 2006 The OpenSDE Project
# 
# More information can be found in the files COPYING and README.
# 
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---

--- ./Makefile.orig	2006-11-25 17:19:15.000000000 -0300
+++ ./Makefile	2006-11-25 17:22:48.000000000 -0300
@@ -9,6 +9,8 @@
 
 PREFIX=/usr/local
 SBINDIR=$(PREFIX)/sbin
+LIBDIR=$(PREFIX)/lib
+INCDIR=$(PREFIX)/include
 SHAREDIR=$(PREFIX)/share
 IDSDIR=$(SHAREDIR)
 MANDIR:=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi)
@@ -70,6 +72,9 @@
 	$(INSTALL) -c -m 755 update-pciids $(SBINDIR)
 	$(INSTALL) -c -m 644 pci.ids $(IDSDIR)
 	$(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 $(MANDIR)/man8
+	$(INSTALL) -c -m 755 -d $(INCDIR)/pci
+	$(INSTALL) -c -m 644 lib/libpci.a $(LIBDIR)/
+	$(INSTALL) -c -m 644 lib/*.h $(INCDIR)/pci/
 
 uninstall: all
 	rm -f $(SBINDIR)/lspci $(SBINDIR)/setpci $(SBINDIR)/update-pciids