Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Feb 2016 01:47:27 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r408526 - in head/devel/cxxtools: . files
Message-ID:  <201602090147.u191lRpS020125@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Feb  9 01:47:26 2016
New Revision: 408526
URL: https://svnweb.freebsd.org/changeset/ports/408526

Log:
  - Switch to USES=localbase
  - Strip libraries
  - Switch to options helpers
  - Simplify patches handling

Added:
  head/devel/cxxtools/files/patch-include_cxxtools_char.h
     - copied, changed from r408525, head/devel/cxxtools/files/patch-clang
  head/devel/cxxtools/files/patch-src_directoryimpl.cpp
     - copied, changed from r408525, head/devel/cxxtools/files/patch-src-directoryimpl.cpp
  head/devel/cxxtools/files/patch-src_tcpsocketimpl.h
     - copied, changed from r408525, head/devel/cxxtools/files/patch-src-tcpsocketimpl.h
Deleted:
  head/devel/cxxtools/files/patch-clang
  head/devel/cxxtools/files/patch-src-directoryimpl.cpp
  head/devel/cxxtools/files/patch-src-tcpsocketimpl.h
Modified:
  head/devel/cxxtools/Makefile

Modified: head/devel/cxxtools/Makefile
==============================================================================
--- head/devel/cxxtools/Makefile	Tue Feb  9 01:43:24 2016	(r408525)
+++ head/devel/cxxtools/Makefile	Tue Feb  9 01:47:26 2016	(r408526)
@@ -3,7 +3,7 @@
 
 PORTNAME=	cxxtools
 PORTVERSION=	2.2.1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 MASTER_SITES=	http://www.tntnet.org/download/
 
@@ -13,45 +13,47 @@ COMMENT=	Collection of general-purpose C
 LICENSE=	LGPL21+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-PATCH_STRIP=	-p1
-USES=		cpe iconv libtool pathfix
+BROKEN_sparc64=	does not configure
+
+USES=		cpe iconv libtool localbase pathfix
 CPE_VENDOR=	tntnet
 USE_CSTD=	gnu89
 GNU_CONFIGURE=	yes
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
+INSTALL_TARGET=	install-strip
 USE_LDCONFIG=	yes
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "sparc64"
-BROKEN=		Does not configure on sparc64
-.endif
 .if ${ARCH} == "amd64"
 PLIST_SUB+=	X86_64_ONLY=""
 .else
 PLIST_SUB+=	X86_64_ONLY="@comment "
 .endif
+
 .if ${ARCH} == "i386"
 PLIST_SUB+=	I386_ONLY=""
 .else
 PLIST_SUB+=	I386_ONLY="@comment "
 .endif
+
 .if (${ARCH} == "amd64") || (${ARCH} == "i386")
 PLIST_SUB+=	X86_ONLY=""
 .else
 PLIST_SUB+=	X86_ONLY="@comment "
 .endif
+
 .if ${ARCH} == "arm" || ${ARCH} == "armv6"
 PLIST_SUB+=	ARM_ONLY=""
 .else
 PLIST_SUB+=	ARM_ONLY="@comment "
 .endif
+
 .if ${ARCH} == "mips" || ${ARCH} == "mips64"
 PLIST_SUB+=	MIPS_ONLY=""
 .else
 PLIST_SUB+=	MIPS_ONLY="@comment "
 .endif
+
 .if ${ARCH} == "powerpc" || ${ARCH} == "powerpc64"
 PLIST_SUB+=	PPC_ONLY=""
 .else

Copied and modified: head/devel/cxxtools/files/patch-include_cxxtools_char.h (from r408525, head/devel/cxxtools/files/patch-clang)
==============================================================================
--- head/devel/cxxtools/files/patch-clang	Tue Feb  9 01:43:24 2016	(r408525, copy source)
+++ head/devel/cxxtools/files/patch-include_cxxtools_char.h	Tue Feb  9 01:47:26 2016	(r408526)
@@ -2,8 +2,8 @@ Obtained from:
 
 	https://github.com/maekitalo/cxxtools/commit/645dedf575da32198ac815655e5c6e5cd5cc4461
 
---- a/include/cxxtools/char.h
-+++ b/include/cxxtools/char.h
+--- include/cxxtools/char.h.orig	2014-01-17 19:05:09 UTC
++++ include/cxxtools/char.h
 @@ -72,23 +72,8 @@ namespace cxxtools
              : _value(0)
              {}

Copied and modified: head/devel/cxxtools/files/patch-src_directoryimpl.cpp (from r408525, head/devel/cxxtools/files/patch-src-directoryimpl.cpp)
==============================================================================
--- head/devel/cxxtools/files/patch-src-directoryimpl.cpp	Tue Feb  9 01:43:24 2016	(r408525, copy source)
+++ head/devel/cxxtools/files/patch-src_directoryimpl.cpp	Tue Feb  9 01:47:26 2016	(r408526)
@@ -1,5 +1,5 @@
---- a/src/directoryimpl.cpp
-+++ b/src/directoryimpl.cpp
+--- src/directoryimpl.cpp.orig	2013-12-26 09:33:48 UTC
++++ src/directoryimpl.cpp
 @@ -27,6 +27,7 @@
   */
  #include "directoryimpl.h"

Copied and modified: head/devel/cxxtools/files/patch-src_tcpsocketimpl.h (from r408525, head/devel/cxxtools/files/patch-src-tcpsocketimpl.h)
==============================================================================
--- head/devel/cxxtools/files/patch-src-tcpsocketimpl.h	Tue Feb  9 01:43:24 2016	(r408525, copy source)
+++ head/devel/cxxtools/files/patch-src_tcpsocketimpl.h	Tue Feb  9 01:47:26 2016	(r408526)
@@ -1,5 +1,5 @@
---- a/src/tcpsocketimpl.h
-+++ b/src/tcpsocketimpl.h
+--- src/tcpsocketimpl.h.orig	2014-01-17 19:05:09 UTC
++++ src/tcpsocketimpl.h
 @@ -36,6 +36,7 @@
  #include <string>
  #include <sys/types.h>
@@ -7,4 +7,4 @@
 +#include <netinet/in.h>
  #include <sys/poll.h>
  #include <sys/time.h>
- #include <unistd.h>
+ #include <netinet/in.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602090147.u191lRpS020125>