Date: Thu, 10 Oct 2013 14:36:22 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r330008 - head/devel/libpci Message-ID: <201310101436.r9AEaMES070060@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Thu Oct 10 14:36:21 2013 New Revision: 330008 URL: http://svnweb.freebsd.org/changeset/ports/330008 Log: - Strip shared library - Change symbolic link: libpci.so -> libpci.so.3 - Support STAGEDIR Modified: head/devel/libpci/Makefile Modified: head/devel/libpci/Makefile ============================================================================== --- head/devel/libpci/Makefile Thu Oct 10 14:36:11 2013 (r330007) +++ head/devel/libpci/Makefile Thu Oct 10 14:36:21 2013 (r330008) @@ -22,26 +22,30 @@ USE_LDCONFIG= yes USES= gmake PLIST_DIRS= include/pci -PLIST_FILES= ${LIBPCI_FILES} lib/libpci.so.3 +PLIST_FILES= ${LIBPCI_FILES} \ + lib/libpci.so -LIBPCI_FILES= include/pci/config.h include/pci/header.h include/pci/pci.h \ - include/pci/types.h lib/libpci.a lib/libpci.so \ +LIBPCI_FILES= include/pci/config.h \ + include/pci/header.h \ + include/pci/pci.h \ + include/pci/types.h \ + lib/libpci.a \ + lib/libpci.so.3 \ libdata/pkgconfig/libpci.pc -NO_STAGE= yes post-patch: @${LN} -s . ${WRKSRC}/lib/pci @${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: - cd ${WRKSRC}/lib/ && ${CC} ${CFLAGS} -shared *.o -lz -o libpci.so + @cd ${WRKSRC}/lib/ && ${CC} ${CFLAGS} ${STRIP} -shared *.o -lz -o libpci.so.3 do-install: - ${MKDIR} ${PREFIX}/include/pci/ + ${MKDIR} ${STAGEDIR}${PREFIX}/include/pci/ .for file in ${LIBPCI_FILES} - ${INSTALL_DATA} ${WRKSRC}/lib/${file:T} ${PREFIX}/${file} + ${INSTALL_DATA} ${WRKSRC}/lib/${file:T} ${STAGEDIR}${PREFIX}/${file} .endfor - ${LN} -fs libpci.so ${PREFIX}/lib/libpci.so.3 + ${LN} -fs libpci.so.3 ${STAGEDIR}${PREFIX}/lib/libpci.so .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310101436.r9AEaMES070060>