aboutsummaryrefslogtreecommitdiff
path: root/devel/libpci
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2010-10-01 01:01:55 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2010-10-01 01:01:55 +0000
commit4ff4c58aff5aa2a72e40086976e86d137db6933f (patch)
tree46fd4c635a19c06e6ff68f8633dd49c0f937cb7d /devel/libpci
parentd94783cb81ea26be13b1880993b18fe26afc0c78 (diff)
- Respect PREFIX
Reported by: stas Approved by: pgollucci (mentor)
Notes
Notes: svn path=/head/; revision=262216
Diffstat (limited to 'devel/libpci')
-rw-r--r--devel/libpci/Makefile3
-rw-r--r--devel/libpci/files/patch-Makefile10
2 files changed, 10 insertions, 3 deletions
diff --git a/devel/libpci/Makefile b/devel/libpci/Makefile
index cd4bddef3d27..eae13e9aad8e 100644
--- a/devel/libpci/Makefile
+++ b/devel/libpci/Makefile
@@ -32,6 +32,9 @@ LIBPCI_FILES= include/pci/config.h include/pci/header.h include/pci/pci.h \
include/pci/types.h lib/libpci.a lib/libpci.so \
libdata/pkgconfig/libpci.pc
+post-patch:
+ @${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/Makefile
+
post-build:
@${REINPLACE_CMD} 's|^#include "|&pci/|' ${WRKSRC}/lib/pci.h
diff --git a/devel/libpci/files/patch-Makefile b/devel/libpci/files/patch-Makefile
index 705b2c8eb271..44f576364acb 100644
--- a/devel/libpci/files/patch-Makefile
+++ b/devel/libpci/files/patch-Makefile
@@ -1,5 +1,5 @@
--- Makefile.orig 2010-02-01 01:42:12.000000000 +0800
-+++ Makefile 2010-09-14 15:54:51.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>
@@ -10,8 +10,12 @@
VERSION=3.1.7
DATE=2010-01-31
-@@ -28,7 +27,7 @@
- PREFIX=/usr/local
+@@ -25,10 +24,10 @@
+ ABI_VERSION=.3
+
+ # Installation directories
+-PREFIX=/usr/local
++PREFIX=%%PREFIX%%
SBINDIR=$(PREFIX)/sbin
SHAREDIR=$(PREFIX)/share
-IDSDIR=$(SHAREDIR)