Imported sources from subversion.

This commit is contained in:
Ricardo Martins
2013-07-13 17:19:22 +01:00
commit 12d63d1569
455 changed files with 69857 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
version=\
(
"2.4.1"
)
url=\
(
"http://protobuf.googlecode.com/files/protobuf-${version}.tar.bz2"
)
md5=\
(
"ed436802019c9e1f40cc750eaf78f318"
)

View File

@@ -0,0 +1,20 @@
source $PKG_COMMON
# We need to build it once on our host system in order to create the "protoc" file used by the second step.
configure()
{
mkdir -p $pkg_build_dir/glued_host
./configure --prefix=$pkg_build_dir/glued_host
}
build()
{
$cmd_make
$cmd_make check
}
host_install()
{
$cmd_make install
$cmd_make distclean
}

View File

@@ -0,0 +1,44 @@
source $PKG_COMMON
requires=\
(
'protobuf/cross'
)
configure()
{
./configure \
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
--build=$cfg_host_canonical \
--host="$cfg_target_canonical" \
--target="$cfg_target_canonical" \
--with-protoc=$pkg_build_dir/../cross/glued_host/bin/protoc
}
comment=\
(
"24/10/2012 - In test yet."
)
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
# Libs:
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"*proto*.so*; do
if [ -L "$f" ]; then
cp -av "$f" "$cfg_dir_rootfs/usr/lib"
else
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
fi
done
}