summaryrefslogtreecommitdiff
path: root/package/miax
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/miax
Initial import
Diffstat (limited to 'package/miax')
-rw-r--r--package/miax/Config.in12
-rw-r--r--package/miax/Makefile30
-rw-r--r--package/miax/ipkg/miax.control5
-rw-r--r--package/miax/patches/01-cross.patch24
4 files changed, 71 insertions, 0 deletions
diff --git a/package/miax/Config.in b/package/miax/Config.in
new file mode 100644
index 000000000..0339f0c15
--- /dev/null
+++ b/package/miax/Config.in
@@ -0,0 +1,12 @@
+config ADK_PACKAGE_MIAX
+ prompt "miax.............................. A console iax (asterisk) client"
+ tristate
+ default n
+ select ADK_PACKAGE_BLUEZ
+ select ADK_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/package/miax/Makefile b/package/miax/Makefile
new file mode 100644
index 000000000..11e0089a7
--- /dev/null
+++ b/package/miax/Makefile
@@ -0,0 +1,30 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= miax
+PKG_VERSION:= 1.4
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 44f0d2ef46ee2697d890b7b96846adc7
+MASTER_SITES:= http://mesh.dl.sourceforge.net/sourceforge/miax/
+DISTFILES:= ${PKG_NAME}_${PKG_VERSION}.tar.gz
+WRKDIST= ${WRKDIR}/${PKG_NAME}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,MIAX,miax,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+BUILD_STYLE:= auto
+MAKE_FLAGS+= CC="${TARGET_CC}" \
+ OFLAGS="${TCFLAGS}" \
+ CPPFLAGS="${TCPPFLAGS}" \
+ LDFLAGS="${TLDFLAGS}" \
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_MIAX}/usr/bin
+ ${INSTALL_BIN} ${WRKBUILD}/miax ${IDIR_MIAX}/usr/bin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/miax/ipkg/miax.control b/package/miax/ipkg/miax.control
new file mode 100644
index 000000000..78e47f566
--- /dev/null
+++ b/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/package/miax/patches/01-cross.patch b/package/miax/patches/01-cross.patch
new file mode 100644
index 000000000..f47c1101d
--- /dev/null
+++ b/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