@@ -1,15 +1,28 @@
--- chan_capi-1.0.2/Makefile.orig 2008-02-03 14:56:43.000000000 +0100
-+++ chan_capi-1.0.2/Makefile 2008-02-03 14:57:17.000000000 +0100
-@@ -36,7 +36,7 @@
++++ chan_capi-1.0.2/Makefile 2008-02-03 15:19:03.000000000 +0100
+@@ -24,6 +24,12 @@
+
+ V=0
+
++LIBSUFFIX=""
++OSARCH=$(shell uname -m)
++ifeq (${OSARCH},x86_64)
++LIBSUFFIX="64"
++endif
++
+ INSTALL_PREFIX=
+
+ ASTERISK_HEADER_DIR=$(INSTALL_PREFIX)/usr/include
+@@ -36,7 +42,7 @@
ASTERISK_HEADER_DIR=$(INSTALL_PREFIX)/usr/pkg/include
endif
-MODULES_DIR=$(INSTALL_PREFIX)/usr/lib/asterisk/modules
-+MODULES_DIR=$(DESTDIR)/usr/lib/asterisk/modules
++MODULES_DIR=$(DESTDIR)/usr/lib$(LIBSUFFIX)/asterisk/modules
ifeq (${OSNAME},FreeBSD)
MODULES_DIR=$(INSTALL_PREFIX)/usr/local/lib/asterisk/modules
-@@ -46,7 +46,7 @@
+@@ -46,7 +52,7 @@
MODULES_DIR=$(INSTALL_PREFIX)/usr/pkg/lib/asterisk/modules
endif
|