Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Nov 2017 21:48:11 +0000 (UTC)
From:      Bernard Spil <brnrd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r454463 - head/databases/mariadb102-client
Message-ID:  <201711182148.vAILmB1E048434@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brnrd
Date: Sat Nov 18 21:48:11 2017
New Revision: 454463
URL: https://svnweb.freebsd.org/changeset/ports/454463

Log:
  databases/mariadb102-client: Fix linking issues in downstream ports
  
   - mariadb_config produces incorrect output [1]
  
  1: https://jira.mariadb.org/browse/MDEV-14439
  
  Reported by:	Alexandre

Modified:
  head/databases/mariadb102-client/Makefile

Modified: head/databases/mariadb102-client/Makefile
==============================================================================
--- head/databases/mariadb102-client/Makefile	Sat Nov 18 21:27:47 2017	(r454462)
+++ head/databases/mariadb102-client/Makefile	Sat Nov 18 21:48:11 2017	(r454463)
@@ -1,6 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	mariadb
+PORTREVISION=	1
 PKGNAMESUFFIX=	102-client
 
 COMMENT=	Multithreaded SQL database (client)
@@ -19,6 +20,11 @@ CMAKE_ARGS+=	-DWITHOUT_SERVER=1 \
 USE_LDCONFIG=	${PREFIX}/lib/mysql
 
 CLIENT_ONLY=	yes
+
+post-configure:
+	${REINPLACE_CMD} -Ee 's|(#define INCLUDE.*)"$$|\1 -I${PREFIX}/include"|' \
+		-e 's|(#define LIBS.*)"\\ $$|\1 -L${PREFIX}/lib "\\|' \
+		${WRKSRC}/libmariadb/mariadb_config/mariadb_config.c
 
 post-install:
 	${RM} ${STAGEDIR}${PREFIX}/share/aclocal/mysql.m4



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711182148.vAILmB1E048434>