diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-11-30 00:59:59 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-11-30 00:59:59 +0000 |
commit | fb7ceddc92a4023b0819094df526a8b6e13b90c1 (patch) | |
tree | e531835a898db64f97f55a03e89893f823eb3c51 /openwrt/package/miax | |
parent | 1505099c8aac125804f4c4dbbc92ae6767c86da5 (diff) | |
download | mtk-20170518-fb7ceddc92a4023b0819094df526a8b6e13b90c1.zip mtk-20170518-fb7ceddc92a4023b0819094df526a8b6e13b90c1.tar.gz mtk-20170518-fb7ceddc92a4023b0819094df526a8b6e13b90c1.tar.bz2 |
add miax package (thanks to Markus Becker)
SVN-Revision: 2570
Diffstat (limited to 'openwrt/package/miax')
-rw-r--r-- | openwrt/package/miax/Config.in | 12 | ||||
-rw-r--r-- | openwrt/package/miax/Makefile | 36 | ||||
-rw-r--r-- | openwrt/package/miax/ipkg/miax.control | 5 | ||||
-rw-r--r-- | openwrt/package/miax/patches/01-cross.patch | 24 |
4 files changed, 77 insertions, 0 deletions
diff --git a/openwrt/package/miax/Config.in b/openwrt/package/miax/Config.in new file mode 100644 index 0000000..9cd66b1 --- /dev/null +++ b/openwrt/package/miax/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_MIAX + prompt "miax.............................. A console iax (asterisk) client" + tristate + default m if CONFIG_DEVEL + select BR2_PACKAGE_BLUEZ_LIBS + select BR2_PACKAGE_LIBPTHREAD + help + miax is a console iax (asterisk) client, it can work with + a soundcard as a normal voip phone, taking input/output from + keyboard, analog/gsm/isdn modem or bluetooth phones. + + http://www.eja.it/?l=gpl&testo=miax diff --git a/openwrt/package/miax/Makefile b/openwrt/package/miax/Makefile new file mode 100644 index 0000000..e121f8d --- /dev/null +++ b/openwrt/package/miax/Makefile @@ -0,0 +1,36 @@ +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=miax +PKG_VERSION:=1.4 +PKG_RELEASE:=1 +PKG_MD5SUM:=44f0d2ef46ee2697d890b7b96846adc7 + +PKG_SOURCE_URL:=http://mesh.dl.sourceforge.net/sourceforge/miax/ +PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) + +include $(TOPDIR)/package/rules.mk + +$(eval $(call PKG_template,MIAX,miax,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +$(PKG_BUILD_DIR)/.configured: + touch $@ + +$(PKG_BUILD_DIR)/.built: + $(MAKE) -C "$(PKG_BUILD_DIR)" \ + CC="$(TARGET_CC)" \ + OFLAGS="$(TARGET_CFLAGS)" \ + CPPFLAGS="-I$(STAGING_DIR)/usr/include" \ + LDFLAGS="-L$(STAGING_DIR)/usr/lib" \ + all + touch $@ + +$(IPKG_MIAX): + install -d -m0755 $(IDIR_MIAX)/usr/bin + install -m0755 $(PKG_BUILD_DIR)/miax $(IDIR_MIAX)/usr/bin/ + $(RSTRIP) $(IDIR_MIAX) + $(IPKG_BUILD) $(IDIR_MIAX) $(PACKAGE_DIR) diff --git a/openwrt/package/miax/ipkg/miax.control b/openwrt/package/miax/ipkg/miax.control new file mode 100644 index 0000000..78e47f5 --- /dev/null +++ b/openwrt/package/miax/ipkg/miax.control @@ -0,0 +1,5 @@ +Package: miax +Priority: optional +Section: net +Description: A console iax (asterisk) client +Depends: kmod-bluetooth, bluez-libs, libpthread diff --git a/openwrt/package/miax/patches/01-cross.patch b/openwrt/package/miax/patches/01-cross.patch new file mode 100644 index 0000000..f47c110 --- /dev/null +++ b/openwrt/package/miax/patches/01-cross.patch @@ -0,0 +1,24 @@ +diff -ruN miax-1.4-old/Makefile miax-1.4-new/Makefile +--- miax-1.4-old/Makefile 2005-04-27 18:56:13.000000000 +0200 ++++ miax-1.4-new/Makefile 2005-11-30 01:07:21.000000000 +0100 +@@ -1,4 +1,5 @@ +-CFLAGS= -Iiax/ -Igsm/inc -DIAXC_IAX2 -DLIBIAX -g -DPOSIXSLEEP -DLINUX -O2 ++OFLAGS= -02 -g ++CFLAGS= -Iiax/ -Igsm/inc $(CPPFLAGS) -DIAXC_IAX2 -DLIBIAX -DPOSIXSLEEP -DLINUX $(OFLAGS) + SYSLIBS=-lpthread -lm -lbluetooth + + +@@ -32,11 +33,10 @@ + miax.o + + all: $(OBJS) +- gcc $(OBJS) $(CFLAGS) $(SYSLIBS) -o miax +- cp miax /bin/miax ++ $(CC) $(OBJS) $(CFLAGS) $(LDFLAGS) $(SYSLIBS) -o miax + + static: $(OBJS) bluetooth.o +- gcc $(OBJS) $(CFLAGS) $(SYSLIBS) -static -o miax ++ $(CC) $(OBJS) $(CFLAGS) $(LDFLAGS) $(SYSLIBS) -static -o miax + + clean: + rm -f $(OBJS) miax |