[80805] trunk/dports/devel/quickfix

blb at macports.org blb at macports.org
Sun Jul 17 15:20:10 PDT 2011


Revision: 80805
          http://trac.macports.org/changeset/80805
Author:   blb at macports.org
Date:     2011-07-17 15:20:08 -0700 (Sun, 17 Jul 2011)
Log Message:
-----------
devel/quickfix - install SQL files for DB usage; add postgresql 9.0 support

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

Added Paths:
-----------
    trunk/dports/devel/quickfix/files/patch-postgresql90.diff

Modified: trunk/dports/devel/quickfix/Portfile
===================================================================
--- trunk/dports/devel/quickfix/Portfile	2011-07-17 20:35:21 UTC (rev 80804)
+++ trunk/dports/devel/quickfix/Portfile	2011-07-17 22:20:08 UTC (rev 80805)
@@ -3,6 +3,7 @@
 PortSystem          1.0
 name                quickfix
 version             1.13.3
+revision            1
 license             Permissive
 # http://www.quickfixengine.org/quickfix/doc/html/license.html
 categories          devel finance
@@ -31,18 +32,29 @@
 configure.args      --with-java
 configure.env       "JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home"
 
+post-destroot {
+   xinstall -m 755 -d ${destroot}${prefix}/share/${name}/sql
+   copy ${worksrcpath}/src/sql/postgresql ${destroot}${prefix}/share/${name}/sql
+}
+
 variant python description {Include python support} {
    depends_lib-append      port:python26
    configure.args-append   --with-python=${prefix}
    patchfiles-append       patch-python.diff
 }
 
-variant postgresql84 description {Include PostGreSQL 8.4 support} {
+variant postgresql84 conflicts postgresql90 description {Include PostGreSQL 8.4 support} {
    depends_lib-append      port:postgresql84
    configure.args-append   --with-postgresql=${prefix}
    patchfiles-append       patch-postgresql84.diff
 }
 
+variant postgresql90 conflicts postgresql84 description {Include PostGreSQL 9.0 support} {
+   depends_lib-append      port:postgresql90
+   configure.args-append   --with-postgresql=${prefix}
+   patchfiles-append       patch-postgresql90.diff
+}
+
 livecheck.type      regex
 livecheck.url       ${homepage}download.html
 livecheck.regex     ${name}-(\[.\\d\]+)${extract.suffix}

Copied: trunk/dports/devel/quickfix/files/patch-postgresql90.diff (from rev 80762, trunk/dports/devel/quickfix/files/patch-postgresql84.diff)
===================================================================
--- trunk/dports/devel/quickfix/files/patch-postgresql90.diff	                        (rev 0)
+++ trunk/dports/devel/quickfix/files/patch-postgresql90.diff	2011-07-17 22:20:08 UTC (rev 80805)
@@ -0,0 +1,14 @@
+--- configure.orig	2010-04-05 20:00:26.000000000 -0600
++++ configure	2010-05-02 15:37:33.000000000 -0600
+@@ -14938,9 +14938,9 @@
+ 
+ if test $has_postgresql = true
+ then
+-    POSTGRESQL_CFLAGS="-I${POSTGRESQL_PREFIX}/include -I${POSTGRESQL_PREFIX}/include/postgresql"
++    POSTGRESQL_CFLAGS="-I${POSTGRESQL_PREFIX}/include -I${POSTGRESQL_PREFIX}/include/postgresql90"
+ 
+-    POSTGRESQL_LIBS="-L${POSTGRESQL_PREFIX}/lib -lpq"
++    POSTGRESQL_LIBS="-L${POSTGRESQL_PREFIX}/lib/postgresql90 -lpq"
+ 
+ 
+ $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110717/4da7390b/attachment-0001.html>


More information about the macports-changes mailing list