1################################################################################ 2# 3# libnids 4# 5################################################################################ 6 7LIBNIDS_VERSION = 1.24 8LIBNIDS_SITE = https://sourceforge.net/projects/libnids/files/libnids/$(LIBNIDS_VERSION) 9LIBNIDS_LICENSE = GPL-2.0 10LIBNIDS_LICENSE_FILES = COPYING 11LIBNIDS_CPE_ID_VENDOR = libnids_project 12LIBNIDS_INSTALL_STAGING = YES 13LIBNIDS_DEPENDENCIES = host-pkgconf libpcap 14LIBNIDS_AUTORECONF = YES 15 16# disable libnet if not available 17# Tests in configure.in expect --with-libnet=$build_dir 18# not an installation patch like in our context. 19# We use with-libnet=yes to skip the unusual paths tests. 20# But 'LNETLIB' gets left out, so we need to define it ourselves. 21ifeq ($(BR2_PACKAGE_LIBNET),y) 22LIBNIDS_DEPENDENCIES += libnet 23LIBNIDS_CONF_OPTS += --enable-libnet --with-libnet=yes LNETLIB=-lnet 24else 25LIBNIDS_CONF_OPTS += --disable-libnet 26endif 27 28# disable libglib2 if not available 29# The test in configure.in is flawed: passing --enable-libglib would also 30# disable it. Only when neither is passed will the autodetection test be 31# executed. 32ifeq ($(BR2_PACKAGE_LIBGLIB2),y) 33LIBNIDS_DEPENDENCIES += libglib2 34else 35LIBNIDS_CONF_OPTS += --disable-libglib 36endif 37 38# hand-written Makefile.in, not using automake, needs a custom 39# variable for the installation path. 40LIBNIDS_INSTALL_STAGING_OPTS = install_prefix=$(STAGING_DIR) install 41LIBNIDS_INSTALL_TARGET_OPTS = install_prefix=$(TARGET_DIR) install 42 43$(eval $(autotools-package)) 44