- upgrade paroli to recent git version - enable previously disabled modules <contacts...
[openwrt/svn-archive/feeds.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:=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/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/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) install
50 rm -f $(STAGING_DIR_HOST)/usr/bin/dbus-binding-tool
51 endef
52
53 define Package/gsm0710muxd/install
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
56 $(INSTALL_BIN) ./files/gsm0710muxd.init $(1)/etc/init.d/gsm0710muxd
57 endef
58
59 $(eval $(call BuildPackage,gsm0710muxd))
60 $(eval $(call RequireCommand,dbus-binding-tool, \
61 Command <dbus-binding-tool> not found - please install dbus-binding-tool \
62 ))