Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "GNU Transport Layer Security Library" |
| 2 | HOMEPAGE = "http://www.gnu.org/software/gnutls/" |
| 3 | BUGTRACKER = "https://savannah.gnu.org/support/?group=gnutls" |
| 4 | DEPENDS = "nettle" |
| 5 | |
| 6 | LICENSE = "GPLv3+ & LGPLv2.1+" |
| 7 | LICENSE_${PN} = "LGPLv2.1+" |
| 8 | LICENSE_${PN}-xx = "LGPLv2.1+" |
| 9 | LICENSE_${PN}-bin = "GPLv3+" |
| 10 | LICENSE_${PN}-openssl = "GPLv3+" |
| 11 | |
| 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ |
| 13 | file://COPYING.LESSER;md5=a6f89e2100d9b6cdffcea4f398e37343" |
| 14 | |
| 15 | |
| 16 | SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}" |
| 17 | |
| 18 | SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.xz" |
| 19 | |
| 20 | inherit autotools texinfo binconfig pkgconfig gettext lib_package |
| 21 | |
| 22 | EXTRA_OECONF="--disable-rpath \ |
| 23 | --with-included-libtasn1 \ |
| 24 | --enable-local-libopts \ |
| 25 | --with-libpthread-prefix=${STAGING_DIR_HOST}${prefix} \ |
| 26 | --disable-guile \ |
| 27 | --disable-crywrap \ |
| 28 | --without-p11-kit \ |
| 29 | " |
| 30 | |
| 31 | do_configure_prepend() { |
| 32 | for dir in . lib; do |
| 33 | rm -f ${dir}/aclocal.m4 ${dir}/m4/libtool.m4 ${dir}/m4/lt*.m4 |
| 34 | done |
| 35 | } |
| 36 | |
| 37 | PACKAGECONFIG ??= "zlib" |
| 38 | PACKAGECONFIG[tpm] = "--with-tpm, --without-tpm, trousers" |
| 39 | PACKAGECONFIG[zlib] = "--with-zlib, --without-zlib, zlib" |
| 40 | |
| 41 | PACKAGES =+ "${PN}-openssl ${PN}-xx" |
| 42 | |
| 43 | FILES_${PN}-dev += "${bindir}/gnutls-cli-debug" |
| 44 | FILES_${PN}-openssl = "${libdir}/libgnutls-openssl.so.*" |
| 45 | FILES_${PN}-xx = "${libdir}/libgnutlsxx.so.*" |
| 46 | |
| 47 | LDFLAGS_append_libc-uclibc += " -pthread" |
| 48 | |
| 49 | BBCLASSEXTEND = "native nativesdk" |