mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
dbus-glib:
- split in host and target packages
This commit is contained in:
parent
7a18922a59
commit
3e0d7bc6a6
27
packages/devel/dbus-glib-host/build
Executable file
27
packages/devel/dbus-glib-host/build
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/build toolchain
|
||||
$SCRIPTS/build glib-host
|
||||
$SCRIPTS/build dbus-host
|
||||
$SCRIPTS/unpack dbus-glib
|
||||
|
||||
DBUS_GLIB_DIR=`ls -d $BUILD/dbus-glib-[0-9]*`
|
||||
|
||||
setup_toolchain host
|
||||
|
||||
cd $DBUS_GLIB_DIR
|
||||
mkdir -p .build-host
|
||||
|
||||
cd .build-host
|
||||
../configure --prefix=$ROOT/$TOOLCHAIN \
|
||||
--sysconfdir=$ROOT/$TOOLCHAIN/etc \
|
||||
--disable-tests \
|
||||
--disable-xml-docs \
|
||||
--disable-bash-completion \
|
||||
--disable-doxygen-docs \
|
||||
--enable-asserts=yes \
|
||||
|
||||
make
|
||||
make install
|
@ -7,29 +7,31 @@ $SCRIPTS/build gettext
|
||||
$SCRIPTS/build dbus
|
||||
$SCRIPTS/build glib
|
||||
$SCRIPTS/build expat
|
||||
|
||||
cd $PKG_BUILD
|
||||
$SCRIPTS/build dbus-glib-host
|
||||
|
||||
export ac_cv_have_abstract_sockets=yes
|
||||
export ac_cv_func_posix_getpwnam_r=yes
|
||||
export have_abstract_sockets=yes
|
||||
|
||||
export CFLAGS="$CFLAGS -I$SYSROOT_PREFIX/usr/include"
|
||||
export LDFLAGS="$LDFLAGS -L$SYSROOT_PREFIX/usr/lib"
|
||||
DBUS_DIR=`ls -d $BUILD/dbus-[0-9]*`
|
||||
|
||||
./configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--disable-tests \
|
||||
--disable-doxygen-docs \
|
||||
--enable-asserts=no \
|
||||
cd $PKG_BUILD
|
||||
mkdir -p .build-target
|
||||
|
||||
make -C dbus SUBDIRS="."
|
||||
cd .build-target
|
||||
../configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--disable-tests \
|
||||
--disable-doxygen-docs \
|
||||
--enable-asserts=no \
|
||||
--with-introspect-xml="$ROOT/$DBUS_DIR/.build-host/introspect.xml" \
|
||||
--with-dbus-binding-tool="$ROOT/$TOOLCHAIN/bin/dbus-binding-tool" \
|
||||
|
||||
make -C dbus DESTDIR=$SYSROOT_PREFIX install-libdbus_glibHEADERS
|
||||
make -C dbus DESTDIR=$SYSROOT_PREFIX install-libLTLIBRARIES
|
||||
make DESTDIR=$SYSROOT_PREFIX install-pkgconfigDATA
|
||||
make
|
||||
|
||||
$MAKEINSTALL
|
||||
|
@ -8,4 +8,4 @@ $SCRIPTS/install expat
|
||||
$SCRIPTS/install gettext
|
||||
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -PR $PKG_BUILD/dbus/.libs/*.so* $INSTALL/usr/lib
|
||||
cp -PR $PKG_BUILD/.build-target/dbus/.libs/*.so* $INSTALL/usr/lib
|
||||
|
Loading…
x
Reference in New Issue
Block a user