- Respect PREFIX

Reported by:	stas
Approved by:	pgollucci (mentor)
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2010-10-01 01:01:55 +00:00
parent d94783cb81
commit 4ff4c58aff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=262216
2 changed files with 10 additions and 3 deletions

View file

@ -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

View file

@ -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)