aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-02-09 09:47:26 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-02-09 09:47:26 +0800
commit3978af75291930e700294f6c336318e761955537 (patch)
tree90fdfaab2d8f84e823c49a963528700385817d07
parent4fa44a1165737cc79e0e5c44a12105699d89d650 (diff)
downloadfreebsd-ports-gnome-3978af75291930e700294f6c336318e761955537.tar.gz
freebsd-ports-gnome-3978af75291930e700294f6c336318e761955537.tar.zst
freebsd-ports-gnome-3978af75291930e700294f6c336318e761955537.zip
- Switch to USES=localbase
- Strip libraries - Switch to options helpers - Simplify patches handling
-rw-r--r--devel/cxxtools/Makefile18
-rw-r--r--devel/cxxtools/files/patch-include_cxxtools_char.h (renamed from devel/cxxtools/files/patch-clang)4
-rw-r--r--devel/cxxtools/files/patch-src_directoryimpl.cpp (renamed from devel/cxxtools/files/patch-src-directoryimpl.cpp)4
-rw-r--r--devel/cxxtools/files/patch-src_tcpsocketimpl.h (renamed from devel/cxxtools/files/patch-src-tcpsocketimpl.h)6
4 files changed, 17 insertions, 15 deletions
diff --git a/devel/cxxtools/Makefile b/devel/cxxtools/Makefile
index 36c9bdddd628..8ea06ecca1c2 100644
--- a/devel/cxxtools/Makefile
+++ b/devel/cxxtools/Makefile
@@ -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++ classes
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
diff --git a/devel/cxxtools/files/patch-clang b/devel/cxxtools/files/patch-include_cxxtools_char.h
index 6c8f772a9d22..b08ef6fda379 100644
--- a/devel/cxxtools/files/patch-clang
+++ b/devel/cxxtools/files/patch-include_cxxtools_char.h
@@ -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)
{}
diff --git a/devel/cxxtools/files/patch-src-directoryimpl.cpp b/devel/cxxtools/files/patch-src_directoryimpl.cpp
index e5bc44766199..3a97d265b008 100644
--- a/devel/cxxtools/files/patch-src-directoryimpl.cpp
+++ b/devel/cxxtools/files/patch-src_directoryimpl.cpp
@@ -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"
diff --git a/devel/cxxtools/files/patch-src-tcpsocketimpl.h b/devel/cxxtools/files/patch-src_tcpsocketimpl.h
index 30f1a0835b1f..5ea4873519f1 100644
--- a/devel/cxxtools/files/patch-src-tcpsocketimpl.h
+++ b/devel/cxxtools/files/patch-src_tcpsocketimpl.h
@@ -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>