aboutsummaryrefslogtreecommitdiff
path: root/databases/mysql323-server
diff options
context:
space:
mode:
authorDirk Froemberg <dirk@FreeBSD.org>2001-12-17 22:50:46 +0000
committerDirk Froemberg <dirk@FreeBSD.org>2001-12-17 22:50:46 +0000
commitb4349b0aca8da245e73ea0d16a5471ed19cb80f7 (patch)
tree92cbfbf01a3c5b3817a25af2dc7069bde8622e37 /databases/mysql323-server
parent411c75efacd4bfed032b9da5ffe73b60501bec53 (diff)
downloadports-b4349b0aca8da245e73ea0d16a5471ed19cb80f7.tar.gz
ports-b4349b0aca8da245e73ea0d16a5471ed19cb80f7.zip
Notes
Diffstat (limited to 'databases/mysql323-server')
-rw-r--r--databases/mysql323-server/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/databases/mysql323-server/Makefile b/databases/mysql323-server/Makefile
index d2059df4e168..77a17bc18dd1 100644
--- a/databases/mysql323-server/Makefile
+++ b/databases/mysql323-server/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= ${MASTERPORTNAME}
PORTVERSION= 3.23.46
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.kernelnotes.de/MySQL/Downloads/MySQL-3.23/ \
@@ -41,6 +41,12 @@ CONFIGURE_ARGS+=--with-charset=${WITH_CHARSET}
CONFIGURE_ARGS+=--with-extra-charsets=${WITH_XCHARSET}
.endif
.endif
+.if defined(BUILD_STATIC)
+CONFIGURE_ARGS+=--with-mysqld-ldflags=--static
+.endif
+.if defined(BUILD_OPTIMIZED)
+CFLAGS+= -mcpu=pentiumpro -O3 -fno-omit-frame-pointer
+.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
@@ -49,6 +55,7 @@ LIB_DEPENDS+= lthread.2:${PORTSDIR}/devel/linuxthreads
CONFIGURE_ENV+= PERL=${PERL} \
PERL5=${PERL} \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ CXX="${CC}" \
CFLAGS="${CFLAGS}" \
CONFIGURE_ARGS="${CONFIGURE_ARGS}"
@@ -86,6 +93,9 @@ pre-fetch:
@${ECHO} " DNS check before inserting local hostname to"
@${ECHO} " mysql database."
@${ECHO} " Use if your machine has no offical DNS entry."
+ @${ECHO} " BUILD_STATIC=yes Build a static version of mysqld."
+ @${ECHO} " BUILD_OPTIMIZED=yes Add -mcpu=pentiumpro -O3 -fno-omit-frame-pointer"
+ @${ECHO} " to CFLAGS."
@${ECHO} ""
post-patch: