2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-05-28 15:36:48 +02:00
|
|
|
#
|
|
|
|
# xinetd
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2012-08-04 04:57:46 +02:00
|
|
|
XINETD_VERSION = 2.3.15
|
|
|
|
XINETD_SOURCE = xinetd-$(XINETD_VERSION).tar.gz
|
|
|
|
XINETD_SITE = http://www.xinetd.org
|
|
|
|
XINETD_LICENSE = xinetd license
|
|
|
|
XINETD_LICENSE_FILES = COPYRIGHT
|
2012-05-28 15:36:48 +02:00
|
|
|
|
2012-11-04 08:34:18 +01:00
|
|
|
XINETD_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
|
|
|
|
# Three cases here:
|
|
|
|
# 1. We have libtirpc, use it by passing special flags
|
|
|
|
# 2. We have native RPC support, use it, no need to pass special
|
|
|
|
# flags (so this case 2 is implicit and not visible below)
|
|
|
|
# 3. We don't have RPC support, pass -DNO_RPC to disable it
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
|
|
|
XINETD_DEPENDENCIES += libtirpc
|
|
|
|
XINETD_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
|
|
|
|
XINETD_LIBS += -ltirpc
|
|
|
|
else ifeq ($(BR2_TOOLCHAIN_HAS_NATIVE_RPC),)
|
|
|
|
XINETD_CFLAGS += -DNO_RPC
|
2012-06-16 22:58:26 +02:00
|
|
|
endif
|
|
|
|
|
2012-11-04 08:34:18 +01:00
|
|
|
XINETD_CONF_ENV += \
|
|
|
|
CFLAGS="$(XINETD_CFLAGS)" \
|
|
|
|
LIBS="$(XINETD_LIBS)"
|
|
|
|
|
2012-06-18 17:18:32 +02:00
|
|
|
XINETD_MAKE_OPT = AR="$(TARGET_AR)"
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|