aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordirk <dirk@FreeBSD.org>2001-05-24 04:26:06 +0800
committerdirk <dirk@FreeBSD.org>2001-05-24 04:26:06 +0800
commit331fc4ea51e8670dddf7a0ca3125155aacf100d6 (patch)
tree732df7e90aeb27c0206aaa4bdb83455c3c07e93b
parent785a942d661cc8b80209f7d8b4e62fb655f519f3 (diff)
downloadfreebsd-ports-gnome-331fc4ea51e8670dddf7a0ca3125155aacf100d6.tar.gz
freebsd-ports-gnome-331fc4ea51e8670dddf7a0ca3125155aacf100d6.tar.zst
freebsd-ports-gnome-331fc4ea51e8670dddf7a0ca3125155aacf100d6.zip
Add option for linuxthreads (WITH_LINUXTHREADS).
Submitted by: Alexey Zakirov <frank@agava.com>
-rw-r--r--databases/mysql323-server/Makefile7
-rw-r--r--databases/mysql40-server/Makefile7
-rw-r--r--databases/mysql41-server/Makefile7
-rw-r--r--databases/mysql50-server/Makefile7
-rw-r--r--databases/mysql51-server/Makefile7
-rw-r--r--databases/mysql54-server/Makefile7
-rw-r--r--databases/mysql55-server/Makefile7
-rw-r--r--databases/mysql60-server/Makefile7
-rw-r--r--databases/percona55-server/Makefile7
9 files changed, 63 insertions, 0 deletions
diff --git a/databases/mysql323-server/Makefile b/databases/mysql323-server/Makefile
index d03dfc0d2f81..168f2ee86685 100644
--- a/databases/mysql323-server/Makefile
+++ b/databases/mysql323-server/Makefile
@@ -40,9 +40,15 @@ CONFIGURE_ARGS+=--with-charset=${WITH_CHARSET}
CONFIGURE_ARGS+=--with-extra-charsets=${WITH_XCHARSET}
.endif
.endif
+.if defined(WITH_LINUXTHREADS)
+CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads -L${LOCALBASE}/lib -llthread -llgcc_r'
+CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
+LIB_DEPENDS+= lthread.2:${PORTSDIR}/devel/linuxthreads
+.endif
CONFIGURE_ENV+= PERL=${PERL} \
PERL5=${PERL} \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ CFLAGS="${CFLAGS}" \
CONFIGURE_ARGS="${CONFIGURE_ARGS}"
.include <bsd.port.pre.mk>
@@ -60,6 +66,7 @@ pre-fetch:
@${ECHO} " WITH_CHARSET=charset define the primary built-in charset (latin1);"
@${ECHO} " WITH_XCHARSET=list define other built-in charsets (may be 'all');"
@${ECHO} " DB_DIR=directory Set alternate directory for database files."
+ @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library."
@${ECHO} ""
# MySQL-Server part
diff --git a/databases/mysql40-server/Makefile b/databases/mysql40-server/Makefile
index d03dfc0d2f81..168f2ee86685 100644
--- a/databases/mysql40-server/Makefile
+++ b/databases/mysql40-server/Makefile
@@ -40,9 +40,15 @@ CONFIGURE_ARGS+=--with-charset=${WITH_CHARSET}
CONFIGURE_ARGS+=--with-extra-charsets=${WITH_XCHARSET}
.endif
.endif
+.if defined(WITH_LINUXTHREADS)
+CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads -L${LOCALBASE}/lib -llthread -llgcc_r'
+CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
+LIB_DEPENDS+= lthread.2:${PORTSDIR}/devel/linuxthreads
+.endif
CONFIGURE_ENV+= PERL=${PERL} \
PERL5=${PERL} \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ CFLAGS="${CFLAGS}" \
CONFIGURE_ARGS="${CONFIGURE_ARGS}"
.include <bsd.port.pre.mk>
@@ -60,6 +66,7 @@ pre-fetch:
@${ECHO} " WITH_CHARSET=charset define the primary built-in charset (latin1);"
@${ECHO} " WITH_XCHARSET=list define other built-in charsets (may be 'all');"
@${ECHO} " DB_DIR=directory Set alternate directory for database files."
+ @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library."
@${ECHO} ""
# MySQL-Server part
diff --git a/databases/mysql41-server/Makefile b/databases/mysql41-server/Makefile
index d03dfc0d2f81..168f2ee86685 100644
--- a/databases/mysql41-server/Makefile
+++ b/databases/mysql41-server/Makefile
@@ -40,9 +40,15 @@ CONFIGURE_ARGS+=--with-charset=${WITH_CHARSET}
CONFIGURE_ARGS+=--with-extra-charsets=${WITH_XCHARSET}
.endif
.endif
+.if defined(WITH_LINUXTHREADS)
+CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads -L${LOCALBASE}/lib -llthread -llgcc_r'
+CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
+LIB_DEPENDS+= lthread.2:${PORTSDIR}/devel/linuxthreads
+.endif
CONFIGURE_ENV+= PERL=${PERL} \
PERL5=${PERL} \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ CFLAGS="${CFLAGS}" \
CONFIGURE_ARGS="${CONFIGURE_ARGS}"
.include <bsd.port.pre.mk>
@@ -60,6 +66,7 @@ pre-fetch:
@${ECHO} " WITH_CHARSET=charset define the primary built-in charset (latin1);"
@${ECHO} " WITH_XCHARSET=list define other built-in charsets (may be 'all');"
@${ECHO} " DB_DIR=directory Set alternate directory for database files."
+ @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library."
@${ECHO} ""
# MySQL-Server part
diff --git a/databases/mysql50-server/Makefile b/databases/mysql50-server/Makefile
index d03dfc0d2f81..168f2ee86685 100644
--- a/databases/mysql50-server/Makefile
+++ b/databases/mysql50-server/Makefile
@@ -40,9 +40,15 @@ CONFIGURE_ARGS+=--with-charset=${WITH_CHARSET}
CONFIGURE_ARGS+=--with-extra-charsets=${WITH_XCHARSET}
.endif
.endif
+.if defined(WITH_LINUXTHREADS)
+CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads -L${LOCALBASE}/lib -llthread -llgcc_r'
+CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
+LIB_DEPENDS+= lthread.2:${PORTSDIR}/devel/linuxthreads
+.endif
CONFIGURE_ENV+= PERL=${PERL} \
PERL5=${PERL} \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ CFLAGS="${CFLAGS}" \
CONFIGURE_ARGS="${CONFIGURE_ARGS}"
.include <bsd.port.pre.mk>
@@ -60,6 +66,7 @@ pre-fetch:
@${ECHO} " WITH_CHARSET=charset define the primary built-in charset (latin1);"
@${ECHO} " WITH_XCHARSET=list define other built-in charsets (may be 'all');"
@${ECHO} " DB_DIR=directory Set alternate directory for database files."
+ @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library."
@${ECHO} ""
# MySQL-Server part
diff --git a/databases/mysql51-server/Makefile b/databases/mysql51-server/Makefile
index d03dfc0d2f81..168f2ee86685 100644
--- a/databases/mysql51-server/Makefile
+++ b/databases/mysql51-server/Makefile
@@ -40,9 +40,15 @@ CONFIGURE_ARGS+=--with-charset=${WITH_CHARSET}
CONFIGURE_ARGS+=--with-extra-charsets=${WITH_XCHARSET}
.endif
.endif
+.if defined(WITH_LINUXTHREADS)
+CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads -L${LOCALBASE}/lib -llthread -llgcc_r'
+CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
+LIB_DEPENDS+= lthread.2:${PORTSDIR}/devel/linuxthreads
+.endif
CONFIGURE_ENV+= PERL=${PERL} \
PERL5=${PERL} \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ CFLAGS="${CFLAGS}" \
CONFIGURE_ARGS="${CONFIGURE_ARGS}"
.include <bsd.port.pre.mk>
@@ -60,6 +66,7 @@ pre-fetch:
@${ECHO} " WITH_CHARSET=charset define the primary built-in charset (latin1);"
@${ECHO} " WITH_XCHARSET=list define other built-in charsets (may be 'all');"
@${ECHO} " DB_DIR=directory Set alternate directory for database files."
+ @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library."
@${ECHO} ""
# MySQL-Server part
diff --git a/databases/mysql54-server/Makefile b/databases/mysql54-server/Makefile
index d03dfc0d2f81..168f2ee86685 100644
--- a/databases/mysql54-server/Makefile
+++ b/databases/mysql54-server/Makefile
@@ -40,9 +40,15 @@ CONFIGURE_ARGS+=--with-charset=${WITH_CHARSET}
CONFIGURE_ARGS+=--with-extra-charsets=${WITH_XCHARSET}
.endif
.endif
+.if defined(WITH_LINUXTHREADS)
+CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads -L${LOCALBASE}/lib -llthread -llgcc_r'
+CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
+LIB_DEPENDS+= lthread.2:${PORTSDIR}/devel/linuxthreads
+.endif
CONFIGURE_ENV+= PERL=${PERL} \
PERL5=${PERL} \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ CFLAGS="${CFLAGS}" \
CONFIGURE_ARGS="${CONFIGURE_ARGS}"
.include <bsd.port.pre.mk>
@@ -60,6 +66,7 @@ pre-fetch:
@${ECHO} " WITH_CHARSET=charset define the primary built-in charset (latin1);"
@${ECHO} " WITH_XCHARSET=list define other built-in charsets (may be 'all');"
@${ECHO} " DB_DIR=directory Set alternate directory for database files."
+ @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library."
@${ECHO} ""
# MySQL-Server part
diff --git a/databases/mysql55-server/Makefile b/databases/mysql55-server/Makefile
index d03dfc0d2f81..168f2ee86685 100644
--- a/databases/mysql55-server/Makefile
+++ b/databases/mysql55-server/Makefile
@@ -40,9 +40,15 @@ CONFIGURE_ARGS+=--with-charset=${WITH_CHARSET}
CONFIGURE_ARGS+=--with-extra-charsets=${WITH_XCHARSET}
.endif
.endif
+.if defined(WITH_LINUXTHREADS)
+CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads -L${LOCALBASE}/lib -llthread -llgcc_r'
+CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
+LIB_DEPENDS+= lthread.2:${PORTSDIR}/devel/linuxthreads
+.endif
CONFIGURE_ENV+= PERL=${PERL} \
PERL5=${PERL} \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ CFLAGS="${CFLAGS}" \
CONFIGURE_ARGS="${CONFIGURE_ARGS}"
.include <bsd.port.pre.mk>
@@ -60,6 +66,7 @@ pre-fetch:
@${ECHO} " WITH_CHARSET=charset define the primary built-in charset (latin1);"
@${ECHO} " WITH_XCHARSET=list define other built-in charsets (may be 'all');"
@${ECHO} " DB_DIR=directory Set alternate directory for database files."
+ @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library."
@${ECHO} ""
# MySQL-Server part
diff --git a/databases/mysql60-server/Makefile b/databases/mysql60-server/Makefile
index d03dfc0d2f81..168f2ee86685 100644
--- a/databases/mysql60-server/Makefile
+++ b/databases/mysql60-server/Makefile
@@ -40,9 +40,15 @@ CONFIGURE_ARGS+=--with-charset=${WITH_CHARSET}
CONFIGURE_ARGS+=--with-extra-charsets=${WITH_XCHARSET}
.endif
.endif
+.if defined(WITH_LINUXTHREADS)
+CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads -L${LOCALBASE}/lib -llthread -llgcc_r'
+CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
+LIB_DEPENDS+= lthread.2:${PORTSDIR}/devel/linuxthreads
+.endif
CONFIGURE_ENV+= PERL=${PERL} \
PERL5=${PERL} \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ CFLAGS="${CFLAGS}" \
CONFIGURE_ARGS="${CONFIGURE_ARGS}"
.include <bsd.port.pre.mk>
@@ -60,6 +66,7 @@ pre-fetch:
@${ECHO} " WITH_CHARSET=charset define the primary built-in charset (latin1);"
@${ECHO} " WITH_XCHARSET=list define other built-in charsets (may be 'all');"
@${ECHO} " DB_DIR=directory Set alternate directory for database files."
+ @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library."
@${ECHO} ""
# MySQL-Server part
diff --git a/databases/percona55-server/Makefile b/databases/percona55-server/Makefile
index d03dfc0d2f81..168f2ee86685 100644
--- a/databases/percona55-server/Makefile
+++ b/databases/percona55-server/Makefile
@@ -40,9 +40,15 @@ CONFIGURE_ARGS+=--with-charset=${WITH_CHARSET}
CONFIGURE_ARGS+=--with-extra-charsets=${WITH_XCHARSET}
.endif
.endif
+.if defined(WITH_LINUXTHREADS)
+CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads -L${LOCALBASE}/lib -llthread -llgcc_r'
+CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
+LIB_DEPENDS+= lthread.2:${PORTSDIR}/devel/linuxthreads
+.endif
CONFIGURE_ENV+= PERL=${PERL} \
PERL5=${PERL} \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ CFLAGS="${CFLAGS}" \
CONFIGURE_ARGS="${CONFIGURE_ARGS}"
.include <bsd.port.pre.mk>
@@ -60,6 +66,7 @@ pre-fetch:
@${ECHO} " WITH_CHARSET=charset define the primary built-in charset (latin1);"
@${ECHO} " WITH_XCHARSET=list define other built-in charsets (may be 'all');"
@${ECHO} " DB_DIR=directory Set alternate directory for database files."
+ @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library."
@${ECHO} ""
# MySQL-Server part