diff --git a/packages/devel/libcec/build b/packages/devel/libcec/build index ae4137cbc6..9a7baab9e1 100755 --- a/packages/devel/libcec/build +++ b/packages/devel/libcec/build @@ -22,6 +22,15 @@ . config/options $1 +if [ "$OPENMAX" = "bcm2835-driver" ]; then + LIBCEC_RPI="--enable-rpi --with-rpi-include-path=$SYSROOT_PREFIX/usr/include --with-rpi-lib-path=$SYSROOT_PREFIX/usr/lib" +else + LIBCEC_RPI="--disable-rpi" +fi + +# dont use some optimizations because of build problems + LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"` + cd $PKG_BUILD ./configure --host=$TARGET_NAME \ --build=$HOST_NAME \ @@ -29,6 +38,7 @@ cd $PKG_BUILD --sysconfdir=/etc \ --disable-static \ --enable-shared \ + $LIBCEC_RPI make diff --git a/packages/devel/libcec/meta b/packages/devel/libcec/meta index 2feec2870b..ce73e36a63 100644 --- a/packages/devel/libcec/meta +++ b/packages/devel/libcec/meta @@ -19,7 +19,7 @@ ################################################################################ PKG_NAME="libcec" -PKG_VERSION="1.7.1" +PKG_VERSION="1.8.0" PKG_REV="1" PKG_ARCH="any" PKG_LICENSE="GPL" @@ -34,3 +34,8 @@ PKG_LONGDESC="libCEC is an open-source dual licensed library designed for commun PKG_IS_ADDON="no" PKG_AUTORECONF="yes" + +if [ "$OPENMAX" = "bcm2835-driver" ]; then + PKG_DEPENDS="$PKG_DEPENDS bcm2835-driver" + PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS bcm2835-driver" +fi