added fso gsm multiplexer daemon
[openwrt/svn-archive/archive.git] / phone / gsm0710muxd / Makefile
1 #
2 # Copyright (C) 2006 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:=gsm0710muxd
11 PKG_VERSION:=0.9.2.2
12 PKG_REV:=95151f9e2fe37e0989b981027deefa3821a3b4e5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=git://git.freesmartphone.org/gsm0710muxd.git
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include -I$(STAGING_DIR)/usr/lib/libiconv/include
24 EXTRA_LDFLAGS+=-lintl -L$(STAGING_DIR)/usr/lib/libintl/lib -liconv -L$(STAGING_DIR)/usr/lib/libiconv/lib
25
26 define Package/gsm0710muxd
27 SECTION:=phone
28 CATEGORY:=Phone
29 TITLE:=GSM multiplexing daemon
30 DEPENDS:=python-core +dbus-python +python-gobject +pyserial +pyyaml +gst-python
31 URL:=http://www.freesmartphone.org
32 endef
33
34 define Package/gsm0710muxd/description
35 gsm0710muxd is a user space multiplexer for GSM according to the GSM 07.10 specification.
36 endef
37
38 define Build/Configure
39 mkdir -p $(STAGING_DIR_HOST)/usr/bin
40 ln -sf `which dbus-binding-tool` $(STAGING_DIR_HOST)/usr/bin/
41 (cd $(PKG_BUILD_DIR) && \
42 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
43 $(CONFIGURE_VARS) \
44 ./autogen.sh \
45 $(CONFIGURE_ARGS_XTRA) \
46 $(CONFIGURE_ARGS) \
47 );
48 endef
49
50 define Build/Compile
51 DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) install
52 rm -f $(STAGING_DIR_HOST)/usr/bin/dbus-binding-tool
53 endef
54
55 define Package/gsm0710muxd/install
56 $(INSTALL_DIR) $(1)/etc/init.d
57 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
58 $(INSTALL_BIN) ./files/gsm0710muxd.init $(1)/etc/init.d/gsm0710muxd
59 endef
60
61 $(eval $(call BuildPackage,gsm0710muxd))
62 $(eval $(call RequireCommand,dbus-binding-tool, \
63 Command <dbus-binding-tool> not found - please install dbus-binding-tool \
64 ))