Imported sources from subversion.
This commit is contained in:
15
packages/protobuf/common.bash
Normal file
15
packages/protobuf/common.bash
Normal file
@@ -0,0 +1,15 @@
|
||||
version=\
|
||||
(
|
||||
"2.4.1"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://protobuf.googlecode.com/files/protobuf-${version}.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"ed436802019c9e1f40cc750eaf78f318"
|
||||
)
|
||||
|
20
packages/protobuf/cross.bash
Normal file
20
packages/protobuf/cross.bash
Normal 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
|
||||
}
|
44
packages/protobuf/default.bash
Normal file
44
packages/protobuf/default.bash
Normal 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
|
||||
}
|
||||
|
Reference in New Issue
Block a user