diff options
author | ale <ale@FreeBSD.org> | 2009-03-04 23:54:29 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2009-03-04 23:54:29 +0800 |
commit | b25f900d962c20209f0607b507e45489dfdbdac4 (patch) | |
tree | b803ef96ef561a7c694856e57d86659b62140067 /Mk/bsd.database.mk | |
parent | 9819607fa1537e0cb40e68413d079733fbd77360 (diff) | |
download | freebsd-ports-graphics-b25f900d962c20209f0607b507e45489dfdbdac4.tar.gz freebsd-ports-graphics-b25f900d962c20209f0607b507e45489dfdbdac4.tar.zst freebsd-ports-graphics-b25f900d962c20209f0607b507e45489dfdbdac4.zip |
Add support to mysql server and embedded library dependencies.
Now amarok2 port can be imported and use the following row:
USE_MYSQL= embedded
Diffstat (limited to 'Mk/bsd.database.mk')
-rw-r--r-- | Mk/bsd.database.mk | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Mk/bsd.database.mk b/Mk/bsd.database.mk index 37a530be521..57cbbd92843 100644 --- a/Mk/bsd.database.mk +++ b/Mk/bsd.database.mk @@ -15,7 +15,7 @@ Database_Include_MAINTAINER= ports@FreeBSD.org # or WANT_[DATABSE]_VER will include this file too. # ## -# USE_MYSQL - Add MySQL client dependency. +# USE_MYSQL - Add MySQL (client/server/embedded) dependency. (default: client) # If no version is given (by the maintainer via the port or # by the user via defined variable), try to find the # currently installed version. Fall back to default if @@ -130,12 +130,12 @@ IGNORE= cannot install: MySQL versions mismatch: mysql${_MYSQL_VER}-client is in .endif .endif +.if (${USE_MYSQL} == "embedded") +IGNORE_WITH_MYSQL= 323 40 41 +.endif + # And now we are checking if we can use it .if defined(MYSQL${MYSQL_VER}_LIBVER) -# compatability shim -.if defined(BROKEN_WITH_MYSQL) -IGNORE_WITH_MYSQL=${BROKEN_WITH_MYSQL} -.endif .if defined(IGNORE_WITH_MYSQL) . for VER in ${IGNORE_WITH_MYSQL} . if (${MYSQL_VER} == "${VER}") @@ -143,7 +143,14 @@ IGNORE= cannot install: doesn't work with MySQL version : ${MYSQL_VER} (Doesn't . endif . endfor .endif # IGNORE_WITH_MYSQL +.if (${USE_MYSQL} == "server" || ${USE_MYSQL} == "embedded") +RUN_DEPENDS+= ${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql${MYSQL_VER}-server +.if (${USE_MYSQL} == "embedded") +BUILD_DEPENDS+= ${LOCALBASE}/lib/mysql/libmysqld.a:${PORTSDIR}/databases/mysql${MYSQL_VER}-server +.endif +.else LIB_DEPENDS+= mysqlclient.${MYSQL${MYSQL_VER}_LIBVER}:${PORTSDIR}/databases/mysql${MYSQL_VER}-client +.endif .else IGNORE= cannot install: unknown MySQL version: ${MYSQL_VER} .endif # Check for correct libs |