diff options
author | linimon <linimon@FreeBSD.org> | 2007-11-11 23:53:03 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2007-11-11 23:53:03 +0800 |
commit | 78dbff89795bd427f469a5b0d230bd443e54244b (patch) | |
tree | 2955e9cb5f694f536228cefc8ac196f38cc137a6 /devel/libpci | |
parent | 2f980e9f37fad2833b7da981321ca99dec3debf3 (diff) | |
download | freebsd-ports-gnome-78dbff89795bd427f469a5b0d230bd443e54244b.tar.gz freebsd-ports-gnome-78dbff89795bd427f469a5b0d230bd443e54244b.tar.zst freebsd-ports-gnome-78dbff89795bd427f469a5b0d230bd443e54244b.zip |
Fix build; also add -fPIC for amd64.
Submitted by: maintainer
Approved by: portmgr (self)
Tested on: pointyhat
Diffstat (limited to 'devel/libpci')
-rw-r--r-- | devel/libpci/Makefile | 3 | ||||
-rw-r--r-- | devel/libpci/files/patch-Makefile | 2 | ||||
-rw-r--r-- | devel/libpci/files/patch-lib::Makefile | 2 |
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),' \ |