mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 04:39:33 +01:00
fix up unexpected situation with fontconfig in our packages
git-svn-id: svn://localhost/ardour2/branches/3.0@12190 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
7dd9582855
commit
6bd097cc35
3 changed files with 66 additions and 29 deletions
|
|
@ -280,6 +280,25 @@ else
|
|||
echo "Skipping NLS support"
|
||||
fi
|
||||
|
||||
### Find fontconfig ###
|
||||
FCROOT=`pkg-config --libs-only-L fontconfig | sed -e "s/-L//" -e "s/[[:space:]]//g"`
|
||||
if [ ! -z "$FCROOT" ]; then
|
||||
echo "Found FCOOT using pkg-config"
|
||||
FCETC=`dirname $FCROOT`/etc
|
||||
elif [ -d /usr/lib/gtk-2.0 ]; then
|
||||
FCETC="/etc"
|
||||
elif [ -d /usr/local/lib/gtk-2.0 ]; then
|
||||
FCETC="/usr/local/etc"
|
||||
else
|
||||
echo ""
|
||||
echo "!!! ERROR !!! - Unable to locate fontconfig directory. Packager will exit"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Copying Fontconfig files to $Etc ..."
|
||||
cp -r $FCETC/fonts $Etc
|
||||
|
||||
### Find gtk ###
|
||||
GTKROOT=`pkg-config --libs-only-L gtk+-2.0 | sed -e "s/-L//" -e "s/[[:space:]]//g"`
|
||||
if [ ! -z "$GTKROOT" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue