50e63d67ab
Instead of hardcoding the flags needed for libtirpc, use pkg-config. The linker flags are added to LIBS rather than LDFLAGS, which is more correct in case of static builds. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
23 lines
697 B
Makefile
23 lines
697 B
Makefile
################################################################################
|
|
#
|
|
# argus
|
|
#
|
|
################################################################################
|
|
|
|
ARGUS_VERSION = 3.0.8
|
|
ARGUS_SITE = http://qosient.com/argus/src
|
|
ARGUS_DEPENDENCIES = libpcap
|
|
ARGUS_CONF_ENV = arg_cv_sys_errlist=yes
|
|
# Code is really v2+ though COPYING is v3 so ship README to avoid confusion
|
|
ARGUS_LICENSE = GPLv2+
|
|
ARGUS_LICENSE_FILES = README
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
|
ARGUS_DEPENDENCIES += libtirpc host-pkgconf
|
|
ARGUS_CONF_ENV += \
|
|
CFLAGS="$(TARGET_CFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`" \
|
|
LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|