aboutsummaryrefslogtreecommitdiff
path: root/net/asterisk-bristuff/files/patch-cdr::Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk-bristuff/files/patch-cdr::Makefile')
-rw-r--r--net/asterisk-bristuff/files/patch-cdr::Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/net/asterisk-bristuff/files/patch-cdr::Makefile b/net/asterisk-bristuff/files/patch-cdr::Makefile
new file mode 100644
index 000000000000..59db17a59b8b
--- /dev/null
+++ b/net/asterisk-bristuff/files/patch-cdr::Makefile
@@ -0,0 +1,31 @@
+
+$FreeBSD$
+
+--- cdr/Makefile.orig Tue Aug 19 19:42:30 2003
++++ cdr/Makefile Fri Oct 17 12:42:54 2003
+@@ -18,21 +18,14 @@
+ #
+ # MySQL stuff... Autoconf anyone??
+ #
+-MODS+=$(shell if [ -d /usr/local/mysql/include ] || [ -d /usr/include/mysql ] || [ -d /usr/local/include/mysql ] || [ -d /opt/mysql/include ]; then echo "cdr_mysql.so"; fi)
+-CFLAGS+=$(shell if [ -d /usr/local/mysql/include ]; then echo "-I/usr/local/mysql/include"; fi)
+-CFLAGS+=$(shell if [ -d /usr/include/mysql ]; then echo "-I/usr/include/mysql"; fi)
+-CFLAGS+=$(shell if [ -d /usr/local/include/mysql ]; then echo "-I/usr/local/include/mysql"; fi)
+-CFLAGS+=$(shell if [ -d /opt/mysql/include/mysql ]; then echo "-I/opt/mysql/include/mysql"; fi)
+-MLFLAGS=
+-MLFLAGS+=$(shell if [ -d /usr/lib/mysql ]; then echo "-L/usr/lib/mysql"; fi)
+-MLFLAGS+=$(shell if [ -d /usr/local/mysql/lib ]; then echo "-L/usr/local/mysql/lib"; fi)
+-MLFLAGS+=$(shell if [ -d /usr/local/lib/mysql ]; then echo "-L/usr/local/lib/mysql"; fi)
+-MLFLAGS+=$(shell if [ -d /opt/mysql/lib/mysql ]; then echo "-L/opt/mysql/lib/mysql"; fi)
++MODS+=cdr_mysql.so
++CFLAGS+=-I${LOCALBASE}/include/mysql
++MLFLAGS+=-L${LOCALBASE}/lib/mysql
+
+ all: depend $(MODS)
+
+ install: all
+- for x in $(MODS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done
++ for x in $(MODS); do $(BSD_INSTALL_PROGRAM) $$x $(MODULES_DIR) ; done
+
+ clean:
+ rm -f *.so *.o .depend