mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
fontconfig: convert to new package format
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
08423ac719
commit
9cfd00fba2
@ -1,46 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
# ensure we dont use '-O3' optimization.
|
||||
CFLAGS=`echo $CFLAGS | sed -e "s|-O3|-O2|"`
|
||||
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-O3|-O2|"`
|
||||
|
||||
cd $PKG_BUILD
|
||||
./configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--with-arch=$TARGET_ARCH \
|
||||
--with-freetype-config=$ROOT/$TOOLCHAIN/bin/freetype-config \
|
||||
--with-default-fonts=/usr/share/fonts/liberation \
|
||||
--without-add-fonts \
|
||||
--disable-dependency-tracking \
|
||||
--disable-docs
|
||||
|
||||
make V=1
|
||||
|
||||
$MAKEINSTALL
|
@ -1,38 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -P $PKG_BUILD/src/.libs/libfontconfig.so* $INSTALL/usr/lib
|
||||
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp $PKG_BUILD/fc-cache/.libs/fc-cache $INSTALL/usr/bin
|
||||
|
||||
mkdir -p $INSTALL/usr/share/fontconfig/conf.avail
|
||||
cp $PKG_BUILD/conf.d/*.conf $INSTALL/usr/share/fontconfig/conf.avail
|
||||
|
||||
mkdir -p $INSTALL/usr/share/xml/fontconfig
|
||||
cp $PKG_BUILD/fonts.dtd $INSTALL/usr/share/xml/fontconfig
|
||||
|
||||
mkdir -p $INSTALL/etc/fonts
|
||||
cp -R $SYSROOT_PREFIX/etc/fonts/* $INSTALL/etc/fonts
|
@ -26,11 +26,34 @@ PKG_LICENSE="OSS"
|
||||
PKG_SITE="http://www.fontconfig.org"
|
||||
PKG_URL="http://www.freedesktop.org/software/fontconfig/release/$PKG_NAME-$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS="freetype libxml2 zlib expat"
|
||||
PKG_BUILD_DEPENDS="toolchain util-macros freetype libxml2 zlib expat"
|
||||
PKG_BUILD_DEPENDS_TARGET="toolchain util-macros freetype libxml2 zlib expat"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="x11/other"
|
||||
PKG_SHORTDESC="fontconfig: A library for font customization and configuration"
|
||||
PKG_LONGDESC="Fontconfig is a library for font customization and configuration."
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="yes"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="--with-arch=$TARGET_ARCH \
|
||||
--with-freetype-config=$ROOT/$TOOLCHAIN/bin/freetype-config \
|
||||
--with-default-fonts=/usr/share/fonts/liberation \
|
||||
--without-add-fonts \
|
||||
--disable-dependency-tracking \
|
||||
--disable-docs"
|
||||
|
||||
pre_configure_target() {
|
||||
# ensure we dont use '-O3' optimization.
|
||||
CFLAGS=`echo $CFLAGS | sed -e "s|-O3|-O2|"`
|
||||
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-O3|-O2|"`
|
||||
}
|
||||
|
||||
post_makeinstall_target() {
|
||||
rm -rf $INSTALL/usr/bin/fc-cat
|
||||
rm -rf $INSTALL/usr/bin/fc-list
|
||||
rm -rf $INSTALL/usr/bin/fc-match
|
||||
rm -rf $INSTALL/usr/bin/fc-pattern
|
||||
rm -rf $INSTALL/usr/bin/fc-query
|
||||
rm -rf $INSTALL/usr/bin/fc-scan
|
||||
rm -rf $INSTALL/usr/bin/fc-validate
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user