From d34634a258241810206108da69fb2ad03013182a Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 10 Sep 2012 15:45:00 +0200 Subject: [PATCH] pcre: split in 'host' and 'target' package Signed-off-by: Stephan Raue --- packages/devel/pcre-host/build | 42 ++++++++++++++++++++++++++++++++++ packages/devel/pcre-host/meta | 36 +++++++++++++++++++++++++++++ packages/devel/pcre/build | 24 ++++++++++--------- packages/devel/pcre/install | 2 +- 4 files changed, 92 insertions(+), 12 deletions(-) create mode 100755 packages/devel/pcre-host/build create mode 100644 packages/devel/pcre-host/meta diff --git a/packages/devel/pcre-host/build b/packages/devel/pcre-host/build new file mode 100755 index 0000000000..455d1aef9c --- /dev/null +++ b/packages/devel/pcre-host/build @@ -0,0 +1,42 @@ +#!/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 + +$SCRIPTS/unpack pcre + +setup_toolchain host + +cd $BUILD/pcre-* +mkdir -p m4 && do_autoreconf + +mkdir -p .build-host && cd .build-host + +../configure --host=$HOST_NAME \ + --build=$HOST_NAME \ + --prefix=$ROOT/$TOOLCHAIN \ + --enable-utf8 \ + --enable-unicode-properties \ + --with-gnu-ld + +make +make install \ No newline at end of file diff --git a/packages/devel/pcre-host/meta b/packages/devel/pcre-host/meta new file mode 100644 index 0000000000..cb137aa383 --- /dev/null +++ b/packages/devel/pcre-host/meta @@ -0,0 +1,36 @@ +################################################################################ +# 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 +################################################################################ + +PKG_NAME="pcre-host" +PKG_VERSION="" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="OSS" +PKG_SITE="http://www.pcre.org/" +PKG_URL="" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="devel" +PKG_SHORTDESC="pcre: Perl Compatible Regulat Expressions" +PKG_LONGDESC="The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5. PCRE has its own native API, as well as a set of wrapper functions that correspond to the POSIX regular expression API. The PCRE library is free, even for building commercial software." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/devel/pcre/build b/packages/devel/pcre/build index 9bfcc7400b..2f8e81a0c1 100755 --- a/packages/devel/pcre/build +++ b/packages/devel/pcre/build @@ -24,17 +24,19 @@ cd $PKG_BUILD mkdir -p m4 && do_autoreconf -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --exec-prefix=/usr \ - --sysconfdir=/etc \ - --datadir=/usr/share \ - --enable-shared \ - --disable-static \ - --enable-utf8 \ - --enable-unicode-properties \ - --with-gnu-ld + +mkdir -p .build-target && cd .build-target +../configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --exec-prefix=/usr \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --enable-shared \ + --disable-static \ + --enable-utf8 \ + --enable-unicode-properties \ + --with-gnu-ld make diff --git a/packages/devel/pcre/install b/packages/devel/pcre/install index 3bf8000c4b..3caea077bf 100755 --- a/packages/devel/pcre/install +++ b/packages/devel/pcre/install @@ -23,5 +23,5 @@ . config/options $1 mkdir -p $INSTALL/usr/lib - cp -P $PKG_BUILD/.libs/libpcre*.so*[.0-9] $INSTALL/usr/lib + cp -P $PKG_BUILD/.build-target/.libs/libpcre*.so*[.0-9] $INSTALL/usr/lib