e57c8a3cc2ed04e67d1006f7db53b7b574d96c0c
[openwrt/svn-archive/archive.git] / net / smap / Makefile
1 #
2 # Copyright (C) 2009 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:=smap
11 PKG_VERSION:=0.6.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-20081016.tar.gz
15 PKG_SOURCE_URL:=http://www.wormulon.net/smap/
16 PKG_MD5SUM:=814456ccc8fea5688382b7ec55fe44eb
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/smap-$(PKG_VERSION)/smap
19 PKG_FIXUP = libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 LIBTOOL="$(STAGING_DIR)/host/bin/libtool"
24
25 define Package/smap
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=A SIP network discovery tool
29 URL:=http://www.wormulon.net/smap/
30 DEPENDS:=+libpthread
31 endef
32
33 define Package/smap/description
34 Discovers and identifies SIP devices on the network including hardware
35 phones, softphones, PBX software, and PBX equipment.
36 endef
37
38 # define Package/smap/conffiles
39 # /etc/config/smap
40 # endef
41
42 define Build/Configure
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 CC="$(TARGET_CC)" \
48 LD="$(TARGET_LD)" \
49 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DRAW_SOCKET -DHAVE_RANDOM -DSMAP_OS=linux" \
50 LDFLAGS="$(TARGET_LDFLAGS) -lm -lpthread" \
51 LIBTOOL="$(LIBTOOL)" \
52 smap
53 endef
54
55 define Package/smap/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/smap $(1)/usr/bin
58 $(INSTALL_DIR) $(1)/usr/share/smap
59 $(CP) $(PKG_BUILD_DIR)/fingerprint.db $(1)/usr/share/smap
60 endef
61
62 $(eval $(call BuildPackage,smap))