aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2011-06-21 18:35:50 +0800
committersunpoet <sunpoet@FreeBSD.org>2011-06-21 18:35:50 +0800
commit99476ffe9e8ac0ecfe661c5d90f79d1c4d4aaef2 (patch)
tree416fa88830ec23d34abb2df918f0ac4b209f6dab
parent25880f20e4c1add1fcd410eaef595d698ec6003d (diff)
downloadfreebsd-ports-gnome-99476ffe9e8ac0ecfe661c5d90f79d1c4d4aaef2.tar.gz
freebsd-ports-gnome-99476ffe9e8ac0ecfe661c5d90f79d1c4d4aaef2.tar.zst
freebsd-ports-gnome-99476ffe9e8ac0ecfe661c5d90f79d1c4d4aaef2.zip
- Make it clang-friendly
-rw-r--r--devel/libpci/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/devel/libpci/Makefile b/devel/libpci/Makefile
index eae13e9aad8e..4e3041338ac6 100644
--- a/devel/libpci/Makefile
+++ b/devel/libpci/Makefile
@@ -33,7 +33,7 @@ LIBPCI_FILES= include/pci/config.h include/pci/header.h include/pci/pci.h \
libdata/pkgconfig/libpci.pc
post-patch:
- @${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} 's|^CC=|CC?=|; s|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/Makefile
post-build:
@${REINPLACE_CMD} 's|^#include "|&pci/|' ${WRKSRC}/lib/pci.h