summaryrefslogtreecommitdiffstats
path: root/package/miax/patches/01-cross.patch
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-11-30 00:59:59 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-11-30 00:59:59 +0000
commitf0fbd29b199d4c6cd2c7f0406e7b6f9fe6bfa089 (patch)
tree262a8e0438c51efd4e1370dfea2a48dc49605cca /package/miax/patches/01-cross.patch
parentec8315f754bb48a2bf3336793ad84798331d7ee4 (diff)
add miax package (thanks to Markus Becker)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2570 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/miax/patches/01-cross.patch')
-rw-r--r--package/miax/patches/01-cross.patch24
1 files changed, 24 insertions, 0 deletions
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