[phone] use nls.mk
[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 include $(INCLUDE_DIR)/nls.mk
23
24 EXTRA_CFLAGS+=-I$(ICONV_PREFIX)/include -I$(INTL_PREFIX)/include
25 EXTRA_LDFLAGS+=-L$(ICONV_PREFIX)/lib -liconv $(if $(INTL_FULL),-L$(INTL_PREFIX)/lib -lintl)
26
27 define Package/fso-gsm0710muxd
28 SECTION:=phone
29 CATEGORY:=Phone
30 TITLE:=GSM multiplexing daemon
31 URL:=http://www.freesmartphone.org
32 DEPENDS:=+glib2 +dbus +libdbus-glib
33 endef
34
35 define Package/fso-gsm0710muxd/description
36 gsm0710muxd is a user space multiplexer for GSM according to the GSM 07.10 specification.
37 endef
38
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR) && \
41 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
42 $(CONFIGURE_VARS) \
43 ./autogen.sh \
44 $(CONFIGURE_ARGS_XTRA) \
45 $(CONFIGURE_ARGS) \
46 );
47 endef
48
49 define Build/Compile
50 DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \
51 DBUS_BINDING_TOOL="LD_LIBRARY_PATH=/usr/lib:/usr/local/lib $(shell which dbus-binding-tool)" \
52 install
53 rm -f $(STAGING_DIR_HOST)/usr/bin/dbus-binding-tool
54 endef
55
56 define Package/fso-gsm0710muxd/install
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
59 $(INSTALL_BIN) ./files/gsm0710muxd.init $(1)/etc/init.d/gsm0710muxd
60 endef
61
62 $(eval $(call RequireCommand,dbus-binding-tool, \
63 Command <dbus-binding-tool> not found - please install GLIB dbus-binding-tool \
64 ))
65
66 $(eval $(call BuildPackage,fso-gsm0710muxd))