get rid of $Id$ - it has never helped us and it has broken too many patches ;)
[openwrt/svn-archive/archive.git] / package / ead / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ead
11 PKG_RELEASE:=1
12
13 PKG_BUILD_DEPENDS:=libpcap
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/ead
18 SECTION:=net
19 CATEGORY:=Base system
20 TITLE:=Emergency Access Daemon
21 URL:=http://bridge.sourceforge.net/
22 endef
23
24 define Package/ead/description
25 Provides remote access to your device even if IP and firewall
26 configuration settings are defunct
27 endef
28
29 CONFIGURE_PATH = tinysrp
30
31 TARGET_CFLAGS += \
32 -I$(PKG_BUILD_DIR) \
33 -I$(PKG_BUILD_DIR)/tinysrp \
34 $(TARGET_CPPFLAGS)
35
36 MAKE_FLAGS += \
37 CONFIGURE_ARGS="$(CONFIGURE_ARGS)" \
38 LIBS="$(PKG_BUILD_DIR)/tinysrp/libtinysrp.a" \
39 LIBS_EAD="$(PKG_BUILD_DIR)/tinysrp/libtinysrp.a $(STAGING_DIR)/usr/lib/libpcap.a" \
40 CFLAGS="$(TARGET_CFLAGS)"
41
42 define Build/Prepare
43 mkdir -p $(PKG_BUILD_DIR)
44 $(CP) ./src/* $(PKG_BUILD_DIR)/
45 endef
46
47 define Package/ead/install
48 $(INSTALL_DIR) $(1)/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ead $(1)/sbin/
50 endef
51
52 $(eval $(call BuildPackage,ead))