packages/net/arpd/Makefile
florian 9458510650 arpd: fix passing our CFLAGS
Our CFLAGS were not properly passed down to the Makefile, fix that.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@39936 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-17 17:14:23 +00:00

52 lines
1.1 KiB
Makefile

#
# Copyright (C) 2006-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=arpd
PKG_VERSION:=0.2
PKG_RELEASE:=3
PKG_MD5SUM:=e2911fa9de1b92ef50deda1489ae944d
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://niels.xtdnet.nl/honeyd
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/arpd
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpcap +libdnet +libevent2 +librt
TITLE:=A daemon to fake ARP replies
URL:=http://niels.xtdnet.nl/honeyd/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); touch \
stamp-h.in \
config.h.in \
);
$(call Build/Configure/Default, \
--with-libdnet="$(STAGING_DIR)/usr" \
--with-libevent="$(STAGING_DIR)/usr" \
--with-libpcap="$(STAGING_DIR)/usr" \
)
endef
MAKE_FLAGS += \
INCLUDES="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
LIBS="$(TARGET_LDFLAGS) -lpcap -ldnet -levent"
define Package/arpd/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/arpd $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,arpd))