mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
Resolve pci/pci.h is not installedi issue. This is an annoyance for
libpci developers. Reported by: Samuel Tardieu Submitted by: maintainer
This commit is contained in:
parent
97f8811dad
commit
b97e9dc92d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92642
@ -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>
|
||||
|
13
devel/libpci/files/patch-Makefile
Normal file
13
devel/libpci/files/patch-Makefile
Normal file
@ -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
|
12
devel/libpci/files/pci.h
Normal file
12
devel/libpci/files/pci.h
Normal file
@ -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
|
@ -1,3 +1,5 @@
|
||||
include/pci/pci.h
|
||||
lib/libpci.a
|
||||
lib/libpci.so
|
||||
lib/libpci.so.2
|
||||
@dirrm include/pci
|
||||
|
Loading…
Reference in New Issue
Block a user