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:
Stephan Raue 2011-02-04 14:16:11 +01:00
parent 937ae03d14
commit 44b86705dc
4 changed files with 81 additions and 15 deletions

View 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

View 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"

View File

@ -22,19 +22,13 @@
. config/options $1
setup_toolchain host
cd $PKG_BUILD
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=$ROOT/$TOOLCHAIN \
--with-mapdir=$XORG_PATH_MAPS
mkdir -p .objdir-target && cd .objdir-target
../configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--with-mapdir=/usr/share/fonts/util
make
make install-binPROGRAMS
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
$MAKEINSTALL

View File

@ -22,5 +22,5 @@
. config/options $1
mkdir -p $INSTALL/$XORG_PATH_MAPS
cp $PKG_BUILD/map-* $INSTALL/$XORG_PATH_MAPS
mkdir -p $INSTALL/usr/share/fonts/util
cp $PKG_BUILD/map-* $INSTALL/usr/share/fonts/util