Ticket #12226: 0001-hvif2png-hvif2png-building-on-MacOS-X.patch

File 0001-hvif2png-hvif2png-building-on-MacOS-X.patch, 1.3 KB (added by apl-haiku, 4 years ago)
  • build/jam/BuildSetup

    From 06fc0b4cca26d2f074a3e847fd1c0204ee485e00 Mon Sep 17 00:00:00 2001
    From: Andrew Lindesay <apl@lindesay.co.nz>
    Date: Thu, 23 Jul 2015 23:00:02 +1200
    Subject: [PATCH] hvif2png: hvif2png building on MacOS-X
    
    * support for macports lib and headers dirs
    * linking lib change for MacOS-X for tool build
    ---
     build/jam/BuildSetup       | 5 +++++
     src/tools/hvif2png/Jamfile | 2 +-
     2 files changed, 6 insertions(+), 1 deletion(-)
    
    diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup
    index d917140..9757ba9 100644
    a b if $(HOST_PLATFORM) = freebsd { 
    594594
    595595if $(HOST_PLATFORM) = darwin {
    596596    HOST_HDRS += [ FDirName $(HAIKU_TOP) src build libgnuregex ] ;
     597
     598    # MacOS-X users may be using macports libraries in which case the headers
     599    # and the libs are located in /opt/local/...
     600    HOST_HDRS += /opt/local/include ;
     601    HOST_LINKFLAGS += -L/opt/local/lib ;
    597602}
    598603
    599604HOST_BE_API_HEADERS =
  • src/tools/hvif2png/Jamfile

    diff --git a/src/tools/hvif2png/Jamfile b/src/tools/hvif2png/Jamfile
    index 10b698c..07bf44b 100644
    a b USES_BE_API on <build>hvif2png = true ; 
    77BuildPlatformMain <build>hvif2png :
    88    hvif2png.cpp
    99    :
    10     $(HOST_LIBBE) $(HOST_LIBROOT) png
     10    $(HOST_LIBBE) $(HOST_LIBROOT) $(HOST_LIBSUPC++) png
    1111;