[package] openl2tp: fix library path
[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:=2
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 SUBMENU:=Telephony
29 TITLE:=A SIP network discovery tool
30 MAINTAINER:=Daniel Dickinson <openwrt@cshore.neomailbox.net>
31 URL:=http://www.wormulon.net/smap/
32 DEPENDS:=+libpthread
33 endef
34
35 define Package/smap/description
36 Discovers and identifies SIP devices on the network including hardware
37 phones, softphones, PBX software, and PBX equipment.
38 endef
39
40 # define Package/smap/conffiles
41 # /etc/config/smap
42 # endef
43
44 define Build/Configure
45 endef
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 CC="$(TARGET_CC)" \
50 LD="$(TARGET_LD)" \
51 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DRAW_SOCKET -DHAVE_RANDOM -DSMAP_OS=linux" \
52 LDFLAGS="$(TARGET_LDFLAGS) -lm -lpthread" \
53 LIBTOOL="$(LIBTOOL)" \
54 smap
55 endef
56
57 define Package/smap/install
58 $(INSTALL_DIR) $(1)/usr/bin
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/smap $(1)/usr/bin
60 $(INSTALL_DIR) $(1)/usr/share/smap
61 $(CP) $(PKG_BUILD_DIR)/fingerprint.db $(1)/usr/share/smap
62 endef
63
64 $(eval $(call BuildPackage,smap))