aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysql40-server/Makefile
blob: 5ed911d49de9f06604da5076f862efefd4f6a09b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# ports collection makefile for:    MySQL
# Version required:         v3.22.6-alpha
# Date created:             26 Jan 1998
# Whom:                 Josh Tiefenbach <josh@ican.net>
#
# $Id: Makefile,v 1.31 1998/11/11 05:37:08 asami Exp $
#

DISTNAME=   mysql-3.22.10-beta
PKGNAME=    mysql-3.22.10b
CATEGORIES= databases
MASTER_SITES=   http://mysql.polaris.ca/Downloads/MySQL-3.22/ \
        http://www.fh-wolfenbuettel.de/ftp/pub/database/mysql/Downloads/MySQL-3.22/ \
        http://www.tcx.se/Downloads/MySQL-3.22/

MAINTAINER= ibex@physik.TU-Berlin.DE

MANUAL_PACKAGE_BUILD=   incompatible with mysql321
NO_LATEST_LINK= yes
MAN1=       mysql.1

USE_PERL5=  YES
GNU_CONFIGURE=  YES
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
        --without-perl \
        --without-debug \
        --without-readline \
        --without-bench
CONFIGURE_ENV+= PERL=${PERL5} \
        PERL5=${PERL5} \
        INSTALL_SCRIPT="${INSTALL_SCRIPT}"

.include <bsd.port.pre.mk>

.if defined(NATIVE_THREADS) && ${OSVERSION} >= 300000
CONFIGURE_ARGS+=    --with-named-thread-libs=-lc_r
.else
CONFIGURE_ARGS+=    --with-mit-threads
.endif

.if !defined(NATIVE_THREADS) && ${OSVERSION} >= 300000
pre-fetch:
    @${ECHO}
    @${ECHO} "You may set NATIVE_THREADS (make NATIVE_THREADS=yes)"
    @${ECHO} "to compile mysql with the native FreeBSD threads (libc_r)."
    @${ECHO} "Warning: There are still some bugs in libc_r which prevent"
    @${ECHO} "         'mysqladmin shutdown' from working properly."
    @${ECHO}
.elif defined(NATIVE_THREADS) && ${OSVERSION} >= 300000
pre-fetch:
    @${ECHO}
    @${ECHO} "Using native FreeBSD threads (libc_r)."
    @${ECHO}
.elif defined(NATIVE_THREADS) && ${OSVERSION} < 300000
pre-fetch:
    @${ECHO}
    @${ECHO} "Sorry, native FreeBSD threads (libc_r) in 2.2-branch"
    @${ECHO} "are still to buggy to use with mysql."
    @${ECHO} "Using mit-pthreads."
    @${ECHO}
.endif

pre-install:
.if defined(PACKAGE_BUILDING)
    @ ${RM} -rf /var/db/mysql
.endif
    @ ${SETENV} ${MAKE_ENV} ${PERL5} ${SCRIPTDIR}/check_old_version

