--- cmake/modules/FindMySQLAmarok.cmake.orig	2014-05-06 20:23:58.000000000 +0900
+++ cmake/modules/FindMySQLAmarok.cmake	2014-05-06 21:08:32.000000000 +0900
@@ -13,19 +13,10 @@
 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
 
 if(NOT WIN32)
-    find_program(MYSQLCONFIG_EXECUTABLE NAMES mysql_config mysql_config5 PATHS ${BIN_INSTALL_DIR} ~/usr/bin /usr/local/bin)
+    set(MYSQLCONFIG_EXECUTABLE @PREFIX@/lib/@MYSQL@/bin/mysql_config)
 endif(NOT WIN32)
 
-find_path(MYSQL_INCLUDE_DIR mysql.h
-    /opt/local/include/mysql5/mysql
-    /opt/mysql/mysql/include
-    /opt/mysqle/include/mysql
-    /opt/ports/include/mysql5/mysql
-    /usr/include/mysql
-    /usr/local/include/mysql
-    /usr/mysql/include/mysql
-    ~/usr/include/mysql
-)
+set(MYSQL_INCLUDE_DIR @PREFIX@/include/@MYSQL@/mysql)
 
 if(MYSQLCONFIG_EXECUTABLE)
     exec_program(${MYSQLCONFIG_EXECUTABLE} ARGS --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE MYSQL_CFLAGS)
