diff --git a/harbour/ChangeLog b/harbour/ChangeLog index f41245d060..afbb857316 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -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. diff --git a/harbour/utils/hbmk2/hbmk2.prg b/harbour/utils/hbmk2/hbmk2.prg index 737a7ae6f4..ab6aa56bf0 100644 --- a/harbour/utils/hbmk2/hbmk2.prg +++ b/harbour/utils/hbmk2/hbmk2.prg @@ -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 )