<div dir='auto'>Hi,<div dir="auto"><br></div><div dir="auto">What about "USE_PKG_CONFIG" ?</div></div><div class="gmail_extra"><br><div class="gmail_quote">Le 31 janv. 2020 4:44 PM, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<br type="attribution" /><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">When cross compiling we don't really use the "system" libraries either. <br>
I don't have a better word but suggestions are welcome.</p>
<p dir="ltr">On 2020-01-31 16:32, Marvin Scholz (ePirat) wrote:<br>
> That option name is imo too confusing considering we call it „prebuilt“ contribs while it seems here you refer to finding „system“ libraries using pkg-config which has nothing to do with prebuilt contribs.<br>
> <br>
> Von meinem iPhone gesendet<br>
> <br>
>> Am 31.01.2020 um 16:26 schrieb Steve Lhomme <robux4@ycbcr.xyz>:<br>
>><br>
>> In the case of Raspbian there's a heavily patched libavcodec which we can<br>
>> access through pre-built packages.<br>
>> Qt cross compiling also a major PITA which we can avoid this way.<br>
>> ---<br>
>> contrib/bootstrap    | 6 ++++++<br>
>> contrib/src/main.mak | 7 +++++--<br>
>> 2 files changed, 11 insertions(+), 2 deletions(-)<br>
>><br>
>> diff --git a/contrib/bootstrap b/contrib/bootstrap<br>
>> index 5ed5f6f25d3..998bc6e34a2 100755<br>
>> --- a/contrib/bootstrap<br>
>> +++ b/contrib/bootstrap<br>
>> @@ -36,6 +36,7 @@ usage()<br>
>>     echo "                   (USE AT YOUR OWN LEGAL RISKS)"<br>
>>     echo "  --disable-optim  disable optimization in libraries"<br>
>>     echo "  --enable-pdb     generate debug information in PDB format"<br>
>> +    echo "  --enable-prebuilt use pre-compiled packages via pkg-config"<br>
>> }<br>
>><br>
>> BUILD=<br>
>> @@ -51,6 +52,7 @@ GNUV3="1"<br>
>> AD_CLAUSES=<br>
>> WITH_OPTIMIZATION="1"<br>
>> ENABLE_PDB=<br>
>> +USE_BUILT_PKGS=<br>
>><br>
>> while test -n "$1"<br>
>> do<br>
>> @@ -95,6 +97,9 @@ do<br>
>>         --enable-ad-clauses)<br>
>>             AD_CLAUSES=1<br>
>>             ;;<br>
>> +        --enable-prebuilt)<br>
>> +            USE_BUILT_PKGS=1<br>
>> +            ;;<br>
>>         --disable-*)<br>
>>             PKGS_DISABLE="${PKGS_DISABLE} ${1#--disable-}"<br>
>>             ;;<br>
>> @@ -256,6 +261,7 @@ test -z "$GNUV3" || add_make_enabled "GNUV3"<br>
>> test -z "$AD_CLAUSES" || add_make_enabled "AD_CLAUSES"<br>
>> test -z "$WITH_OPTIMIZATION" || add_make_enabled "WITH_OPTIMIZATION"<br>
>> test -z "$ENABLE_PDB" || add_make_enabled "ENABLE_PDB"<br>
>> +test -z "$USE_BUILT_PKGS" || add_make_enabled "USE_BUILT_PKGS"<br>
>> test "`uname -o 2>/dev/null`" != "Msys" || add_make "CMAKE_GENERATOR := -G \"MSYS Makefiles\""<br>
>><br>
>> #<br>
>> diff --git a/contrib/src/main.mak b/contrib/src/main.mak<br>
>> index 73d23d0018f..5b0d942bc1c 100644<br>
>> --- a/contrib/src/main.mak<br>
>> +++ b/contrib/src/main.mak<br>
>> @@ -46,14 +46,17 @@ HAVE_WIN64 := 1<br>
>> endif<br>
>><br>
>> ifdef HAVE_CROSS_COMPILE<br>
>> -need_pkg = 1<br>
>> +ifdef USE_BUILT_PKGS<br>
>> +need_pkg = $(shell $(PKG_CONFIG) $(1) || echo 1)<br>
>> else<br>
>> +need_pkg = 1<br>
>> +endif<br>
>> ifeq ($(findstring mingw32,$(BUILD)),mingw32)<br>
>> need_pkg = $(shell PKG_CONFIG_LIBDIR="${PKG_CONFIG_PATH}" $(PKG_CONFIG) $(1) || echo 1)<br>
>> +endif<br>
>> else<br>
>> need_pkg = $(shell $(PKG_CONFIG) $(1) || echo 1)<br>
>> endif<br>
>> -endif<br>
>><br>
>> ifeq ($(findstring mingw32,$(BUILD)),mingw32)<br>
>> MSYS_BUILD := 1<br>
>> -- <br>
>> 2.17.1<br>
>><br>
>> _______________________________________________<br>
>> vlc-devel mailing list<br>
>> To unsubscribe or modify your subscription options:<br>
>> https://mailman.videolan.org/listinfo/vlc-devel<br>
> _______________________________________________<br>
> vlc-devel mailing list<br>
> To unsubscribe or modify your subscription options:<br>
> https://mailman.videolan.org/listinfo/vlc-devel<br>
> <br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
https://mailman.videolan.org/listinfo/vlc-devel</p>
</blockquote></div><br></div>