summaryrefslogtreecommitdiffstats
path: root/databases/xmysqladmin
diff options
context:
space:
mode:
authordirk <dirk@FreeBSD.org>1999-01-14 21:22:29 +0000
committerdirk <dirk@FreeBSD.org>1999-01-14 21:22:29 +0000
commitab00ea47fccc9e23b676c4de97a59b629323e81f (patch)
treef34a291259b41401d1f6a6d8ffe116bd4857facb /databases/xmysqladmin
parent9c0370e88ff70c4ae290e9f21dfbf24a0ca9f2f7 (diff)
downloadFreeBSD-ports-ab00ea47fccc9e23b676c4de97a59b629323e81f.zip
FreeBSD-ports-ab00ea47fccc9e23b676c4de97a59b629323e81f.tar.gz
Change the dependencies to MySQL:
The default is mysql322 now, but take mysql321 if it is installed. (mysql321 installs a static libmysqlclient.a only, mysql322 installs a static and shared version of the library. Note that the build dependency to mysql321 is a no op actually. It is in there to improve understanding(?).)
Diffstat (limited to 'databases/xmysqladmin')
-rw-r--r--databases/xmysqladmin/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/databases/xmysqladmin/Makefile b/databases/xmysqladmin/Makefile
index 321c85f..4f2b22c 100644
--- a/databases/xmysqladmin/Makefile
+++ b/databases/xmysqladmin/Makefile
@@ -3,7 +3,7 @@
# Date created: Di 2 Sep 1997 16:29:27 CEST
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
#
-# $Id: Makefile,v 1.13 1998/11/21 10:00:02 andreas Exp $
+# $Id: Makefile,v 1.14 1999/01/07 08:19:29 simokawa Exp $
#
DISTNAME= xmysqladmin-0.4.4
@@ -15,9 +15,13 @@ MASTER_SITES= http://www.tcx.se/Contrib/ \
MAINTAINER= andreas@FreeBSD.ORG
-BUILD_DEPENDS= mysql:${PORTSDIR}/databases/mysql321
LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm \
xforms.0:${PORTSDIR}/x11-toolkits/xforms
+.if !exists(${PREFIX}/lib/mysql/libmysqlclient.a) || exists(${PREFIX}/lib/mysql/libmysqlclient.so)
+LIB_DEPENDS+= mysqlclient.5:${PORTSDIR}/databases/mysql322
+.else
+BUILD_DEPENDS= ${PREFIX}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql321
+.endif
# depends on xforms
ONLY_FOR_ARCHS= i386
OpenPOWER on IntegriCloud