summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2007-11-11 15:53:03 +0000
committerMark Linimon <linimon@FreeBSD.org>2007-11-11 15:53:03 +0000
commitc44e7878b16c6303034428a2052f7a3e97336ca3 (patch)
tree68a1b31168e39b2906204f50fab4921b2bab6d7d /devel
parent- Document phpmyadmin -- cross-site scripting vulnerability (diff)
Fix build; also add -fPIC for amd64.
Submitted by: maintainer Approved by: portmgr (self) Tested on: pointyhat
Notes
Notes: svn path=/head/; revision=202624
Diffstat (limited to 'devel')
-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),' \