Commit 5e6c4aae authored by Holger Jaekel's avatar Holger Jaekel Committed by Natanael Copa

main/mariadb-connector-c: Fix include and libs path in mariadb_config

parent b9a5fa9e
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mariadb-connector-c pkgname=mariadb-connector-c
pkgver=3.1.3 pkgver=3.1.3
pkgrel=0 pkgrel=1
pkgdesc="The MariaDB Native Client library (C driver)" pkgdesc="The MariaDB Native Client library (C driver)"
url="https://mariadb.org/" url="https://mariadb.org/"
arch="all" arch="all"
...@@ -11,6 +11,7 @@ makedepends="$depends_dev cmake" ...@@ -11,6 +11,7 @@ makedepends="$depends_dev cmake"
replaces="mariadb-client-libs" replaces="mariadb-client-libs"
subpackages="$pkgname-dev" subpackages="$pkgname-dev"
source="https://downloads.mariadb.org/interstitial/connector-c-$pkgver/mariadb-connector-c-$pkgver-src.tar.gz source="https://downloads.mariadb.org/interstitial/connector-c-$pkgver/mariadb-connector-c-$pkgver-src.tar.gz
cmake.patch
fix-ucontext-header.patch fix-ucontext-header.patch
" "
builddir="$srcdir/mariadb-connector-c-$pkgver-src" builddir="$srcdir/mariadb-connector-c-$pkgver-src"
...@@ -57,4 +58,5 @@ dev() { ...@@ -57,4 +58,5 @@ dev() {
} }
sha512sums="ca3809a5f1a33317962908ee40d5c339ba6b02c5c8818bf12af9b78eb2289efad711ab74ac7706d711951b22957ba897b5e80b60e8df44924ca70569a4e1c5e7 mariadb-connector-c-3.1.3-src.tar.gz sha512sums="ca3809a5f1a33317962908ee40d5c339ba6b02c5c8818bf12af9b78eb2289efad711ab74ac7706d711951b22957ba897b5e80b60e8df44924ca70569a4e1c5e7 mariadb-connector-c-3.1.3-src.tar.gz
a3a1ec5fa984cd4a3545436c8a6f3cd5495bc2c0644ed11dd8957df399f72c9b4545f65b255909d31732b73513fe40bac98f2bffd3180ecfff22efd5ce1d38f0 cmake.patch
757a2d3531ee271cf5473671bf4d0ac07dc8eb94ab4b6ede848ba7a55415a77f90e7275103be91c73e343e94cdbf2cd652eb6cef6ed48917991733d60d3b8777 fix-ucontext-header.patch" 757a2d3531ee271cf5473671bf4d0ac07dc8eb94ab4b6ede848ba7a55415a77f90e7275103be91c73e343e94cdbf2cd652eb6cef6ed48917991733d60d3b8777 fix-ucontext-header.patch"
Summary: Fix include and libs path in mariadb_config
----
--- a/mariadb_config/mariadb_config.c.in
+++ b/mariadb_config/mariadb_config.c.in
@@ -5,8 +5,8 @@
static char *mariadb_progname;
-#define INCLUDE "-I@CMAKE_INSTALL_PREFIX@/@INSTALL_INCLUDEDIR@ -I@CMAKE_INSTALL_PREFIX@/@INSTALL_INCLUDEDIR@/mysql"
-#define LIBS "-L@CMAKE_INSTALL_PREFIX@/@INSTALL_LIBDIR@/ -lmariadb"
+#define INCLUDE "-I@INSTALL_INCLUDEDIR@ -I@INSTALL_INCLUDEDIR@/mysql"
+#define LIBS "-L@INSTALL_LIBDIR@/ -lmariadb"
#define LIBS_SYS "@extra_dynamic_LDFLAGS@"
#define CFLAGS INCLUDE
#define VERSION "@MARIADB_CLIENT_VERSION@"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment