diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2012-06-26 13:31:11 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2012-06-26 13:31:11 +0000 |
commit | efb0fef0392a1f994565bb6f7774177a340c01c9 (patch) | |
tree | e026faa6d8a9fef740ac9ce08fcfefae2bbec460 /devel/libpci/Makefile | |
parent | 43ce2263a27c1946e52906699e84414e425d7817 (diff) | |
download | ports-efb0fef0392a1f994565bb6f7774177a340c01c9.tar.gz ports-efb0fef0392a1f994565bb6f7774177a340c01c9.zip |
Notes
Diffstat (limited to 'devel/libpci/Makefile')
-rw-r--r-- | devel/libpci/Makefile | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/devel/libpci/Makefile b/devel/libpci/Makefile index 62417131a7cd..b17304d71f7a 100644 --- a/devel/libpci/Makefile +++ b/devel/libpci/Makefile @@ -6,7 +6,7 @@ # PORTNAME= libpci -PORTVERSION= 3.1.9 +PORTVERSION= 3.1.10 CATEGORIES= devel MASTER_SITES= ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/ \ LOCAL/sunpoet @@ -15,6 +15,8 @@ DISTNAME= pciutils-${PORTVERSION} MAINTAINER= sunpoet@FreeBSD.org COMMENT= PCI configuration space I/O made easy +LICENSE= GPLv2 + RUN_DEPENDS= ${LOCALBASE}/share/pciids/pci.ids:${PORTSDIR}/misc/pciids ALL_TARGET= lib/libpci.a @@ -30,16 +32,24 @@ LIBPCI_FILES= include/pci/config.h include/pci/header.h include/pci/pci.h \ libdata/pkgconfig/libpci.pc post-patch: - @${REINPLACE_CMD} 's|^CC=|CC?=|; s|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/Makefile + @${LN} -s . ${WRKSRC}/lib/pci + @${REINPLACE_CMD} \ + -e 's|^CC=.*$$|CC=${CC}|' \ + -e 's|^CFLAGS=|CFLAGS+=|' \ + -e 's|^IDSDIR=.*$$|IDSDIR=${PREFIX}/share/pciids|' \ + -e 's|^OPT=.*$$|OPT=-fPIC|' \ + -e 's|^PREFIX=.*$$|PREFIX=${PREFIX}|' \ + ${WRKSRC}/Makefile + @${REINPLACE_CMD} 's|^#include "|&pci/|' ${WRKSRC}/lib/pci.h post-build: - @${REINPLACE_CMD} 's|^#include "|&pci/|' ${WRKSRC}/lib/pci.h + cd ${WRKSRC}/lib/ && ${CC} ${CFLAGS} -shared *.o -lz -o libpci.so do-install: - @${MKDIR} ${PREFIX}/include/pci/ + ${MKDIR} ${PREFIX}/include/pci/ .for file in ${LIBPCI_FILES} - @${INSTALL_DATA} ${WRKSRC}/lib/${file:T} ${PREFIX}/${file} + ${INSTALL_DATA} ${WRKSRC}/lib/${file:T} ${PREFIX}/${file} .endfor - @${LN} -fs libpci.so ${PREFIX}/lib/libpci.so.3 + ${LN} -fs libpci.so ${PREFIX}/lib/libpci.so.3 .include <bsd.port.mk> |