1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

o Update to 4.0.16 release.

o Various little fixes.
o Change behaviour of BUILD_OPTIMIZED.

PR:		ports/58377
Submitted by:	Alex Dupre <sysadmin@alexdupre.com> (maintainer)
This commit is contained in:
Norikatsu Shigemura 2003-10-23 14:36:10 +00:00
parent aaf2f236f0
commit 2cc3a15dc3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=91965
4 changed files with 38 additions and 24 deletions

View File

@ -6,12 +6,10 @@
#
PORTNAME?= mysql
PORTVERSION= 4.0.15
PORTVERSION= 4.0.16
PORTREVISION?= 0
CATEGORIES= databases
MASTER_SITES= ftp://mysql.secsup.org/pub/software/mysql/Downloads/MySQL-4.0/ \
http://mysql.tzone.it/Downloads/MySQL-4.0/ \
ftp://planetmirror.com/pub/mysql/Downloads/MySQL-4.0/ \
MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-4.0/ \
http://www.softagency.co.jp/MySQL/Downloads/MySQL-4.0/ \
ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-4.0/ \
http://mysql.mediatraffic.fi/Downloads/MySQL-4.0/ \
@ -50,11 +48,6 @@ CONFIGURE_ARGS= --localstatedir=${DB_DIR} \
.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"
CONFIGURE_ARGS+=--enable-assembler --with-berkeley-db
.endif
.if defined(WITH_CHARSET) && ${WITH_CHARSET} != ""
CONFIGURE_ARGS+=--with-charset=${WITH_CHARSET}
.endif
@ -68,8 +61,11 @@ CONFIGURE_ARGS+=--with-openssl
.if defined(BUILD_STATIC)
CONFIGURE_ARGS+=--with-mysqld-ldflags=-all-static
.endif
.if defined(BUILD_OPTIMIZED)
CFLAGS+= -mcpu=i686
.include <bsd.port.pre.mk>
.if ${MACHINE_ARCH} == "i386"
CONFIGURE_ARGS+=--enable-assembler --with-berkeley-db
.endif
.if defined(WITH_LINUXTHREADS)
CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R
@ -85,14 +81,18 @@ CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r'
.endif
.endif
.if ${OSVERSION} < 500000
CXX= ${CC}
.endif
.if defined(BUILD_OPTIMIZED)
CFLAGS+= -O3 -fno-omit-frame-pointer
CXXFLAGS= ${CFLAGS} -felide-constructors -fno-rtti
.if ${OSVERSION} > 500000 || (defined(USE_GCC) && (${USE_GCC} == 3.0 || ${USE_GCC} == 3.1 || ${USE_GCC} == 3.2 || ${USE_GCC} == 3.3))
CFLAGS+= -fno-gcse
.endif
CXXFLAGS+= ${CFLAGS} -felide-constructors -fno-rtti
.if ${OSVERSION} >= 400002
CXXFLAGS+= -fno-exceptions
.endif
.if ${OSVERSION} < 500000
CXX= ${CC}
.endif
# MySQL-Server part
@ -122,9 +122,11 @@ pre-fetch:
@${ECHO} " SKIP_DNS_CHECK=yes Don't run resolveip to do an additional DNS"
@${ECHO} " reverse lookup before inserting local"
@${ECHO} " hostname into mysql database"
@${ECHO} " (use if your machine has no official DNS entry)."
@${ECHO} " (use it if your machine has no official DNS entry)."
@${ECHO} " BUILD_OPTIMIZED=yes Enable compiler optimizations"
@${ECHO} " (use it if you need speed)."
@${ECHO} " BUILD_STATIC=yes Build a static version of mysqld."
@${ECHO} " BUILD_OPTIMIZED=yes Add -mcpu=i686 to CFLAGS."
@${ECHO} " (use it if you need even more speed)."
@${ECHO} ""
post-patch:

View File

@ -1 +1 @@
MD5 (mysql-4.0.15.tar.gz) = a6ce917730e8778ef7c9e1f7b5053b2d
MD5 (mysql-4.0.16.tar.gz) = ddc959b9cdc2f5e30dc6a4d3650d3db5

View File

@ -1,6 +1,6 @@
--- configure.orig Wed May 14 22:24:53 2003
+++ configure Fri May 23 00:29:06 2003
@@ -8110,6 +8110,7 @@
--- configure.orig Fri Oct 17 07:29:41 2003
+++ configure Wed Oct 22 15:12:52 2003
@@ -8116,6 +8116,7 @@
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
@ -8,7 +8,7 @@
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
@@ -9052,7 +9053,7 @@
@@ -9058,7 +9059,7 @@
;;
esac
fi
@ -17,7 +17,7 @@
if test -n "$HOSTNAME"; then
echo "$as_me:$LINENO: result: $HOSTNAME" >&5
@@ -9244,43 +9245,8 @@
@@ -9250,43 +9251,8 @@
echo "$as_me:$LINENO: checking \"how to check if pid exists\"" >&5
echo $ECHO_N "checking \"how to check if pid exists\"... $ECHO_C" >&6
PS=$ac_cv_path_PS
@ -61,7 +61,18 @@
echo "$as_me:$LINENO: result: \"$FIND_PROC\"" >&5
echo "${ECHO_T}\"$FIND_PROC\"" >&6
@@ -22320,7 +22294,7 @@
@@ -12667,8 +12633,8 @@
# Some system specific hacks
#
-MAX_C_OPTIMIZE="-O3"
-MAX_CXX_OPTIMIZE="-O3"
+MAX_C_OPTIMIZE=""
+MAX_CXX_OPTIMIZE=""
case $SYSTEM_TYPE in
*solaris2.7*)
@@ -22458,7 +22424,7 @@
/* ) rel_srcdir="$srcdir" ;;
* ) rel_srcdir="../$srcdir" ;;
esac

View File

@ -102,6 +102,7 @@ share/mysql/Info.plist
share/mysql/MySQL-shared-compat.spec
share/mysql/StartupParameters.plist
share/mysql/binary-configure
share/mysql/make_sharedlib_distribution
share/mysql/postinstall
share/mysql/preinstall
share/mysql/charsets/Index