hvif2png: Fix build on Mac OS X.

* Add support for macports lib and headers dirs.
 * Link libs change for Mac OS X for tool build.

Signed-off-by: Augustin Cavalier <[email protected]>
This commit is contained in:
Andrew Lindesay
2015-07-25 10:23:24 -04:00
committed by Augustin Cavalier
parent 4a839f2daa
commit 3860139319
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -594,6 +594,11 @@ if $(HOST_PLATFORM) = freebsd {
if $(HOST_PLATFORM) = darwin {
HOST_HDRS += [ FDirName $(HAIKU_TOP) src build libgnuregex ] ;
# Mac OS X users may be using macports libraries, in which case the headers
# and the libs are located in /opt/local/.
HOST_HDRS += /opt/local/include ;
HOST_LINKFLAGS += -L/opt/local/lib ;
}
HOST_BE_API_HEADERS =
+1 -1
View File
@@ -7,5 +7,5 @@ USES_BE_API on <build>hvif2png = true ;
BuildPlatformMain <build>hvif2png :
hvif2png.cpp
:
$(HOST_LIBBE) $(HOST_LIBROOT) png
$(HOST_LIBBE) $(HOST_LIBROOT) $(HOST_LIBSUPC++) png
;