1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/devel/libpci/Makefile
Mark Linimon c44e7878b1 Fix build; also add -fPIC for amd64.
Submitted by:	maintainer
Approved by:	portmgr (self)
Tested on:	pointyhat
2007-11-11 15:53:03 +00:00

40 lines
1.2 KiB
Makefile

# New ports collection makefile for: libpci
# Date created: June 14, 2003
# Whom: Samy Al Bahra <samy@kerneled.org>
#
# $FreeBSD$
#
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/ \
ftp://metalab.unc.edu/pub/Linux/hardware/
DISTNAME= pciutils-${PORTVERSION}
MAINTAINER= sbahra@gwu.edu
COMMENT= PCI configuration space I/O made easy
USE_GMAKE= yes
NO_INSTALL_MANPAGES= yes
INSTALLS_SHLIB= yes
MAKE_ENV= LANG=C
ALL_TARGET= lib/libpci.a
post-build:
${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/pci.h
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 ${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)
@(${INSTALL_DATA} ${WRKSRC}/lib/pci.h ${PREFIX}/include/pci/pci.h)
@(${INSTALL_DATA} ${WRKSRC}/lib/types.h ${PREFIX}/include/pci/types.h)
.include <bsd.port.mk>