# New ports collection makefile for: libpci # Date created: June 14, 2003 # Whom: Samy Al Bahra # # $FreeBSD$ # PORTNAME= libpci PORTVERSION= 3.1.9 CATEGORIES= devel MASTER_SITES= ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/ \ LOCAL/sunpoet DISTNAME= pciutils-${PORTVERSION} MAINTAINER= sunpoet@FreeBSD.org COMMENT= PCI configuration space I/O made easy RUN_DEPENDS= ${LOCALBASE}/share/pciids/pci.ids:${PORTSDIR}/misc/pciids ALL_TARGET= lib/libpci.a MAKE_ENV= LANG=C USE_GMAKE= yes USE_LDCONFIG= yes PLIST_DIRS= include/pci PLIST_FILES= ${LIBPCI_FILES} lib/libpci.so.3 LIBPCI_FILES= include/pci/config.h include/pci/header.h include/pci/pci.h \ include/pci/types.h lib/libpci.a lib/libpci.so \ libdata/pkgconfig/libpci.pc post-patch: @${REINPLACE_CMD} 's|^CC=|CC?=|; s|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/Makefile post-build: @${REINPLACE_CMD} 's|^#include "|&pci/|' ${WRKSRC}/lib/pci.h do-install: @${MKDIR} ${PREFIX}/include/pci/ .for file in ${LIBPCI_FILES} @${INSTALL_DATA} ${WRKSRC}/lib/${file:T} ${PREFIX}/${file} .endfor @${LN} -fs libpci.so ${PREFIX}/lib/libpci.so.3 .include