2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=fso-gsm0710muxd
12 PKG_REV
:=aae188c6b03d1fac8e4b5e4abe99235210ae6e25
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=git
://git.freesmartphone.org
/gsm0710muxd.git
18 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_SOURCE_VERSION
:=$(PKG_REV
)
21 include $(INCLUDE_DIR
)/package.mk
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
26 define Package
/fso-gsm0710muxd
29 TITLE
:=GSM multiplexing daemon
30 URL
:=http
://www.freesmartphone.org
31 DEPENDS
:=+glib2
+dbus
+libdbus-glib
34 define Package
/fso-gsm0710muxd
/description
35 gsm0710muxd is a user space multiplexer for GSM according to the GSM
07.10 specification.
38 define Build
/Configure
39 (cd
$(PKG_BUILD_DIR
) && \
40 $(CP
) $(SCRIPT_DIR
)/config.
{guess
,sub
} $(PKG_BUILD_DIR
)/ && \
43 $(CONFIGURE_ARGS_XTRA
) \
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)" \
52 rm -f
$(STAGING_DIR_HOST
)/usr
/bin
/dbus-binding-tool
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
61 $(eval
$(call RequireCommand
,dbus-binding-tool
, \
62 Command
<dbus-binding-tool
> not found
- please
install GLIB dbus-binding-tool \
65 $(eval
$(call BuildPackage
,fso-gsm0710muxd
))