VirtualBox

Changeset 73123 in vbox


Ignore:
Timestamp:
Jul 13, 2018 1:40:59 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123706
Message:

libopus: only build libopus on old Linux distributions: use the system version unless
it is pre-1.0 (or not present), and use the system version on OSE. Thank you
Gianfranco Costamagna for the patch to configure, applied with slight
adjustments.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r73096 r73123  
    11961196  VBOX_WITH_INSTALLER=
    11971197 endif
    1198  # if1of ($(KBUILD_TARGET), win)
     1198  if1of ($(KBUILD_TARGET), win)
    11991199  # Undefine codec libraries which are not needed.
    12001200  VBOX_WITH_LIBVPX=
     
    12031203  VBOX_WITH_VIDEOREC=
    12041204  VBOX_WITH_AUDIO_VIDEOREC=
    1205  # endif
     1205  endif
    12061206 # branding
    12071207 VBOX_BRAND_LICENSE_HTML             := $(PATH_ROOT)/doc/License-gpl-2.0.html
  • trunk/configure

    r72795 r73123  
    16381638
    16391639#
     1640# Check for libopus
     1641#
     1642check_libopus()
     1643{
     1644  if [ -z "$BUILD_LIBOPUS" ]; then
     1645    test_header libopus
     1646    if which_wrapper pkg-config > /dev/null; then
     1647      libopus_ver=`pkg-config opus --modversion 2>> $LOG`
     1648      if [ $? -eq 0 ]; then
     1649        FLGOPUS=`pkg-config opus --cflags`
     1650        INCOPUS=`strip_I "$FLGOPUS"`
     1651        LIBOPUS=`pkg-config opus --libs`
     1652      fi
     1653      cat > $ODIR.tmp_src.cc << EOF
     1654#include <cstdio>
     1655#include <opus/opus.h>
     1656extern "C" int main(void)
     1657{
     1658  OpusEncoder *test;
     1659  printf("found, OK.\n");
     1660}
     1661EOF
     1662      [ -n "$INCOPUS" ] && I_INCOPUS=`prefix_I "$INCOPUS"`
     1663      if test_compile "$LIBOPUS $I_INCOPUS" opus opus; then
     1664        if test_execute; then
     1665          cnf_append "SDK_VBOX_OPUS_INCS" "$INCOPUS"
     1666          cnf_append "SDK_VBOX_OPUS_LIBS" "`strip_l "$LIBOPUS"`"
     1667          fi
     1668      fi
     1669    fi
     1670  fi
     1671}
     1672
     1673
     1674#
    16401675# Check for libvpx
    16411676#
     
    25102545      WITH_HARDENING=2
    25112546      ;;
     2547    --build-libopus)
     2548      BUILD_LIBOPUS=1
     2549      ;;
    25122550    --disable-udptunnel)
    25132551      WITH_UDPTUNNEL=0
     
    27342772  check_curl
    27352773  [ $WITH_LIBVPX -eq 1 ] && check_vpx
     2774  check_libopus
    27362775 [ "$OS" != "darwin"  ] && check_z
    27372776  [ "$OS" != "darwin"  ] && check_png
  • trunk/src/VBox/Installer/linux/debian/rules

    r69500 r73123  
    107107             $(if $(NOWEBSVC),,$(if $(ose),--enable-webservice,)) \
    108108             $(if $(VNC),--enable-vnc,) \
    109              --disable-extpack
     109             --disable-extpack \
     110             $(if $(filter DEBIAN_7_0,$(debdist)),--build-libopus,)
    110111
    111112bld_flags := AUTOCFG=$(current)/debian/AutoConfig.kmk \
  • trunk/src/VBox/Installer/linux/rpm/rules

    r73093 r73123  
    138138             $(if $(NOSDL),--disable-vboxsdl,) \
    139139             $(if $(filter el5 el6,$(rpmrel)),--build-libvpx,) \
     140             $(if $(filter el5 el6,$(rpmrel)),--build-libopus,) \
    140141             $(if $(filter el5,$(rpmrel)),--build-libcurl,) \
    141142             $(if $(filter el5,$(rpmrel)),--disable-sdl-ttf,) \
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette