# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="ODBC driver for MySQL" HOMEPAGE="http://http://www.mysql.com/products/myodbc/" SRC_URI="mirror://mysql/Downloads/MyODBC3/MyODBC-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" DEPEND=">=dev-db/mysql-4 dev-db/unixODBC" #RDEPEND="" S=${WORKDIR}/${P} src_compile() { local myconf use static && myconf="${myconf} --disable-shared --enable-static" use static || myconf="${myconf} --enable-shared --enable-static" econf \ --libexecdir=/usr/sbin \ --sysconfdir=/etc/myodbc \ --localstatedir=/var/lib/myodbc \ --with-mysql-libs=/usr/lib/mysql \ --with-mysql-includes=/usr/include/mysql \ --with-odbc-ini=/etc/unixODBC/odbc.ini \ --with-unixODBC=/usr \ ${myconf} || die # emake (previously known as pmake) is a script that calls the # standard GNU make with parallel building options for speedier # builds (especially on SMP systems). Try emake first. It might # not work for some packages, in which case you'll have to resort # to normal "make". emake || die #make || die } src_install() { make \ prefix=${D}/usr \ mandir=${D}/usr/share/man \ infodir=${D}/usr/share/info \ libexecdir=${D}/usr/sbin \ sysconfdir=${D}/etc/myodbc \ localstatedir=${D}/var/lib/myodbc \ install || die dodoc INSTALL dodoc README prepalldocs }