933d44784af593a008b10c57f5d979e927ed6e17
[openwrt/svn-archive/archive.git] / phone / fso-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:=fso-gsm0710muxd
11 PKG_VERSION:=20090121
12 PKG_REV:=aae188c6b03d1fac8e4b5e4abe99235210ae6e25
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/fso-gsm0710muxd
27 SECTION:=phone
28 CATEGORY:=Phone
29 TITLE:=GSM multiplexing daemon
30 URL:=http://www.freesmartphone.org
31 DEPENDS:=+glib2 +dbus +libdbus-glib
32 endef
33
34 define Package/fso-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 (cd $(PKG_BUILD_DIR) && \
40 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
41 $(CONFIGURE_VARS) \
42 ./autogen.sh \
43 $(CONFIGURE_ARGS_XTRA) \
44 $(CONFIGURE_ARGS) \
45 );
46 endef
47
48 define Build/Compile
49 DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \
50 DBUS_BINDING_TOOL="LD_LIBRARY_PATH=/usr/lib:/usr/local/lib $(shell which dbus-binding-tool)" \
51 install
52 rm -f $(STAGING_DIR_HOST)/usr/bin/dbus-binding-tool
53 endef
54
55 define Package/fso-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 RequireCommand,dbus-binding-tool, \
62 Command <dbus-binding-tool> not found - please install GLIB dbus-binding-tool \
63 ))
64
65 $(eval $(call BuildPackage,fso-gsm0710muxd))