[Asterisk-cvs] asterisk mkpkgconfig,NONE,1.1 Makefile,1.119,1.120
markster at lists.digium.com
markster at lists.digium.com
Thu Nov 11 09:47:34 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv2558
Modified Files:
Makefile
Added Files:
mkpkgconfig
Log Message:
Add pkgconfig support (bug #2734)
--- NEW FILE: mkpkgconfig ---
#!/bin/bash
## Make sure we were called from Makefile
if [ "x$ASTERISKVERSIONNUM" == "x" ]; then
echo " ** Do not call this script directly"
exit
fi
## Create a pkgconfig spec file for 3rd party modules (pkg-config asterisk --cflags)
if [ ! -d /usr/lib/pkgconfig ]; then
exit
fi
## Clean out CFLAGS for the spec file.
LOCAL_CFLAGS=$(echo $CFLAGS | sed -e 's/\s*-pipe\s*//g' | sed -e 's/-[Wmp]\S*\s*//g' | \
sed -r -e 's/-I(include|\.\.\/include) //g' |
sed -e 's/-DINSTALL_PREFIX=\S* //g' |
sed -r -e 's/-DASTERISK_VERSION=\S* //g' |
sed -r -e 's/-DAST(ETCDIR|LIBDIR|VARLIBDIR|VARRUNDIR|SPOOLDIR|LOGDIR|CONFPATH|MODDIR|AGIDIR)=\S* //g'
)
cat <<EOF > /usr/lib/pkgconfig/asterisk.pc
install_prefix=$INSTALL_PREFIX
version_number=$ASTERISKVERSIONNUM
etcdir=$ASTETCDIR
libdir=$ASTLIBDIR
varlibdir=$ASTVARLIBDIR
varrundir=$ASTVARRUNDIR
spooldir=$ASTSPOOLDIR
logdir=$ASTLOGDIR
confpath=$ASTCONFPATH
moddir=$MODULES_DIR
agidir=$AGI_DIR
Name: asterisk
Description: Open Source PBX and telephony toolkit
Version: $ASTERISKVERSION
Libs: $LIBS
Cflags: $LOCAL_CFLAGS
EOF
Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/Makefile,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -d -r1.119 -r1.120
--- Makefile 24 Oct 2004 13:18:19 -0000 1.119
+++ Makefile 11 Nov 2004 14:48:53 -0000 1.120
@@ -314,6 +314,7 @@
$(MAKE) -C stdtime clean
datafiles: all
+ sh mkpkgconfig
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits
for x in sounds/digits/*.gsm; do \
if grep -q "^%`basename $$x`%" sounds.txt; then \
More information about the svn-commits
mailing list