Fri Apr 29 11:54:06 2016 UTC ()
Import libfilezilla-0.5.0 as net/libfilezilla.

libfilezilla is a free, open source C++ library, offering some basic
functionality to build high-performing, platform-independent programs.
Some of the highlights include:

* A typesafe, multi-threaded event system that's very simple to use
  yet extremely efficient
* Timers for periodic events
* A datetime class that not only tracks timestamp but also their
  accuracy, which simplifies dealing with timestamps originating from
  different sources
* Simple process handling for spawning child processes with redirected
  I/O


(wiz)
diff -r0 -r1.1 pkgsrc/net/libfilezilla/DESCR
diff -r0 -r1.1 pkgsrc/net/libfilezilla/Makefile
diff -r0 -r1.1 pkgsrc/net/libfilezilla/PLIST
diff -r0 -r1.1 pkgsrc/net/libfilezilla/buildlink3.mk
diff -r0 -r1.1 pkgsrc/net/libfilezilla/distinfo
diff -r0 -r1.1 pkgsrc/net/libfilezilla/patches/patch-lib_string.cpp

File Added: pkgsrc/net/libfilezilla/DESCR
libfilezilla is a free, open source C++ library, offering some basic
functionality to build high-performing, platform-independent programs.
Some of the highlights include:

* A typesafe, multi-threaded event system that's very simple to use
  yet extremely efficient
* Timers for periodic events
* A datetime class that not only tracks timestamp but also their
  accuracy, which simplifies dealing with timestamps originating from
  different sources
* Simple process handling for spawning child processes with redirected
  I/O

File Added: pkgsrc/net/libfilezilla/Makefile
# $NetBSD: Makefile,v 1.1 2016/04/29 11:54:06 wiz Exp $

DISTNAME=	libfilezilla-0.5.0
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=filezilla/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://lib.filezilla-project.org/
COMMENT=	Library for building high-performing, platform-independent programs
LICENSE=	gnu-gpl-v2

GNU_CONFIGURE=	yes
USE_TOOLS+=	pkg-config
USE_LANGUAGES=	c c++

PKGCONFIG_OVERRIDE+=	lib/libfilezilla.pc.in

.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/net/libfilezilla/PLIST
@comment $NetBSD: PLIST,v 1.1 2016/04/29 11:54:06 wiz Exp $
include/libfilezilla/apply.hpp
include/libfilezilla/event.hpp
include/libfilezilla/event_handler.hpp
include/libfilezilla/event_loop.hpp
include/libfilezilla/file.hpp
include/libfilezilla/glue/wx.hpp
include/libfilezilla/iputils.hpp
include/libfilezilla/libfilezilla.hpp
include/libfilezilla/local_filesys.hpp
include/libfilezilla/mutex.hpp
include/libfilezilla/optional.hpp
include/libfilezilla/private/defs.hpp
include/libfilezilla/private/visibility.hpp
include/libfilezilla/private/windows.hpp
include/libfilezilla/process.hpp
include/libfilezilla/recursive_remove.hpp
include/libfilezilla/shared.hpp
include/libfilezilla/string.hpp
include/libfilezilla/thread.hpp
include/libfilezilla/time.hpp
include/libfilezilla/util.hpp
include/libfilezilla/version.hpp
lib/libfilezilla.la
lib/pkgconfig/libfilezilla.pc

File Added: pkgsrc/net/libfilezilla/buildlink3.mk
# $NetBSD: buildlink3.mk,v 1.1 2016/04/29 11:54:06 wiz Exp $

BUILDLINK_TREE+=	libfilezilla

.if !defined(LIBFILEZILLA_BUILDLINK3_MK)
LIBFILEZILLA_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.libfilezilla+=	libfilezilla>=0.5.0
BUILDLINK_PKGSRCDIR.libfilezilla?=	../../net/libfilezilla
.endif	# LIBFILEZILLA_BUILDLINK3_MK

BUILDLINK_TREE+=	-libfilezilla

File Added: pkgsrc/net/libfilezilla/distinfo
$NetBSD: distinfo,v 1.1 2016/04/29 11:54:06 wiz Exp $

SHA1 (libfilezilla-0.5.0.tar.bz2) = dadd4c7a45ad913ed1820d6cd5e8d72d559c1212
RMD160 (libfilezilla-0.5.0.tar.bz2) = bf92d8f127271482b189cd544108ff1eb16848f9
SHA512 (libfilezilla-0.5.0.tar.bz2) = 24116fc6808f4d62fad1fc3ba15d3fc51261a2dc13ac6c5c6de71fa0cfce4bd328cc885974689f7f6549843167ba3ecee3febff64f9aba1ca71498b89ec93342
Size (libfilezilla-0.5.0.tar.bz2) = 374549 bytes
SHA1 (patch-lib_string.cpp) = 20e08651670e7b754ff71ba5fce8ce328e47b115

File Added: pkgsrc/net/libfilezilla/patches/Attic/patch-lib_string.cpp
$NetBSD: patch-lib_string.cpp,v 1.1 2016/04/29 11:54:06 wiz Exp $

Fix build on NetBSD with iconv's second argument being const char **.

--- lib/string.cpp.orig	2016-04-15 07:52:15.000000000 +0000
+++ lib/string.cpp
@@ -111,7 +111,7 @@ std::wstring to_wstring_from_utf8(std::s
 			char* out_buf = new char[out_len];
 			char* out_p = out_buf;
 
-			size_t r = iconv(cd, &in_p, &in_len, &out_p, &out_len);
+			size_t r = iconv(cd, (const char **)&in_p, &in_len, &out_p, &out_len);
 
 			if (r != static_cast<size_t>(-1)) {
 				ret.assign(reinterpret_cast<wchar_t*>(out_buf), reinterpret_cast<wchar_t*>(out_p));
@@ -175,7 +175,7 @@ std::string FZ_PUBLIC_SYMBOL to_utf8(std
 			char* out_buf = new char[out_len];
 			char* out_p = out_buf;
 
-			size_t r = iconv(cd, &in_p, &in_len, &out_p, &out_len);
+			size_t r = iconv(cd, (const char **)&in_p, &in_len, &out_p, &out_len);
 
 			if (r != static_cast<size_t>(-1)) {
 				ret.assign(out_buf, out_p);