<commit_before>SECTION = "x11/network"
PR = "r5"

PACKAGES = "prismstumbler prismstumbler-frontend prismstumbler-doc"
DESCRIPTION = "Prismstumbler wireless LAN scanner"
LICENSE = "GPL"
DEPENDS = "libpcap gtk+ wireless-tools sqlite zlib"
RDEPENDS = "wireless-tools"

SRC_URI = "${SOURCEFORGE_MIRROR}/prismstumbler/${PN}-${PV}.tar.bz2 \
	file://bogoconf.patch;patch=1 \
	file://crosscompile.patch;patch=1 \
        file://libz.patch;patch=1;pnum=0"

inherit autotools pkgconfig

EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \
		--x-libraries=${STAGING_LIBDIR} \
		--with-libpcap=${STAGING_DIR}/${HOST_SYS} \
		--with-sqlite-includes=${STAGING_INCDIR} \
		--with-sqlite-libs=${STAGING_LIBDIR} \
		--without-athena"

CFLAGS =+ "-I${S}/include -D_GNU_SOURCE"

FILES_${PN} = "${bindir}/prismstumbler"

FILES_prismstumbler-frontend = "${bindir}/psfront ${bindir}/pst \
	                       ${datadir}/applications \
	                       ${datadir}/pixmaps ${docdir}/prismstumbler/help.txt \
                               ${sysconfdir}"
RDEPENDS_prismstumbler-frontend = "${PN}"

do_configure() {
  autotools_do_configure
  cd ${S}/src/gpsd
  autoreconf
  rm -f Makefile config.log config.cache
  ${S}/src/gpsd/configure \
                    --build=${BUILD_SYS} \
                    --host=${HOST_SYS} \
                    --target=${TARGET_SYS} \
                    --prefix=${prefix} \<commit_msg>prismstumbler: fix build against motif and recent linux-linux-headers, closes #2177<commit_after>SECTION = "x11/network"
PR = "r5"

PACKAGES = "prismstumbler prismstumbler-frontend prismstumbler-doc"
DESCRIPTION = "Prismstumbler wireless LAN scanner"
LICENSE = "GPL"
DEPENDS = "libpcap gtk+ wireless-tools sqlite zlib"
RDEPENDS = "wireless-tools"

SRC_URI = "${SOURCEFORGE_MIRROR}/prismstumbler/${PN}-${PV}.tar.bz2 \
	file://bogoconf.patch;patch=1 \
	file://crosscompile.patch;patch=1 \
        file://libz.patch;patch=1;pnum=0 \
	file://wireless.patch;patch=1"

inherit autotools pkgconfig

EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \
		--x-libraries=${STAGING_LIBDIR} \
		--with-libpcap=${STAGING_DIR}/${HOST_SYS} \
		--with-sqlite-includes=${STAGING_INCDIR} \
		--with-sqlite-libs=${STAGING_LIBDIR} \
		--without-athena \
		--without-motif"

CFLAGS =+ "-I${S}/include -D_GNU_SOURCE"

FILES_${PN} = "${bindir}/prismstumbler"

FILES_prismstumbler-frontend = "${bindir}/psfront ${bindir}/pst \
	                       ${datadir}/applications \
	                       ${datadir}/pixmaps ${docdir}/prismstumbler/help.txt \
                               ${sysconfdir}"
RDEPENDS_prismstumbler-frontend = "${PN}"

do_configure() {
  autotools_do_configure
  cd ${S}/src/gpsd
  autoreconf
  rm -f Makefile config.log config.cache
  ${S}/src/gpsd/configure \
                    --build=${BUILD_SYS} \
                    --host=${HOST_SYS} \
                    --target=${TARGET_SYS} \
                    --prefix=${prefix} \
{'fraction_non_alphanumeric': 0.16048962937776268, 'fraction_numerical': 0.008500510030601836, 'mean_word_length': 2.7477707006369427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2264707', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1069, 'n_words': 145}