diff options
author | bland <bland@FreeBSD.org> | 2003-10-30 13:47:26 +0000 |
---|---|---|
committer | bland <bland@FreeBSD.org> | 2003-10-30 13:47:26 +0000 |
commit | a5790d51692a908255bcdb5e6c163ea8ffe3f7b6 (patch) | |
tree | 3894d360a0b25cdfa88af4115fa8080587e62646 | |
parent | c307686bfb3883b2f932ea971be0af24b5a023a3 (diff) | |
download | FreeBSD-ports-a5790d51692a908255bcdb5e6c163ea8ffe3f7b6.zip FreeBSD-ports-a5790d51692a908255bcdb5e6c163ea8ffe3f7b6.tar.gz |
Resolve pci/pci.h is not installedi issue. This is an annoyance for
libpci developers.
Reported by: Samuel Tardieu
Submitted by: maintainer
-rw-r--r-- | devel/libpci/Makefile | 6 | ||||
-rw-r--r-- | devel/libpci/files/patch-Makefile | 13 | ||||
-rw-r--r-- | devel/libpci/files/pci.h | 12 | ||||
-rw-r--r-- | devel/libpci/pkg-plist | 2 |
4 files changed, 33 insertions, 0 deletions
diff --git a/devel/libpci/Makefile b/devel/libpci/Makefile index 03e8815..edca368 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 0000000..a17952c --- /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 0000000..f1d6051 --- /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 08151a1..9bfb242 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 |