aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2020-05-29 11:54:23 -0600
committerAriadne Conill <ariadne@dereferenced.org>2020-05-29 11:56:31 -0600
commit17d4129dcccac8df705bb91e7c36924d727cbb84 (patch)
tree1171aabb10af25c2b2293dab31097c980ec030b3
parent9465f17ea993e68430749e98df2491baa48acdc5 (diff)
downloadaports-17d4129dcccac8df705bb91e7c36924d727cbb84.tar.gz
aports-17d4129dcccac8df705bb91e7c36924d727cbb84.tar.bz2
aports-17d4129dcccac8df705bb91e7c36924d727cbb84.tar.xz
main/mariadb-connector-c: fix include and libdir paths in mariadb_config
-rw-r--r--main/mariadb-connector-c/APKBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/main/mariadb-connector-c/APKBUILD b/main/mariadb-connector-c/APKBUILD
index 250c700745..2ec5889323 100644
--- a/main/mariadb-connector-c/APKBUILD
+++ b/main/mariadb-connector-c/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mariadb-connector-c
pkgver=3.1.8
-pkgrel=0
+pkgrel=1
pkgdesc="The MariaDB Native Client library (C driver)"
url="https://mariadb.org/"
arch="all"
@@ -19,14 +19,16 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
+
+ # INSTALL_LIBDIR and INSTALL_INCLUDEDIR are relative to CMAKE_INSTALL_PREFIX.
cmake \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_C_FLAGS="$CFLAGS" \
- -DINSTALL_LIBDIR=/usr/lib \
- -DINSTALL_INCLUDEDIR=/usr/include/mysql \
+ -DINSTALL_LIBDIR=lib \
+ -DINSTALL_INCLUDEDIR=include/mysql \
\
-DMARIADB_PORT=3306 \
-DMARIADB_UNIX_ADDR=/run/mysqld/mysqld.sock \