From owner-svn-ports-head@FreeBSD.ORG Fri Dec 20 12:15:05 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E996161; Fri, 20 Dec 2013 12:15:05 +0000 (UTC) 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 7A81D1E91; Fri, 20 Dec 2013 12:15:05 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBKCF5n6039603; Fri, 20 Dec 2013 12:15:05 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBKCF4g2039596; Fri, 20 Dec 2013 12:15:04 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201312201215.rBKCF4g2039596@svn.freebsd.org> From: Pawel Pekala Date: Fri, 20 Dec 2013 12:15:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337002 - in head/devel/poslib: . files 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.17 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: Fri, 20 Dec 2013 12:15:05 -0000 Author: pawel Date: Fri Dec 20 12:15:04 2013 New Revision: 337002 URL: http://svnweb.freebsd.org/changeset/ports/337002 Log: - Fix build with clang - Support CXXFLAGS properly - Add LICENSE - Support staging PR: ports/184849 Submitted by: KATO Tsuguru Added: head/devel/poslib/files/ head/devel/poslib/files/patch-tools__fileclient.cpp (contents, props changed) head/devel/poslib/files/patch-tools__fileserver.cpp (contents, props changed) Modified: head/devel/poslib/Makefile head/devel/poslib/pkg-plist (contents, props changed) Modified: head/devel/poslib/Makefile ============================================================================== --- head/devel/poslib/Makefile Fri Dec 20 12:03:57 2013 (r337001) +++ head/devel/poslib/Makefile Fri Dec 20 12:15:04 2013 (r337002) @@ -10,22 +10,30 @@ MASTER_SITES= SF/posadis/${PORTNAME}/${P MAINTAINER= ports@FreeBSD.org COMMENT= Posadis C++ DNS library +LICENSE= GPLv2 # (or later) + +OPTIONS_DEFINE= DOCS EXAMPLES + USE_AUTOTOOLS= libtool -GNU_CONFIGURE= yes USE_LDCONFIG= yes PLIST_SUB= VERSION="${PORTVERSION}" -DOCS= AUTHORS ChangeLog NEWS README TODO -EXAMPLES= examples/*.cpp +post-patch: + @${REINPLACE_CMD} -e \ + '/CXXFLAGS/s|-O0|$$CXXFLAGS| ; \ + /LIBS=/s|-lstdc++||' ${WRKSRC}/configure -NO_STAGE= yes post-install: - @${MKDIR} ${EXAMPLESDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR} -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for i in AUTHORS ChangeLog NEWS README TODO + (cd ${WRKSRC} && ${INSTALL_DATA} ${i} \ + ${STAGEDIR}${DOCSDIR}) +.endfor + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/examples && ${INSTALL_DATA} *.cpp \ + ${STAGEDIR}${EXAMPLESDIR}) + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libposlib.so.0 \ + ${STAGEDIR}${PREFIX}/lib/libposserver.so.0 .include Added: head/devel/poslib/files/patch-tools__fileclient.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/poslib/files/patch-tools__fileclient.cpp Fri Dec 20 12:15:04 2013 (r337002) @@ -0,0 +1,11 @@ +--- tools/fileclient.cpp.orig ++++ tools/fileclient.cpp +@@ -20,6 +20,8 @@ + + #include + ++#include ++ + int main(int argc, char **argv) { + DnsMessage *q = NULL, *a = NULL; + char q3[PATH_MAX], *q2 = "", *query = q3, *ptr, *ptr2; Added: head/devel/poslib/files/patch-tools__fileserver.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/poslib/files/patch-tools__fileserver.cpp Fri Dec 20 12:15:04 2013 (r337002) @@ -0,0 +1,10 @@ +--- tools/fileserver.cpp.orig ++++ tools/fileserver.cpp +@@ -32,6 +32,7 @@ + #include + #include + #include ++#include + + DnsMessage *my_handle_query(pending_query *query); + Modified: head/devel/poslib/pkg-plist ============================================================================== --- head/devel/poslib/pkg-plist Fri Dec 20 12:03:57 2013 (r337001) +++ head/devel/poslib/pkg-plist Fri Dec 20 12:15:04 2013 (r337002) @@ -42,13 +42,13 @@ lib/poslib-%%VERSION%%/include/poslib-co %%PORTDOCS%%%%DOCSDIR%%/NEWS %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/TODO +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dnstimeago.cpp +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/host.cpp +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/server.cpp +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%% -%%EXAMPLESDIR%%/dnstimeago.cpp -%%EXAMPLESDIR%%/host.cpp -%%EXAMPLESDIR%%/server.cpp -@dirrm %%EXAMPLESDIR%% +@dirrm lib/poslib-%%VERSION%%/include +@dirrm lib/poslib-%%VERSION%% @dirrm include/poslib-%%VERSION%%/poslib/server @dirrm include/poslib-%%VERSION%%/poslib @dirrm include/poslib-%%VERSION%% -@dirrm lib/poslib-%%VERSION%%/include -@dirrm lib/poslib-%%VERSION%%