summaryrefslogtreecommitdiff
path: root/net/asterisk-app-ldap/files/patch-cflags.sh
blob: 66577ae7ccfb8d570e5aed95282297a5e1900c46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- cflags.sh.orig	Tue Apr 17 14:11:19 2007
+++ cflags.sh	Tue Apr 17 14:13:40 2007
@@ -11,6 +11,11 @@ else
   INCDIR=/usr/include/asterisk
 fi
 
+if [ ${OSARCH} = "FreeBSD" ]; then
+  INCDIR=/usr/local/include/asterisk
+  CFLAGS="${CFLAGS} -I/usr/local/include -L/usr/local/lib"
+fi
+
 CHANNEL_H=${INCDIR}/channel.h
 if [ "`grep 'struct ast_callerid cid' ${CHANNEL_H}`" != "" ]; then
     CFLAGS="${CFLAGS} -DCHANNEL_HAS_CID"