2008-05-25 23:42:20 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.66 2008/05/25 21:42:20 joerg Exp $
|
2008-03-26 14:27:16 +01:00
|
|
|
#
|
|
|
|
# used by databases/mysql4-server/Makefile
|
2008-03-26 14:22:00 +01:00
|
|
|
|
|
|
|
DISTNAME= mysql-4.1.22
|
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= ${MASTER_SITE_MYSQL:=MySQL-4.1/}
|
|
|
|
|
|
|
|
MAINTAINER= hallmann@ahatec.de
|
|
|
|
HOMEPAGE= http://www.mysql.com/
|
|
|
|
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.include "options.mk"
|
|
|
|
|
2008-05-25 23:42:20 +02:00
|
|
|
EXTRACT_USING= bsdtar
|
2008-03-26 14:22:00 +01:00
|
|
|
|
|
|
|
# MYSQL_USER username of the database administrator
|
|
|
|
# MYSQL_GROUP group of the database administrator
|
|
|
|
# MYSQL_DATADIR home directory of the database administrator and
|
|
|
|
# location of the databases
|
|
|
|
MYSQL_USER?= mysql
|
|
|
|
MYSQL_GROUP?= mysql
|
|
|
|
MYSQL_DATADIR?= ${VARBASE}/mysql
|
|
|
|
|
2008-03-26 14:27:16 +01:00
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
|
2008-03-26 14:22:00 +01:00
|
|
|
PKG_USERS_VARS+= MYSQL_USER
|
|
|
|
PKG_GROUPS_VARS+= MYSQL_GROUP
|
|
|
|
|
|
|
|
# MYSQL_CHARSET default character set
|
|
|
|
# MYSQL_EXTRA_CHARSET additional character set to be compiled in.
|
|
|
|
#
|
|
|
|
MYSQL_CHARSET?= latin1
|
|
|
|
MYSQL_EXTRA_CHARSET?= all
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${MYSQL_DATADIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-named-z-libs=z
|
|
|
|
CONFIGURE_ARGS+= --without-libwrap
|
|
|
|
|
|
|
|
.if !empty(MACHINE_PLATFORM:MIRIX-5*)
|
|
|
|
CFLAGS+= -DIRIX5 -DNEEDS_BSTRING_H
|
|
|
|
# libgen is incorrectly detected
|
|
|
|
CONFIGURE_ENV+= ac_cv_lib_gen_p2open="no"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# We always use our own readline. Note that these --without-* settings
|
|
|
|
# are confusing, but they just mean "don't use the included readline
|
|
|
|
# or libedit".
|
|
|
|
#
|
|
|
|
CONFIGURE_ARGS+= --without-readline
|
|
|
|
CONFIGURE_ARGS+= --without-libedit
|
|
|
|
|
|
|
|
# This forces mysql.info _not_ to be rebuilt.
|
|
|
|
CONFIGURE_ARGS+= --without-docs
|
|
|
|
|
|
|
|
# Speed up production one-time builds; see "./configure --help" for
|
|
|
|
# more information on using or disabling this option.
|
|
|
|
CONFIGURE_ARGS+= --disable-dependency-tracking
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --without-debug
|
|
|
|
CONFIGURE_ARGS+= --without-bench
|
|
|
|
CONFIGURE_ARGS+= --with-low-memory
|
|
|
|
CONFIGURE_ARGS+= --with-vio
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-charset=${MYSQL_CHARSET:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-extra-charsets=${MYSQL_EXTRA_CHARSET:Q}
|
|
|
|
|
|
|
|
.if !empty(MACHINE_ARCH:Mi386) && ${OPSYS} != "Interix" && \
|
|
|
|
${OPSYS} != "SunOS" && ${OPSYS} != "Darwin"
|
|
|
|
CONFIGURE_ARGS+= --enable-assembler
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Avoid an ICE in gcc2 on sparc64
|
|
|
|
CONFIGURE_ENV+= F77=${FALSE:Q}
|
|
|
|
|
|
|
|
CPPFLAGS+= -Dunix
|
|
|
|
CFLAGS+= -DUSE_OLD_FUNCTIONS # 3.23.x compat
|
|
|
|
|
|
|
|
# force HAVE_CURSES_H on Solaris since the configure script is broken
|
|
|
|
# and does not properly detect this, breaking the build later on.
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
CFLAGS+= -DHAVE_CURSES_H
|
|
|
|
CXXFLAGS+= -DHAVE_CURSES_H
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
|
|
|
|
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
|
|
|
|
CFLAGS+= -DSIGNALS_DONT_BREAK_READ
|
|
|
|
CXXFLAGS+= -DSIGNALS_DONT_BREAK_READ
|
|
|
|
CONFIGURE_ENV+= ac_cv_func_pthread_setschedparam=no
|
|
|
|
CONFIGURE_ENV+= ac_cv_func_pthread_attr_setschedparam=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
USE_TOOLS+= gmake perl:run
|
|
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql
|
|
|
|
|
2008-03-26 14:27:16 +01:00
|
|
|
SUBST_CLASSES+= mk
|
2008-03-26 14:22:00 +01:00
|
|
|
SUBST_STAGE.mk= post-extract
|
|
|
|
SUBST_FILES.mk= dbug/Makefile.in heap/Makefile.in isam/Makefile.in \
|
|
|
|
merge/Makefile.in mysys/Makefile.in \
|
|
|
|
strings/Makefile.in
|
|
|
|
SUBST_SED.mk= -e "/^install-exec:/s/install-pkglibLIBRARIES//"
|
|
|
|
SUBST_MESSAGE.mk= Fixing Makefiles.
|
2008-03-26 14:27:16 +01:00
|
|
|
|
|
|
|
SUBST_CLASSES+= scripts
|
2008-03-26 14:22:00 +01:00
|
|
|
SUBST_STAGE.scripts= post-extract
|
|
|
|
SUBST_FILES.scripts= scripts/mysql_install_db.sh scripts/mysqld_safe.sh \
|
|
|
|
scripts/mysql_secure_installation.sh \
|
|
|
|
support-files/mysql.server.sh
|
2008-03-26 14:27:16 +01:00
|
|
|
SUBST_SED.scripts= -e "s,chown,${CHOWN},g"
|
|
|
|
SUBST_SED.scripts+= -e "s,/bin/sh,${RCD_SCRIPTS_SHELL},g"
|
2008-03-26 14:22:00 +01:00
|
|
|
SUBST_MESSAGE.scripts= Fixing scripts.
|
|
|
|
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|