post-install:
    ${MKDIR} ${PREFIX}/share/mysql/mysql
    ${PREFIX}/bin/mysql_install_db
    @ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql.sh
    @ ${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql.sh
    @ ${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql.sh
    @ ${ECHO} "/sbin/ldconfig -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql.sh
    @ ${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql.sh
    @ ${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql.sh
    @ ${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql.sh
    @ ${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql.sh
    @ ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql.sh
    @ /bin/chmod 750 ${PREFIX}/etc/rc.d/mysql.sh

.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/mysql
.for doc in manual.html manual.ps manual_toc.html manual.txt manual.texi include.texi
    ${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql
.endfor
    @if [ ! -f ${PREFIX}/info/dir -a -f /usr/share/info/dir ]; then \
        ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
    fi
    ${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
    @install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
.endif

    ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib/mysql

.include <bsd.port.post.mk>
0c0'>Document new USES: desktop-file-utils and shared-mime-info.kwm2013-05-091-0/+26 * USE_GETTEXT has totally been replaced by USES=gettext thanks, jgh and akbapt2013-05-071-0/+2 * Add new USES: shebangfixbapt2013-05-071-0/+10 * Add new USES: ncurses and readlinebapt2013-05-061-0/+16 * Introduces USES= iconv to replace USE_ICONV.mva2013-04-271-1/+8 * Remove USE_CDRTOOLS from bsd.port.mkbapt2013-04-261-0/+1 * Remove USE_FREETYPE from bsd.port.mkbapt2013-04-261-0/+5 * Introduces USES= gettext to replace USE_GETTEXTjgh2013-04-231-0/+13 * Fix datebapt2013-04-231-1/+1 * - Add WITH_CCACHE_BUILD support during 'configure' phasebdrewery2013-04-231-0/+9 * Introduce USES= pkgconfig to replace USE_PKGCONFIGbapt2013-04-231-0/+12 * - Add New USES macro to handle support for Zenoss ports and Zenpacks:jgh2013-03-201-0/+7 * Convert USE_CMAKE to USES macro:makc2013-03-201-0/+15 * Make the ports tree use dialog4ports for make config.bapt2013-03-191-0/+10 * Document USES=qmailbdrewery2013-03-161-0/+11 * Document the introduction of Keywords/info.yaml in CHANGESbapt2013-03-151-0/+7 * Add a note about the new USES macro and the new USES= pathfix fusebapt2013-03-071-0/+9 * - Fix Whitespacesmiwi2013-02-081-1/+1 * - Document that PTHREAD_CFLAGS and PTHREAD_LIBS are unsupportedgahr2013-02-071-0/+7 * - introduce a USE_FUSE macroflo2012-12-141-0/+7 * Extend the options framework providing 2 new macros:bapt2012-12-101-0/+7 * Minor whitespace and formatting fixes.danfe2012-11-171-3/+3 * We are in 2012, it is time to activate IPV6 options by default everywherebapt2012-10-101-0/+5 * Switching current to use pkgng by defaultbapt2012-10-101-0/+10 * - Add ccache support for building ports. [1]beat2012-08-301-0/+16 * - Add support for fetching from GitHub in bsd.sites.mkgahr2012-08-201-0/+22 * new devel/pkgconf added to replace devel/pkg-config. new version of pkg-configbapt2012-07-261-0/+15 * - use UPDATING instead CHANGESohauer2012-07-231-5/+0 * - use reserverd UID/GIDohauer2012-07-211-0/+5 * - Keep questions on a public mailing listbeat2012-07-161-1/+1 * - Add a note about the switch to Subversionbeat2012-07-161-0/+15 * - Fix copy-paste errorak2012-06-251-2/+2 * Give a passing mention of OPTIONSngcrees2012-06-241-0/+11 * - Add CHANGES entry on recent LDFLAGS updateamdmi32011-09-271-0/+19 * Describe how CPPFLAGS is now passed to both the configure and makegerald2011-06-071-0/+15 * Autotools update. Read ports/UPDATING 20100915 for details.ade2010-09-161-0/+8 * USE_GCC=4.3 is deprecated (and no port uses it anymore). USE_GCC=4.3+gerald2010-06-071-0/+7 * - Add entry in CHANGES about bsd.licenses*.mk.alepulver2010-05-261-0/+9 * - add 1 missing WITH_APACHEXX option to CHANGES thats now deadpgollucci2010-05-261-1/+1 * Bump copyright year to 2010erwin2010-01-031-1/+1 * be more specific about WITH_APACHE2 and friendspgollucci2009-12-261-1/+1 * Remove myself as maintainer and hand over to portmgrerwin2009-09-151-6/+3 * Mention the new USERS/GROUPS variable.flz2009-09-071-1/+16 * Add a note on the sourceforge change and new bsd.sites.mk macro.erwin2009-08-131-0/+11 * - Tell world bsd.port.options.mk are cool nowpav2009-05-211-7/+13 * - Document some deaths legacy in bsd.apache.mk variablespgollucci2009-05-171-0/+12 * - Change the wording a bit to point to UPDATING as wellerwin2009-03-031-2/+2 * - devel/libslang2 has completely replaced devel/libslang which has not beenpgollucci2009-02-081-0/+8 * - Drop whitespacesmiwi2008-09-081-1/+1 * * print/ghostscript-* and related ports have been renamed in thehrs2008-09-061-0/+22 * - Document CONFIGURE_ARGS changes for GNU_CONFIGURE on the syntax forrafan2008-08-211-0/+7 * - Fix some noticed spelling errorsdanfe2008-07-231-5/+5 * Document porter visible changes from bsd.port.mk rev. 1.598pav2008-07-221-0/+7 * Document wrapper option for ports-mgmt/pkg_install.flz2008-06-101-0/+8 * 20080414 updatespav2008-04-151-0/+12