2010-06-04 18:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* utils/hbmk2/hbmk2.prg
    + Added pkg-config and *-config support for MacPorts.
This commit is contained in:
Viktor Szakats
2010-06-04 16:50:59 +00:00
parent 81c9b0506c
commit f3c2721fff
2 changed files with 17 additions and 0 deletions

View File

@@ -17,6 +17,10 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-06-04 18:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
+ Added pkg-config and *-config support for MacPorts.
2010-06-04 15:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/*
* Deleted 'www.' from harbour-project.org website name.

View File

@@ -6124,6 +6124,19 @@ STATIC PROCEDURE dep_try_pkg_detection( hbmk, dep )
IF Empty( cStdOut )
hb_processRun( cName + "-config --version --libs --cflags",, @cStdOut, @cErrOut )
ENDIF
#if defined( __PLATFORM__DARWIN )
/* DarwinPorts */
IF Empty( cStdOut )
IF hb_FileExists( "/opt/local/bin/pkg-config" )
hb_processRun( "/opt/local/bin/pkg-config --modversion --libs --cflags " + cName,, @cStdOut, @cErrOut )
ENDIF
ENDIF
IF Empty( cStdOut )
IF hb_FileExists( "/opt/local/bin/" + cName + "-config" )
hb_processRun( "/opt/local/bin/" + cName + "-config --version --libs --cflags",, @cStdOut, @cErrOut )
ENDIF
ENDIF
#endif
IF ! Empty( cStdOut )