aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libpci
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libpci')
-rw-r--r--devel/libpci/Makefile3
-rw-r--r--devel/libpci/files/patch-Makefile2
-rw-r--r--devel/libpci/files/patch-lib::Makefile2
3 files changed, 4 insertions, 3 deletions
diff --git a/devel/libpci/Makefile b/devel/libpci/Makefile
index 0a6c8bb2cea1..038f928c5b5f 100644
--- a/devel/libpci/Makefile
+++ b/devel/libpci/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libpci
PORTVERSION= 2.2.8
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/ \
ftp://ftp.kernel.org/pub/software/utils/pciutils/ \
@@ -28,7 +29,7 @@ post-build:
do-install:
@(${INSTALL_DATA} ${WRKSRC}/lib/libpci.so ${PREFIX}/lib/libpci.so.2)
@(${INSTALL_DATA} ${WRKSRC}/lib/libpci.a ${PREFIX}/lib/libpci.a)
- @(${LN} -sf ${PREFIX}/lib/libpci.so.2.1 ${PREFIX}/lib/libpci.so)
+ @(${LN} -sf ${PREFIX}/lib/libpci.so.2 ${PREFIX}/lib/libpci.so)
@(${MKDIR} ${PREFIX}/include/pci)
@(${INSTALL_DATA} ${WRKSRC}/lib/config.h ${PREFIX}/include/pci/config.h)
@(${INSTALL_DATA} ${WRKSRC}/lib/header.h ${PREFIX}/include/pci/header.h)
diff --git a/devel/libpci/files/patch-Makefile b/devel/libpci/files/patch-Makefile
index 0cd7f29d888a..8a6109a68eb0 100644
--- a/devel/libpci/files/patch-Makefile
+++ b/devel/libpci/files/patch-Makefile
@@ -6,7 +6,7 @@
-OPT=-O2
-CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
-+CFLAGS+=-Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
++CFLAGS+=-fPIC -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
VERSION=2.2.8
DATE=2007-10-19
diff --git a/devel/libpci/files/patch-lib::Makefile b/devel/libpci/files/patch-lib::Makefile
index bb36c6e22827..c91be38b8d03 100644
--- a/devel/libpci/files/patch-lib::Makefile
+++ b/devel/libpci/files/patch-lib::Makefile
@@ -4,7 +4,7 @@
rm -f $@
$(AR) rcs $@ $^
$(RANLIB) $@
-+ $(CC) $(CFLAGS) -shared $@ -o libpci.so
++ $(CC) $(CFLAGS) -shared $^ -o libpci.so
$(PCILIBPC): $(PCILIBPC).in
sed <$< >$@ -e 's,@PREFIX@,$(PREFIX),' \