[153554] trunk/dports/math/octave-database/Portfile

Ryan Schmidt ryandesign at macports.org
Thu Oct 6 05:14:26 PDT 2016


> On Oct 4, 2016, at 7:48 AM, mps at macports.org wrote:
> 
> Revision
> 153554
> Author
> mps at macports.org
> Date
> 2016-10-04 05:48:43 -0700 (Tue, 04 Oct 2016)
> Log Message
> 
> octave-database: provide mysql variants, fix depends_lib.
> Modified Paths
> 
> 	• trunk/dports/math/octave-database/Portfile
> Diff
> 
> Modified: trunk/dports/math/octave-database/Portfile (153553 => 153554)
> 
> --- trunk/dports/math/octave-database/Portfile	2016-10-04 10:54:01 UTC (rev 153553)
> +++ trunk/dports/math/octave-database/Portfile	2016-10-04 12:48:43 UTC (rev 153554)
> 
> @@ -5,6 +5,7 @@
> 
>  PortGroup           octave 1.0
> 
>  
> 
>  octave.setup        database 2.4.2
> 
> +revision            1
> 
>  platforms           darwin
> 
>  license             GPL-3+
> 
>  maintainers         mps openmaintainer
> 
> @@ -17,13 +18,35 @@
> 
>  
> 
>  depends_lib-append  port:octave-struct \
> 
>                      port:swig-octave \
> 
> -                    path:bin/mysql_config:mysql56 \
> 
>                      port:sqlite3 \
> 
>                      port:unixODBC
> 
>  
> 
> +# set mysql variants
> +variant mysql55 conflicts mysql56 mysql57 mariadb percona description {Use MySQL 5.5 libraries} {
> +	depends_lib-append      port:mysql55
> +}
> +
> +variant mysql56 conflicts mysql55 mysql57 mariadb percona description {Use MySQL 5.6 libraries} {
> +	depends_lib-append      port:mysql56
> +}
> +
> +variant mysql57 conflicts mysql55 mysql56 mariadb percona description {Use MySQL 5.7 libraries} {
> +	depends_lib-append      port:mysql57
> +}
> +
> +variant mariadb conflicts mmysql55 mysql56 mysql57 percona description {Use MariaDB libraries} {
> +	depends_lib-append      port:mariadb
> +}
> +
> +variant percona conflicts mysql55 mysql56 mysql57 mariadb description {Use Percona libraries} {
> +	depends_lib-append      port:percona
> +}
> +
> +if {![variant_isset mysql55] && ![variant_isset mysql56] && ![variant_isset mysql57] && ![variant_isset mariadb] && ![variant_isset percona]} {
> +		default_variants +mysql56
> +}
> +

How are you telling the build system which mysql to use?




More information about the macports-dev mailing list