2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-20081016.
tar.gz
15 PKG_SOURCE_URL
:=http
://www.wormulon.net
/smap
/
16 PKG_MD5SUM
:=814456ccc8fea5688382b7ec55fe44eb
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/smap-
$(PKG_VERSION
)/smap
21 include $(INCLUDE_DIR
)/package.mk
23 LIBTOOL
="$(STAGING_DIR)/host/bin/libtool"
29 TITLE
:=A SIP network discovery tool
30 MAINTAINER
:=Daniel Dickinson
<openwrt@cshore.neomailbox.net
>
31 URL
:=http
://www.wormulon.net
/smap
/
35 define Package
/smap
/description
36 Discovers and identifies SIP devices on the network including hardware
37 phones
, softphones
, PBX software
, and PBX equipment.
40 define Build
/Configure
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
47 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DRAW_SOCKET -DHAVE_RANDOM -DSMAP_OS=linux" \
48 LDFLAGS
="$(TARGET_LDFLAGS) -lm -lpthread" \
49 LIBTOOL
="$(LIBTOOL)" \
53 define Package
/smap
/install
54 $(INSTALL_DIR
) $(1)/usr
/bin
55 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/smap
$(1)/usr
/bin
56 $(INSTALL_DIR
) $(1)/usr
/share
/smap
57 $(CP
) $(PKG_BUILD_DIR
)/fingerprint.db
$(1)/usr
/share
/smap
60 $(eval
$(call BuildPackage
,smap
))