diff options
author | lwhsu <lwhsu@FreeBSD.org> | 2010-08-02 20:12:14 +0800 |
---|---|---|
committer | lwhsu <lwhsu@FreeBSD.org> | 2010-08-02 20:12:14 +0800 |
commit | 296dc6242adde555a64dea5dcec805fe038f39bb (patch) | |
tree | 1a693d3a55068b45a8af9d7123bcc2151d54d460 /devel/libpci | |
parent | c1458cd9fea850576738a3c7f905dadb8040de90 (diff) | |
download | freebsd-ports-gnome-296dc6242adde555a64dea5dcec805fe038f39bb.tar.gz freebsd-ports-gnome-296dc6242adde555a64dea5dcec805fe038f39bb.tar.zst freebsd-ports-gnome-296dc6242adde555a64dea5dcec805fe038f39bb.zip |
- Simplify Makefile
- Pass maintainership to submitter
PR: ports/149018
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet AT sunpoet.net>
Diffstat (limited to 'devel/libpci')
-rw-r--r-- | devel/libpci/Makefile | 30 | ||||
-rw-r--r-- | devel/libpci/files/pci.h | 17 | ||||
-rw-r--r-- | devel/libpci/pkg-plist | 9 |
3 files changed, 16 insertions, 40 deletions
diff --git a/devel/libpci/Makefile b/devel/libpci/Makefile index 3df6237cad8c..22bdddaa4146 100644 --- a/devel/libpci/Makefile +++ b/devel/libpci/Makefile @@ -15,27 +15,29 @@ MASTER_SITES= ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/ \ MASTER_SITE_SUBDIR= software/utils/pciutils DISTNAME= pciutils-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sunpoet@sunpoet.net COMMENT= PCI configuration space I/O made easy +ALL_TARGET= lib/libpci.a +MAKE_ENV= LANG=C USE_GMAKE= yes -NO_INSTALL_MANPAGES= yes USE_LDCONFIG= yes -MAKE_ENV= LANG=C -ALL_TARGET= lib/libpci.a + +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-build: - ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/pci.h + @${REINPLACE_CMD} 's|^#include "|&pci/|' ${WRKSRC}/lib/pci.h do-install: - @(${INSTALL_DATA} ${WRKSRC}/lib/libpci.so ${PREFIX}/lib/libpci.so.3) - @(${INSTALL_DATA} ${WRKSRC}/lib/libpci.a ${PREFIX}/lib/libpci.a) - @(${LN} -sf ${PREFIX}/lib/libpci.so.3 ${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) - @(${INSTALL_DATA} ${WRKSRC}/lib/libpci.pc ${PREFIX}/libdata/pkgconfig/libpci.pc) + @${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 <bsd.port.mk> diff --git a/devel/libpci/files/pci.h b/devel/libpci/files/pci.h deleted file mode 100644 index 4b41825cffc2..000000000000 --- a/devel/libpci/files/pci.h +++ /dev/null @@ -1,17 +0,0 @@ ---- lib/pci.h.orig 2009-07-04 13:11:04.000000000 -0300 -+++ lib/pci.h 2010-03-08 19:46:36.000000000 -0300 -@@ -10,11 +10,11 @@ - #define _PCI_LIB_H - - #ifndef PCI_CONFIG_H --#include "config.h" -+#include "pci/config.h" - #endif - --#include "header.h" --#include "types.h" -+#include "pci/header.h" -+#include "pci/types.h" - - #define PCI_LIB_VERSION 0x030100 - diff --git a/devel/libpci/pkg-plist b/devel/libpci/pkg-plist deleted file mode 100644 index d354a81dadd4..000000000000 --- a/devel/libpci/pkg-plist +++ /dev/null @@ -1,9 +0,0 @@ -include/pci/config.h -include/pci/header.h -include/pci/pci.h -include/pci/types.h -lib/libpci.a -lib/libpci.so -lib/libpci.so.3 -libdata/pkgconfig/libpci.pc -@dirrm include/pci |