diff options
Diffstat (limited to 'databases/gtksql')
-rw-r--r-- | databases/gtksql/Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/databases/gtksql/Makefile b/databases/gtksql/Makefile index d3107eb5bf66..2d6ed5669b84 100644 --- a/databases/gtksql/Makefile +++ b/databases/gtksql/Makefile @@ -24,8 +24,7 @@ USE_GNOME= gtk12 .if defined(WITH_MYSQL) || (exists(${LOCALBASE}/lib/mysql/libmysqlclient.a) \ && !defined(WITHOUT_MYSQL)) -HAVE_MYSQL= yes -LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client +USE_MYSQL= yes .endif .if defined(WITH_PGSQL) || (exists(${LOCALBASE}/lib/libpq.a) \ && !defined(WITHOUT_PGSQL)) @@ -34,7 +33,7 @@ USE_PGSQL= yes .endif pre-patch: -.if !defined(HAVE_MYSQL) && !defined(HAVE_PGSQL) +.if !defined(USE_MYSQL) && !defined(HAVE_PGSQL) @${ECHO} "You must specify which database to use, possible are:" @${ECHO} @${ECHO} "make WITH_MYSQL=yes (for MySQL support)" @@ -44,7 +43,7 @@ pre-patch: .endif do-configure: -.if defined(HAVE_MYSQL) +.if defined(USE_MYSQL) @${REINPLACE_CMD} -e "s/^#MYSQL/MYSQL/g" ${WRKSRC}/Makefile .endif .if defined(HAVE_PGSQL) |