mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
pcre: split in 'host' and 'target' package
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
6bccb3f212
commit
d34634a258
42
packages/devel/pcre-host/build
Executable file
42
packages/devel/pcre-host/build
Executable file
@ -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
|
36
packages/devel/pcre-host/meta
Normal file
36
packages/devel/pcre-host/meta
Normal file
@ -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"
|
@ -24,17 +24,19 @@
|
|||||||
|
|
||||||
cd $PKG_BUILD
|
cd $PKG_BUILD
|
||||||
mkdir -p m4 && do_autoreconf
|
mkdir -p m4 && do_autoreconf
|
||||||
./configure --host=$TARGET_NAME \
|
|
||||||
--build=$HOST_NAME \
|
mkdir -p .build-target && cd .build-target
|
||||||
--prefix=/usr \
|
../configure --host=$TARGET_NAME \
|
||||||
--exec-prefix=/usr \
|
--build=$HOST_NAME \
|
||||||
--sysconfdir=/etc \
|
--prefix=/usr \
|
||||||
--datadir=/usr/share \
|
--exec-prefix=/usr \
|
||||||
--enable-shared \
|
--sysconfdir=/etc \
|
||||||
--disable-static \
|
--datadir=/usr/share \
|
||||||
--enable-utf8 \
|
--enable-shared \
|
||||||
--enable-unicode-properties \
|
--disable-static \
|
||||||
--with-gnu-ld
|
--enable-utf8 \
|
||||||
|
--enable-unicode-properties \
|
||||||
|
--with-gnu-ld
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
|
@ -23,5 +23,5 @@
|
|||||||
. config/options $1
|
. config/options $1
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/lib
|
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user