freebsd-ports/net/asterisk12-app-ldap/files/patch-cflags.sh
Boris Samorodov a4bd1e8328 LDAPget is an Asterisk application for data retrieval from LDAP
directories (e.g. OpenLDAP or ActiveDirectory).

WWW: http://www.mezzo.net/asterisk/app_ldap.html

PR:		ports/101050
Submitted by:	Matthias Fechner <idefix at fechner.net>
2006-09-30 11:12:34 +00:00

19 lines
654 B
Bash

--- cflags.sh.orig Sun Jul 30 12:23:23 2006
+++ cflags.sh Wed Jul 19 10:09:51 2006
@@ -1,13 +1,13 @@
#!/bin/sh
-CFLAGS="-g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC"
+CFLAGS="-g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC -I/usr/local/include -L/usr/local/lib"
-CHANNEL_H=/usr/include/asterisk/channel.h
+CHANNEL_H=/usr/local/include/asterisk/channel.h
if [ "`grep 'struct ast_callerid cid' ${CHANNEL_H}`" != "" ]; then
CFLAGS="${CFLAGS} -DCHANNEL_HAS_CID"
fi
-CONFIG_H=/usr/include/asterisk/config.h
+CONFIG_H=/usr/local/include/asterisk/config.h
if [ "`grep 'ast_config_load' ${CONFIG_H}`" != "" ]; then
CFLAGS="${CFLAGS} -DNEW_CONFIG"
fi