pkg-config: convert to new package format, move package

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-01-08 20:12:22 +01:00
parent 01cc2e0046
commit adde8228ae
3 changed files with 13 additions and 44 deletions

View File

@ -23,12 +23,21 @@ PKG_ARCH="any"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SITE="http://www.freedesktop.org/software/pkgconfig/" PKG_SITE="http://www.freedesktop.org/software/pkgconfig/"
PKG_URL="http://pkgconfig.freedesktop.org/releases/$PKG_NAME-$PKG_VERSION.tar.gz" PKG_URL="http://pkgconfig.freedesktop.org/releases/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS="" PKG_DEPENDS_HOST=""
PKG_BUILD_DEPENDS="ccache:host gettext:host" PKG_BUILD_DEPENDS_HOST="ccache:host gettext:host"
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="toolchain/devel" PKG_SECTION="toolchain/devel"
PKG_SHORTDESC="pkg-config: A library configuration management system" PKG_SHORTDESC="pkg-config: A library configuration management system"
PKG_LONGDESC="pkg-config is a system for managing library compile/link flags that works with automake and autoconf. It replaces the ubiquitous *-config scripts you may have seen with a single tool." PKG_LONGDESC="pkg-config is a system for managing library compile/link flags that works with automake and autoconf. It replaces the ubiquitous *-config scripts you may have seen with a single tool."
PKG_IS_ADDON="no"
PKG_IS_ADDON="no"
PKG_AUTORECONF="no" PKG_AUTORECONF="no"
PKG_CONFIGURE_OPTS_HOST="--disable-silent-rules \
--with-internal-glib --disable-dtrace \
--with-gnu-ld"
post_makeinstall_host() {
mkdir -p $SYSROOT_PREFIX/usr/share/aclocal
cp ../pkg.m4 $SYSROOT_PREFIX/usr/share/aclocal
}

View File

@ -1,40 +0,0 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC 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 of the License, or
# (at your option) any later version.
#
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
################################################################################
. config/options $1
setup_toolchain host
cd $PKG_BUILD
./configure --host=$HOST_NAME \
--build=$HOST_NAME \
--enable-shared \
--disable-static \
--disable-silent-rules \
--with-internal-glib --disable-dtrace \
--with-gnu-ld
make
mkdir -p $ROOT/$TOOLCHAIN/bin
cp pkg-config $ROOT/$TOOLCHAIN/bin
mkdir -p $SYSROOT_PREFIX/usr/share/aclocal
cp pkg.m4 $SYSROOT_PREFIX/usr/share/aclocal

View File

@ -24,7 +24,7 @@ PKG_LICENSE="GPL"
PKG_SITE="http://www.openelec.tv" PKG_SITE="http://www.openelec.tv"
PKG_URL="" PKG_URL=""
PKG_DEPENDS="" PKG_DEPENDS=""
PKG_BUILD_DEPENDS="make:host xz:host sed:host pkg-config autotools gcc:host bison:host flex:host cmake:host scons yasm nasm" PKG_BUILD_DEPENDS="make:host xz:host sed:host pkg-config:host autotools gcc:host bison:host flex:host cmake:host scons yasm nasm"
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="toolchain/devel" PKG_SECTION="toolchain/devel"
PKG_SHORTDESC="toolchain: OpenELEC.tv' toolchain" PKG_SHORTDESC="toolchain: OpenELEC.tv' toolchain"