svn commit: r324999 - head/devel/libpci
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Mon Aug 19 15:41:41 UTC 2013
Author: sunpoet
Date: Mon Aug 19 15:41:40 2013
New Revision: 324999
URL: http://svnweb.freebsd.org/changeset/ports/324999
Log:
- Use USES=gmake
- Update regex
Modified:
head/devel/libpci/Makefile
Modified: head/devel/libpci/Makefile
==============================================================================
--- head/devel/libpci/Makefile Mon Aug 19 15:31:30 2013 (r324998)
+++ head/devel/libpci/Makefile Mon Aug 19 15:41:40 2013 (r324999)
@@ -16,9 +16,10 @@ LICENSE= GPLv2
RUN_DEPENDS= ${LOCALBASE}/share/pciids/pci.ids:${PORTSDIR}/misc/pciids
ALL_TARGET= lib/libpci.a
+CPPFLAGS+= -fPIC
MAKE_ENV= LANG=C
-USE_GMAKE= yes
USE_LDCONFIG= yes
+USES= gmake
PLIST_DIRS= include/pci
PLIST_FILES= ${LIBPCI_FILES} lib/libpci.so.3
@@ -29,13 +30,7 @@ LIBPCI_FILES= include/pci/config.h inclu
post-patch:
@${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} -e '/^CC=/d; /^CFLAGS=/ s|=|+=|; /^IDSDIR=/ s|$$|/pciids|; /^OPT=/d; /^PREFIX=/d' ${WRKSRC}/Makefile
@${REINPLACE_CMD} 's|^#include "|&pci/|' ${WRKSRC}/lib/pci.h
post-build:
More information about the svn-ports-head
mailing list