aboutsummaryrefslogtreecommitdiff
path: root/devel/libpci
diff options
context:
space:
mode:
authorAlexander Nedotsukov <bland@FreeBSD.org>2003-10-30 13:47:26 +0000
committerAlexander Nedotsukov <bland@FreeBSD.org>2003-10-30 13:47:26 +0000
commitb97e9dc92d3df40aa5348a008602591b28430fa5 (patch)
tree3deb5d2b6c6eabcd011f282d9ce786279d2e330b /devel/libpci
parent97f8811dad0b8ef50f4fc6ea2e85d2491d1c6e17 (diff)
downloadports-b97e9dc92d3df40aa5348a008602591b28430fa5.tar.gz
ports-b97e9dc92d3df40aa5348a008602591b28430fa5.zip
Notes
Diffstat (limited to 'devel/libpci')
-rw-r--r--devel/libpci/Makefile6
-rw-r--r--devel/libpci/files/patch-Makefile13
-rw-r--r--devel/libpci/files/pci.h12
-rw-r--r--devel/libpci/pkg-plist2
4 files changed, 33 insertions, 0 deletions
diff --git a/devel/libpci/Makefile b/devel/libpci/Makefile
index 03e88157e349..edca368ddbc0 100644
--- a/devel/libpci/Makefile
+++ b/devel/libpci/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libpci
PORTVERSION= 2.1.11
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.kerneled.com/freebsd/ports/ \
ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/ \
@@ -34,9 +35,14 @@ pre-everything::
@${ECHO_MSG} "************************************************"
@${ECHO_MSG} ""
+post-build:
+ ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/pci.h
+
do-install:
@(${CP} ${WRKSRC}/lib/libpci.so ${PREFIX}/lib/libpci.so.2)
@(${CP} ${WRKSRC}/lib/libpci.a ${PREFIX}/lib/libpci.a)
@(${LN} -sf ${PREFIX}/lib/libpci.so.2.1 ${PREFIX}/lib/libpci.so)
+ @(${MKDIR} ${PREFIX}/include/pci)
+ @(${CP} ${WRKSRC}/lib/pci.h ${PREFIX}/include/pci/pci.h)
.include <bsd.port.mk>
diff --git a/devel/libpci/files/patch-Makefile b/devel/libpci/files/patch-Makefile
new file mode 100644
index 000000000000..a17952c2b73a
--- /dev/null
+++ b/devel/libpci/files/patch-Makefile
@@ -0,0 +1,13 @@
+--- Makefile.orig Sat Jan 4 15:53:01 2003
++++ Makefile Fri Jun 13 21:20:28 2003
+@@ -2,9 +2,7 @@
+ # Makefile for Linux PCI Utilities
+ # (c) 1998--2003 Martin Mares <mj@ucw.cz>
+
+-OPT=-O2 -fomit-frame-pointer
+-#OPT=-O2 -g
+-CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes
++CFLAGS += -Wall -W -Wno-parentheses -Wstrict-prototypes
+
+ VERSION=2.1.11
+ #SUFFIX=-pre2
diff --git a/devel/libpci/files/pci.h b/devel/libpci/files/pci.h
new file mode 100644
index 000000000000..f1d60518aed4
--- /dev/null
+++ b/devel/libpci/files/pci.h
@@ -0,0 +1,12 @@
+--- lib/pci.h.orig Thu Oct 30 15:57:58 2003
++++ lib/pci.h Thu Oct 30 16:04:23 2003
+@@ -11,8 +11,7 @@
+ #ifndef _PCI_LIB_H
+ #define _PCI_LIB_H
+
+-#include "config.h"
+-#include "header.h"
++#define OS_FREEBSD
+
+ /*
+ * Types
diff --git a/devel/libpci/pkg-plist b/devel/libpci/pkg-plist
index 08151a13cf50..9bfb242cdb34 100644
--- a/devel/libpci/pkg-plist
+++ b/devel/libpci/pkg-plist
@@ -1,3 +1,5 @@
+include/pci/pci.h
lib/libpci.a
lib/libpci.so
lib/libpci.so.2
+@dirrm include/pci