Skip to content

Commit

Permalink
apr-util: add postgresql16 variant
Browse files Browse the repository at this point in the history
  • Loading branch information
dgilman authored and pmetzger committed Jul 18, 2024
1 parent 7a80fb5 commit 2c8c528
Showing 1 changed file with 3 additions and 42 deletions.
45 changes: 3 additions & 42 deletions devel/apr-util/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PortSystem 1.0

name apr-util
version 1.6.3
revision 1
revision 2
categories devel
maintainers {geeklair.net:dluke @danielluke}
description utilities built with the apache group's portability library
Expand Down Expand Up @@ -84,49 +84,10 @@ pre-build {
}
}

variant postgresql84 description {Build with postgres support (using postgresql v8.4)} conflicts postgresql82 postgresql83 {
depends_lib-append port:postgresql84
variant postgresql16 description {Build with postgres support (using postgresql v16)} conflicts {
depends_lib-append port:postgresql16
configure.args-delete --without-pgsql
configure.args-append --with-pgsql=yes
configure.cppflags-append "-I${prefix}/include/postgresql84"
configure.ldflags-append "-L${prefix}/lib/postgresql84"
post-patch {
set extralibs "${extralibs} -L${prefix}/lib/postgresql84"
reinplace "s|^INCLUDES = |INCLUDES = -I@prefix@/include/postgresql84 |" \
$worksrcpath/Makefile.in
reinplace "s|^APRUTIL_LDFLAGS = |APRUTIL_LDFLAGS = -L@prefix@/lib/postgresql84 |" \
$worksrcpath/Makefile.in
}
}

variant postgresql83 description {Build with postgres support (using postgresql v8.3)} conflicts postgresql82 postgresql84 {
depends_lib-append port:postgresql83
configure.args-delete --without-pgsql
configure.args-append --with-pgsql=yes
configure.cppflags-append "-I${prefix}/include/postgresql83"
configure.ldflags-append "-L${prefix}/lib/postgresql83"
post-patch {
set extralibs "${extralibs} -L${prefix}/lib/postgresql83"
reinplace "s|^INCLUDES = |INCLUDES = -I@prefix@/include/postgresql83 |" \
$worksrcpath/Makefile.in
reinplace "s|^APRUTIL_LDFLAGS = |APRUTIL_LDFLAGS = -L@prefix@/lib/postgresql83 |" \
$worksrcpath/Makefile.in
}
}

variant postgresql82 description {Build with postgres support (using postgresql v8.2)} conflicts postgresql83 postgresql84 {
depends_lib-append port:postgresql82
configure.args-delete --without-pgsql
configure.args-append --with-pgsql=yes
configure.cppflags-append "-I${prefix}/include/postgresql82"
configure.ldflags-append "-L${prefix}/lib/postgresql82"
post-patch {
set extralibs "${extralibs} -L${prefix}/lib/postgresql82"
reinplace "s|^INCLUDES = |INCLUDES = -I@prefix@/include/postgresql82 |" \
$worksrcpath/Makefile.in
reinplace "s|^APRUTIL_LDFLAGS = |APRUTIL_LDFLAGS = -L@prefix@/lib/postgresql82 |" \
$worksrcpath/Makefile.in
}
}

variant mysql51 conflicts mysql55 mysql56 mariadb percona description {Enable MySQL 5.1 support} {
Expand Down

0 comments on commit 2c8c528

Please sign in to comment.