$(MAKE) -C stdtime clean
datafiles: all
- sh mkpkgconfig
+ sh mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits
for x in sounds/digits/*.gsm; do \
if grep -q "^%`basename $$x`%" sounds.txt; then \
#!/bin/bash
-
+PPATH=$1
## Make sure we were called from Makefile
if [ "x$ASTERISKVERSIONNUM" == "x" ]; then
## 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
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