[78169] trunk/dports/devel/cryptlib/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Apr 27 05:38:57 PDT 2011


Revision: 78169
          http://trac.macports.org/changeset/78169
Author:   ryandesign at macports.org
Date:     2011-04-27 05:38:57 -0700 (Wed, 27 Apr 2011)
Log Message:
-----------
cryptlib: prevent installation if unixODBC is active; it would fail

Modified Paths:
--------------
    trunk/dports/devel/cryptlib/Portfile

Modified: trunk/dports/devel/cryptlib/Portfile
===================================================================
--- trunk/dports/devel/cryptlib/Portfile	2011-04-27 12:38:23 UTC (rev 78168)
+++ trunk/dports/devel/cryptlib/Portfile	2011-04-27 12:38:57 UTC (rev 78169)
@@ -36,6 +36,17 @@
 
 use_configure	no
 
+pre-configure {
+	foreach {badport badfile} "unixODBC ${prefix}/include/sql.h" {
+		if {[file exists ${badfile}]} {
+			ui_error "${name} cannot be built while ${badport} is active."
+			ui_error "Please deactivate ${badport} and try again."
+			ui_error "You can reactivate ${badport} again later."
+			return -code error "${badport} is installed"
+		}
+	}
+}
+
 build.target	default shared
 build.args		LIBDIR="${prefix}/lib" \
                 CFLAGS="${configure.cflags} ${configure.cc_archflags} -c -D__UNIX__ -DNDEBUG -I." \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110427/210130ef/attachment.html>


More information about the macports-changes mailing list