diff options
author | jlam <jlam> | 2002-01-27 22:36:07 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-01-27 22:36:07 +0000 |
commit | 8e1ffa4a65736e5ae173304376c89b77703fb399 (patch) | |
tree | 566f796d793aae11d0598f1918812652d2be4c76 /databases/mysql-client | |
parent | 3cc1f572b0838946a8f9876697f7f0f877f3dc70 (diff) | |
download | pkgsrc-8e1ffa4a65736e5ae173304376c89b77703fb399.tar.gz |
mysql_config places single-quotes around the directory name when queried
for --libs or --cflags: -L'directory' or -I'directory'. Strip those
quotes away in the config script wrapper to make it look more normal.
Diffstat (limited to 'databases/mysql-client')
-rw-r--r-- | databases/mysql-client/buildlink.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/databases/mysql-client/buildlink.mk b/databases/mysql-client/buildlink.mk index 7520874bd3d..d53dff6cc35 100644 --- a/databases/mysql-client/buildlink.mk +++ b/databases/mysql-client/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.1 2001/11/02 02:57:28 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.2 2002/01/27 22:36:07 jlam Exp $ # # This Makefile fragment is included by packages that use mysql-client. # @@ -31,6 +31,11 @@ BUILDLINK_TARGETS.mysql-client= mysql-client-buildlink BUILDLINK_TARGETS.mysql-client+= mysql-client-buildlink-config-wrapper BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.mysql-client} +BUILDLINK_CONFIG_WRAPPER_SED+= \ + -e "s|-I\(.\)${BUILDLINK_PREFIX.mysql-client}\(/include/mysql\)\(.\)|-I${BUILDLINK_DIR}\2|g" +BUILDLINK_CONFIG_WRAPPER_SED+= \ + -e "s|-L\(.\)${BUILDLINK_PREFIX.mysql-client}\(/lib/mysql\)\(.\)|-L${BUILDLINK_DIR}\2|g" + BUILDLINK_CONFIG.mysql-client= \ ${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config BUILDLINK_CONFIG_WRAPPER.mysql-client= \ |