diff options
author | roam <roam@FreeBSD.org> | 2003-10-03 16:10:16 +0000 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2003-10-03 16:10:16 +0000 |
commit | 9cd208a640d800b3a4825089889603fedaf1245b (patch) | |
tree | 1207c01574835fe458b22cb8de2cb01e8164fc46 /databases/mysql40-server | |
parent | a04a8fb504c1fe4da18fd53696182c6fd2a22e2a (diff) | |
download | FreeBSD-ports-9cd208a640d800b3a4825089889603fedaf1245b.zip FreeBSD-ports-9cd208a640d800b3a4825089889603fedaf1245b.tar.gz |
Protect against accidentally defining USE_MYSQL in the environment or
on the make(1) command line[1].
Unbreak mysql40-server's building on -CURRENT (-pthread)[2].
PR: 56252[1], 56925[2]
Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org> [1],
Alex Dupre <sysadmin@alexdupre.com> (maintainer) [2]
Diffstat (limited to 'databases/mysql40-server')
-rw-r--r-- | databases/mysql40-server/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/databases/mysql40-server/Makefile b/databases/mysql40-server/Makefile index 2dfd101..836269e 100644 --- a/databases/mysql40-server/Makefile +++ b/databases/mysql40-server/Makefile @@ -46,6 +46,10 @@ CONFIGURE_ARGS= --localstatedir=${DB_DIR} \ --with-comment='FreeBSD port: ${PKGNAME}' \ --enable-thread-safe-client +.ifdef USE_MYSQL +.error You have `USE_MYSQL' variable defined either in environment or in make(1) arguments. Please undefine and try again. +.endif + .include <bsd.port.pre.mk> .if ${MACHINE_ARCH} == "i386" @@ -126,6 +130,7 @@ pre-fetch: post-patch: @${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_server_dirs@ scripts support-files|g" ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e "s|install: install-am|install:|g" ${WRKSRC}/include/Makefile.in + @${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} "s|-pthread|${PTHREAD_LIBS}|g" .if defined(WITH_OPENSSL) && defined(BUILD_STATIC) pre-configure: @@ -172,6 +177,7 @@ CONFIGURE_ARGS+=--without-server post-patch: @${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_client_dirs@ tests man|g" ${WRKSRC}/Makefile.in + @${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} "s|-pthread|${PTHREAD_LIBS}|g" post-install: @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/000.mysql-client.sh |