pkgsrc/net/aria2/Makefile
ryoon 486bdc5053 Update to 1.30.0
* Update HOMEPAGE

Chagnelog:
aria2 1.30.0
============

Release Note
------------

This release fixes several bugs.  See Changes below for detailed bug
fixes.  This release adds an ability to expand `${HOME}` to user's
home directory in several options.  It would be useful when used in
configuration file.  -S option against torrent file now prints out DHT
nodes.

Changes
-------

* mingw: Use sqlite 3.15.2

* Fix bug that --disable-websocket causes build error

* Fix bug that lower bound of optimize-concurrent-downloads becomes 1

  GH-798

* Print DHT nodes with -S option

  GH-795

* Take into account address family when resolving DHT node address

  GH-794

* Allow block device file to -i option

  GH-785

* Expand `${HOME}` to user's home directory in several options

  The following options implement this substitution:

  * --ca-certificate
  * --certificate
  * --dht-file-path
  * --dht-file-path6
  * --dir
  * --input-file
  * --load-cookies
  * --log
  * --metalink-file
  * --netrc-path
  * --on-bt-download-complete
  * --on-download-complete
  * --on-download-error
  * --on-download-start
  * --on-download-stop
  * --on-download_pause
  * --out
  * --private-key
  * --rpc-certificate
  * --rpc-private-key
  * --save-cookies
  * --save-session
  * --server-stat-if
  * --server-stat-of
  * --torrent-file

  GH-780

* Document that libaria2 is not thread safe

  GH-775

* configure: Use pkg-config to find libs whenever possible

  Use pkg-config to find cppunit, libxml2 and expat. All those
  libraries provide pkg-config files, and in all of those cases the
  pkg-config macro is superior to the custom macros used currently.

  The advantages of pkg-config files include:

  - Explicit static linking support via --static. Currently, e.g.
    'xml2-config --libs' prints all libraries needed for static
    linking when doing dynamic linking unnecessary, resulting in
    unnecessary direct deps.

  - Better cross-build support. You don't have to build the additional
    *-config tools for target.

  - Better multilib support. Per-ABI pkgconfig directories are
    commonly supported while packages usually fail to look for
    per-CHOST *-config variants.

  - Better override support. The current macros allow little to no
    result overrides, the pkg-config macros let you pass FOO_CFLAGS
    and FOO_LIBS manually.

  - Cleaner version checks. The code used in libxml.m4 is really
    creepy.

  Patch from Michał Górny

  GH-773

* WinTLS: Rewrite writeData

  We re-wrote WinTLSSession::writeData.  The major points are:

  * Buffer is now preallocated once handshake is finished.
    Previously, they are allocated each time when we send one TLS
    record.

  * Schannel uses header, body and trailer for each secBuffer.  Now we
    send them off at once using WSASend which is windows counterpart
    of sendv.  Previously, we do memmove if some of them are
    truncated.

  * We don't try to send application data in
    WinTLSSession::closeConnection, since semantically we need same
    application data used to create TLS record before.  Using 0 length
    data to finish sending buffered data looks like a hack.

  GH-772
2017-01-01 08:42:45 +00:00

52 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.67 2017/01/01 08:42:45 ryoon Exp $
DISTNAME= aria2-1.30.0
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=aria2/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://aria2.github.io/
COMMENT= Multi-threaded, multi-protocol, flexible download accelerator
LICENSE= gnu-gpl-v2
GITHUB_PROJECT= aria2
GITHUB_RELEASE= release-${PKGVERSION_NOREV}
# Minimum requirement is 4.6.4
GCC_REQD+= 4.6
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= bison msgfmt msgmerge xgettext
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-bittorrent
CONFIGURE_ARGS+= --enable-metalink
CONFIGURE_ARGS+= --with-included-gettext=no
CONFIGURE_ARGS+= --with-libexpat
CONFIGURE_ARGS+= --without-libxml2
CONFIGURE_ARGS.SunOS+= --disable-epoll
GCC_REQD+= 3.4
TEST_TARGET= check
USE_FEATURES= getopt_long snprintf
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
BUILDLINK_DEPMETHOD.cppunit= build
BUILDLINK_API_DEPENDS.cppunit+= cppunit>=1.10.2
. include "../../devel/cppunit/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-xmltest
.endif
.include "options.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../net/libcares/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"