Ticket #18537: haiku_exr.patch

File haiku_exr.patch, 3.5 KB (added by Begasus, 5 months ago)

First draft diff file to get the build started

  • build/jam/BuildFeatures

    diff --git a/build/jam/BuildFeatures b/build/jam/BuildFeatures
    index 323d2c0d..e29a39c9 100644
    a b if [ IsPackageAvailable tiff4_devel ] {  
    566566
    567567
    568568# openexr
    569 if [ IsPackageAvailable openexr_devel ] {
    570        ExtractBuildFeatureArchives openexr :
    571                file: base openexr
     569if [ IsPackageAvailable openexr30_devel ] {
     570       ExtractBuildFeatureArchives openexr30 :
     571               file: base openexr30
    572572                       runtime: lib
    573                file: devel openexr_devel
     573               file: devel openexr30_devel
    574574                       depends: base
    575575                       libraries:
    576                                $(developLibDir)/libIlmImf.so
    577                                $(developLibDir)/libIlmImfUtil.so
    578                                $(developLibDir)/libHalf.so
    579576                               $(developLibDir)/libIex.so
    580                                $(developLibDir)/libIexMath.so
    581577                               $(developLibDir)/libIlmThread.so
    582578                               $(developLibDir)/libImath.so
    583                        headers: $(developHeadersDir) $(developHeadersDir)/OpenEXR
     579                               $(developLibDir)/libOpenEXR.so
     580                               $(developLibDir)/libOpenEXRUtil.so
     581                       headers: $(developHeadersDir) $(developHeadersDir)/OpenEXR $(developHeadersDir)/Imath
    584582               ;
    585583
    586        EnableBuildFeatures openexr ;
     584       EnableBuildFeatures openexr30 ;
    587585} else {
    588        unavailableBuildFeatures += openexr ;
     586       unavailableBuildFeatures += openexr30 ;
    589587}
    590588
    591589
  • build/jam/repositories/HaikuPorts/x86_64

    diff --git a/build/jam/repositories/HaikuPorts/x86_64 b/build/jam/repositories/HaikuPorts/x86_64
    index b81791a9..8c6324ee 100644
    a b RemotePackageRepository HaikuPorts  
    199199       nghttp2-1.43.0-1
    200200       nghttp2_devel-1.43.0-1
    201201       openexr-2.4.1-1
    202        openexr_devel-2.4.1-1
    203202       openexr30-3.0.5-1
     203       openexr30_devel-3.0.5-1
    204204       openjpeg-2.4.0-2
    205205       openjpeg_devel-2.4.0-2
    206206       openssh-9.3p1-1
  • src/add-ons/translators/exr/Jamfile

    diff --git a/src/add-ons/translators/exr/Jamfile b/src/add-ons/translators/exr/Jamfile
    index ad2b1be2..994eaf52 100644
    a b AddResources EXRTranslator : EXRTranslator.rdef ;  
    77local architectureObject ;
    88for architectureObject in [ MultiArchSubDirSetup ] {
    99       on $(architectureObject) {
    10                UseBuildFeatureHeaders openexr ;
     10               UseBuildFeatureHeaders openexr30 ;
    1111               Includes [ FGristFiles ConfigView.cpp EXRTranslator.cpp EXRGamma.cpp
    1212                       IStreamWrapper.cpp ]
    13                        : [ BuildFeatureAttribute openexr : headers ] ;
     13                       : [ BuildFeatureAttribute openexr30 : headers ] ;
    1414
    1515               Translator [ MultiArchDefaultGristFiles EXRTranslator ] :
    1616                       main.cpp
    for architectureObject in [ MultiArchSubDirSetup ] {  
    2020                       IStreamWrapper.cpp
    2121                       : be translation textencoding [ TargetLibstdc++ ]
    2222                       [ MultiArchDefaultGristFiles libtranslatorsutils.a ]
    23                        [ BuildFeatureAttribute openexr : libraries ]
     23                       [ BuildFeatureAttribute openexr30 : libraries ]
    2424                       localestub
    2525                       : true
    2626               ;