mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
font-util: split in host and target packages, rework build and install script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
937ae03d14
commit
44b86705dc
36
packages/x11/font/font-util-host/build
Executable file
36
packages/x11/font/font-util-host/build
Executable file
@ -0,0 +1,36 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
|
# Copyright (C) 2009-2011 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, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
. config/options $1
|
||||||
|
|
||||||
|
$SCRIPTS/unpack font-util
|
||||||
|
|
||||||
|
FONT_UTIL_DIR=`ls -d $BUILD/font-util-[0-9]*`
|
||||||
|
|
||||||
|
setup_toolchain host
|
||||||
|
|
||||||
|
cd $FONT_UTIL_DIR
|
||||||
|
mkdir -p .objdir-host && cd .objdir-host
|
||||||
|
../configure --prefix=$ROOT/$TOOLCHAIN
|
||||||
|
|
||||||
|
make
|
||||||
|
make install
|
36
packages/x11/font/font-util-host/meta
Normal file
36
packages/x11/font/font-util-host/meta
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
################################################################################
|
||||||
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
|
# Copyright (C) 2009-2011 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, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
PKG_NAME="font-util-host"
|
||||||
|
PKG_VERSION=""
|
||||||
|
PKG_REV="1"
|
||||||
|
PKG_ARCH="any"
|
||||||
|
PKG_LICENSE="OSS"
|
||||||
|
PKG_SITE="http://www.X.org"
|
||||||
|
PKG_URL=""
|
||||||
|
PKG_DEPENDS=""
|
||||||
|
PKG_BUILD_DEPENDS="toolchain util-macros"
|
||||||
|
PKG_PRIORITY="optional"
|
||||||
|
PKG_SECTION="x11/font"
|
||||||
|
PKG_SHORTDESC="font-util: X.org font utilities"
|
||||||
|
PKG_LONGDESC="X.org font utilities."
|
||||||
|
PKG_IS_ADDON="no"
|
||||||
|
|
||||||
|
PKG_AUTORECONF="no"
|
@ -22,19 +22,13 @@
|
|||||||
|
|
||||||
. config/options $1
|
. config/options $1
|
||||||
|
|
||||||
setup_toolchain host
|
|
||||||
|
|
||||||
cd $PKG_BUILD
|
cd $PKG_BUILD
|
||||||
./configure --host=$TARGET_NAME \
|
mkdir -p .objdir-target && cd .objdir-target
|
||||||
--build=$HOST_NAME \
|
|
||||||
--prefix=$ROOT/$TOOLCHAIN \
|
../configure --host=$TARGET_NAME \
|
||||||
--with-mapdir=$XORG_PATH_MAPS
|
--build=$HOST_NAME \
|
||||||
|
--prefix=/usr \
|
||||||
|
--with-mapdir=/usr/share/fonts/util
|
||||||
|
|
||||||
make
|
make
|
||||||
make install-binPROGRAMS
|
$MAKEINSTALL
|
||||||
|
|
||||||
mkdir -p $SYSROOT_PREFIX/usr/lib/pkgconfig
|
|
||||||
cp *.pc $SYSROOT_PREFIX/usr/lib/pkgconfig
|
|
||||||
|
|
||||||
mkdir -p $SYSROOT_PREFIX/usr/share/aclocal
|
|
||||||
cp *.m4 $SYSROOT_PREFIX/usr/share/aclocal
|
|
||||||
|
@ -22,5 +22,5 @@
|
|||||||
|
|
||||||
. config/options $1
|
. config/options $1
|
||||||
|
|
||||||
mkdir -p $INSTALL/$XORG_PATH_MAPS
|
mkdir -p $INSTALL/usr/share/fonts/util
|
||||||
cp $PKG_BUILD/map-* $INSTALL/$XORG_PATH_MAPS
|
cp $PKG_BUILD/map-* $INSTALL/usr/share/fonts/util
|
||||||
|
Loading…
x
Reference in New Issue
Block a user