diff options
author | bland <bland@FreeBSD.org> | 2003-10-30 21:47:26 +0800 |
---|---|---|
committer | bland <bland@FreeBSD.org> | 2003-10-30 21:47:26 +0800 |
commit | a5790d51692a908255bcdb5e6c163ea8ffe3f7b6 (patch) | |
tree | 3894d360a0b25cdfa88af4115fa8080587e62646 /devel | |
parent | c307686bfb3883b2f932ea971be0af24b5a023a3 (diff) | |
download | freebsd-ports-gnome-a5790d51692a908255bcdb5e6c163ea8ffe3f7b6.tar.gz freebsd-ports-gnome-a5790d51692a908255bcdb5e6c163ea8ffe3f7b6.tar.zst freebsd-ports-gnome-a5790d51692a908255bcdb5e6c163ea8ffe3f7b6.zip |
Resolve pci/pci.h is not installedi issue. This is an annoyance for
libpci developers.
Reported by: Samuel Tardieu
Submitted by: maintainer
Diffstat (limited to 'devel')
-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 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 |