[113783] trunk/dports/science/uhd/Portfile

michaelld at macports.org michaelld at macports.org
Sat Nov 23 08:44:54 PST 2013


Revision: 113783
          https://trac.macports.org/changeset/113783
Author:   michaelld at macports.org
Date:     2013-11-23 08:44:54 -0800 (Sat, 23 Nov 2013)
Log Message:
-----------
uhd:
+ add pkgconfig as build dependency;
+ add PKG_CONFIG_PATH and LIBUSB_DIR to configure environment to be explicit about where PC files are located.

Modified Paths:
--------------
    trunk/dports/science/uhd/Portfile

Modified: trunk/dports/science/uhd/Portfile
===================================================================
--- trunk/dports/science/uhd/Portfile	2013-11-23 16:39:58 UTC (rev 113782)
+++ trunk/dports/science/uhd/Portfile	2013-11-23 16:44:54 UTC (rev 113783)
@@ -45,12 +45,18 @@
 
 depends_lib-append	port:boost
 
+depends_build-append port:pkgconfig
+
 # do VPATH build
 
 post-extract        { file mkdir ${workpath}/build }
 configure.dir       ${workpath}/build
 build.dir           ${workpath}/build
 
+# set PKG_CONFIG_PATH to find libusb PC file
+
+configure.env-append PKG_CONFIG_PATH=${prefix}/lib/pkgconfig
+
 # remove top-level include path, such that internal headers are used
 # instead of any already-installed ones.
 
@@ -174,6 +180,7 @@
 variant libusb description {enable USB support via libusb version 1.0} {
     depends_lib-append port:libusb
     configure.args-append -DENABLE_USB=ON
+    configure.env-append LIBUSB_DIR=${prefix}
 }
 
 if {![variant_isset libusb]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131123/5940ac33/attachment.html>


More information about the macports-changes mailing list