2013-03-11 02:23:14 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# dhcpcd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-04-19 17:22:54 +02:00
|
|
|
DHCPCD_VERSION = 6.8.1
|
2013-03-11 02:23:14 +01:00
|
|
|
DHCPCD_SOURCE = dhcpcd-$(DHCPCD_VERSION).tar.bz2
|
2013-11-08 13:26:52 +01:00
|
|
|
DHCPCD_SITE = http://roy.marples.name/downloads/dhcpcd
|
2014-06-18 00:07:46 +02:00
|
|
|
DHCPCD_DEPENDENCIES = host-pkgconf
|
2013-03-11 02:23:14 +01:00
|
|
|
DHCPCD_LICENSE = BSD-2c
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
DHCPCD_CONFIG_OPTS += --enable-static
|
2014-06-18 00:07:46 +02:00
|
|
|
endif
|
|
|
|
|
2013-11-08 13:26:52 +01:00
|
|
|
ifeq ($(BR2_USE_MMU),)
|
2015-03-31 09:21:57 +02:00
|
|
|
DHCPCD_CONFIG_OPTS += --disable-fork
|
2013-11-08 13:26:52 +01:00
|
|
|
endif
|
|
|
|
|
2013-03-11 02:23:14 +01:00
|
|
|
define DHCPCD_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); \
|
2015-04-29 22:54:11 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) ./configure \
|
|
|
|
--os=linux \
|
2014-09-27 21:32:50 +02:00
|
|
|
$(DHCPCD_CONFIG_OPTS) )
|
2013-03-11 02:23:14 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define DHCPCD_BUILD_CMDS
|
2013-11-08 13:26:52 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) \
|
2013-03-11 02:23:14 +01:00
|
|
|
-C $(@D) all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define DHCPCD_INSTALL_TARGET_CMDS
|
2014-11-18 18:01:56 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install DESTDIR=$(TARGET_DIR)
|
2013-03-11 02:23:14 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
# NOTE: Even though this package has a configure script, it is not generated
|
|
|
|
# using the autotools, so we have to use the generic package infrastructure.
|
|
|
|
|
2013-09-11 13:05:01 +02:00
|
|
|
$(eval $(generic-package))
|