aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorwsnipex <wsnipex@a1.net>2016-02-14 13:55:37 +0100
committerAnton Fedchin <afedchin@ruswizards.com>2016-02-23 22:22:16 +0300
commit5138926fd8009f27613f2b08a8f0423be4a7779f (patch)
tree247bcfa154185c622ee49f429a224a500279cd24 /configure.ac
parent869c798b346f05388a838a0f8bbfc01c2b044b66 (diff)
[posix] move libdvd to depends
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac75
1 files changed, 2 insertions, 73 deletions
diff --git a/configure.ac b/configure.ac
index 9a22b6c01a..bdf239a945 100644
--- a/configure.ac
+++ b/configure.ac
@@ -176,8 +176,6 @@ x11_enabled="== X11 enabled. =="
x11_disabled="== X11 disabled. =="
pulse_not_found="== Could not find libpulse. PulseAudio support disabled. =="
pulse_disabled="== PulseAudio support disabled. =="
-dvdcss_enabled="== DVDCSS support enabled. =="
-dvdcss_disabled="== DVDCSS support disabled. =="
avahi_not_found="== Could not find libavahi-common or libavahi-client. Avahi support disabled. =="
avahi_disabled="== Avahi support disabled. =="
mdnsembedded_not_found="== Could not find mDNSEmbedded. Might prevent zeroconf support. =="
@@ -376,12 +374,6 @@ AC_ARG_ENABLE([upnp],
[use_upnp=$enableval],
[use_upnp=yes])
-AC_ARG_ENABLE([dvdcss],
- [AS_HELP_STRING([--enable-dvdcss],
- [enable DVDCSS support (default is yes)])],
- [use_dvdcss=$enableval],
- [use_dvdcss=yes])
-
AC_ARG_ENABLE([mid],
[AS_HELP_STRING([--enable-mid],
[enable MID support (default is no)])],
@@ -672,7 +664,6 @@ if test "$target_platform" = "target_android" ; then
USE_ANDROID=1
webserver_checkdepends=yes
CFLAGS="$CFLAGS -Wno-psabi"
- DROID_DVDLIB_SEEK64="-D_FILE_OFFSET_BITS=64 -D_OFF_T_DEFINED_ -Doff_t=off64_t -Dlseek=lseek64"
CXXFLAGS="$CXXFLAGS -Wno-psabi"
AC_DEFINE(HAS_EGLGLES, [1], [Define if supporting EGL based GLES Framebuffer])
fi
@@ -1864,6 +1855,7 @@ AC_C_BIGENDIAN
if test "$cross_compiling" = "yes"; then
final_message="$final_message\n Crosscomp.:\tYes"
+ CROSS_COMPILING=yes
if [[ -d "$NATIVE_ROOT" ]]; then
CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -I$NATIVE_ROOT/include"
CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD -I$NATIVE_ROOT/include"
@@ -2028,24 +2020,6 @@ else
final_message="$final_message\n PulseAudio:\tNo"
fi
-# DVDCSS
-if test "$use_dvdcss" = "yes"; then
- AC_MSG_NOTICE($dvdcss_enabled)
- final_message="$final_message\n DVDCSS:\tYes"
- BUILD_DVDCSS=1
- SKIP_CONFIG_DVDCSS=0
- DVDREAD_CFLAGS="-D_XBMC -DHAVE_DVDCSS_DVDCSS_H"
-else
- AC_MSG_NOTICE($dvdcss_disabled)
- final_message="$final_message\n DVDCSS:\tNo"
- BUILD_DVDCSS=0
- SKIP_CONFIG_DVDCSS=1
- DVDREAD_CFLAGS="-D_XBMC -UHAVE_DVDCSS_DVDCSS_H"
-fi
-if test "$host_vendor" = "apple"; then
- DVDREAD_CFLAGS="$DVDREAD_CFLAGS -D__DARWIN__"
-fi
-
# Google Test Framework
if test "$configure_gtest" = "yes"; then
AC_MSG_NOTICE($gtest_enabled)
@@ -2349,7 +2323,6 @@ AC_SUBST(CFLAGS_FOR_BUILD)
AC_SUBST(CXXFLAGS_FOR_BUILD)
AC_SUBST(LDFLAGS_FOR_BUILD)
AC_SUBST(SDL_DEFINES)
-AC_SUBST(BUILD_DVDCSS)
AC_SUBST(FFMPEG_LIBDIR)
AC_SUBST(USE_STATIC_FFMPEG)
AC_SUBST(GNUTLS_ALL_LIBS)
@@ -2397,6 +2370,7 @@ AC_SUBST(USE_SSE4)
AC_SUBST(USE_MMAL)
AC_SUBST(USE_X11)
AC_SUBST(USE_BREAKPAD)
+AC_SUBST(CROSS_COMPILING)
# pushd and popd are not available in other shells besides bash, so implement
# our own pushd/popd functions
@@ -2448,51 +2422,6 @@ fi
])
])
-XB_CONFIG_MODULE([lib/libdvd/libdvdcss], [
- ./configure \
- CC="$CC" \
- CXX="$CXX" \
- CFLAGS="$CFLAGS $DROID_DVDLIB_SEEK64" \
- --prefix="${prefix}" --includedir="${includedir}" --libdir="${libdir}" --datadir="${datadir}" \
- --host=$host_alias \
- --build=$build_alias \
- --target=$target_alias \
- --disable-doc \
- --enable-static \
- --with-pic
-], [$SKIP_CONFIG_DVDCSS])
-
-XB_CONFIG_MODULE([lib/libdvd/libdvdread], [
- ./configure2 \
- --extra-cflags="$CFLAGS $DVDREAD_CFLAGS -I`pwd`/../libdvdcss/src $DROID_DVDLIB_SEEK64" \
- --prefix="${prefix}" --includedir="${includedir}" --libdir="${libdir}" --datadir="${datadir}" \
- --host=$host_alias \
- --build=$build_alias \
- --target=$target_alias \
- --enable-static \
- --disable-shared \
- --disable-strip \
- --disable-opts \
- --cc="$CC" &&
- mkdir -p `pwd`/../includes/dvdread
- cp `pwd`/../libdvdread/src/*.h `pwd`/../includes/dvdread
- cp `pwd`/../libdvdread/src/dvdread/*.h `pwd`/../includes/dvdread
-], [0])
-
-XB_CONFIG_MODULE([lib/libdvd/libdvdnav], [
- ./configure2 \
- --extra-cflags="$CFLAGS $DVDREAD_CFLAGS -I`pwd`/../includes $DROID_DVDLIB_SEEK64" \
- --extra-ldflags="-L`pwd`/../libdvdread/obj" \
- --with-dvdread-config="`pwd`/../dvdread-config" \
- --prefix="${prefix}" --includedir="${includedir}" --libdir="${libdir}" --datadir="${datadir}" \
- --host=$host_alias \
- --build=$build_alias \
- --target=$target_alias \
- --enable-static \
- --disable-shared \
- --cc="$CC"
-], [0])
-
XB_CONFIG_MODULE([lib/cpluff], [
./configure --disable-nls \
--prefix="${prefix}" --includedir="${includedir}" --libdir="${libdir}" --datadir="${datadir}" \