Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | DESCRIPTION = "libTorrent is a BitTorrent library written in C++ for *nix, \ |
| 2 | with a focus on high performance and good code." |
| 3 | HOMEPAGE = "http://libtorrent.rakshasa.no/" |
| 4 | LICENSE = "GPL-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" |
| 6 | |
| 7 | DEPENDS = "zlib libsigc++-2.0 openssl cppunit" |
| 8 | |
| 9 | SRC_URI = "git://github.com/rakshasa/libtorrent \ |
| 10 | file://don-t-run-code-while-configuring-package.patch \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 11 | " |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 12 | SRCREV = "756f70010779927dc0691e1e722ed433d5d295e1" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 13 | |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 14 | PV = "0.13.8" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 15 | |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
Brad Bishop | 23eaf03 | 2019-11-20 05:15:02 -0500 | [diff] [blame] | 18 | PACKAGECONFIG ??= "instrumentation" |
| 19 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 20 | PACKAGECONFIG:remove:mipsarch = "instrumentation" |
| 21 | PACKAGECONFIG:remove:powerpc = "instrumentation" |
| 22 | PACKAGECONFIG:remove:riscv32 = "instrumentation" |
Brad Bishop | 23eaf03 | 2019-11-20 05:15:02 -0500 | [diff] [blame] | 23 | |
| 24 | PACKAGECONFIG[instrumentation] = "--enable-instrumentation,--disable-instrumentation," |
| 25 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 26 | inherit autotools pkgconfig |
| 27 | |
| 28 | EXTRA_OECONF = "--with-zlib=${STAGING_EXECPREFIXDIR}" |
| 29 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 30 | do_configure:prepend() { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 31 | (cd ${S}; ./autogen.sh; cd -) |
| 32 | } |