From owner-svn-ports-head@FreeBSD.ORG Thu Oct 10 14:36:22 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 68A51D5B; Thu, 10 Oct 2013 14:36:22 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 55F1D20F8; Thu, 10 Oct 2013 14:36:22 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9AEaMYE070061; Thu, 10 Oct 2013 14:36:22 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9AEaMES070060; Thu, 10 Oct 2013 14:36:22 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201310101436.r9AEaMES070060@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Thu, 10 Oct 2013 14:36:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r330008 - head/devel/libpci X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2013 14:36:22 -0000 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