diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-11 20:57:49 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-11 20:57:49 +0000 |
commit | defcc2ef52a4db8e9e7738113f0acdb90de3863d (patch) | |
tree | f80ad44b51ce450c93ec0e76f6eaac42524d1a36 /mkpkgconfig | |
parent | ced27b9053f782f03a713d863afe4a16006fb706 (diff) |
Fix for DESTDIR
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4212 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'mkpkgconfig')
-rwxr-xr-x | mkpkgconfig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mkpkgconfig b/mkpkgconfig index 7b1b78f48..a4f143bed 100755 --- a/mkpkgconfig +++ b/mkpkgconfig @@ -1,5 +1,5 @@ #!/bin/bash - +PPATH=$1 ## Make sure we were called from Makefile if [ "x$ASTERISKVERSIONNUM" == "x" ]; then @@ -9,7 +9,7 @@ fi ## Create a pkgconfig spec file for 3rd party modules (pkg-config asterisk --cflags) -if [ ! -d /usr/lib/pkgconfig ]; then +if [ ! -d $PPATH ]; then exit fi @@ -22,7 +22,7 @@ LOCAL_CFLAGS=$(echo $CFLAGS | sed -e 's/\s*-pipe\s*//g' | sed -e 's/-[Wmp]\S*\s* sed -r -e 's/-DAST(ETCDIR|LIBDIR|VARLIBDIR|VARRUNDIR|SPOOLDIR|LOGDIR|CONFPATH|MODDIR|AGIDIR)=\S* //g' ) -cat <<EOF > /usr/lib/pkgconfig/asterisk.pc +cat <<EOF > $PPATH/asterisk.pc install_prefix=$INSTALL_PREFIX version_number=$ASTERISKVERSIONNUM etcdir=$ASTETCDIR |