summaryrefslogtreecommitdiff
blob: cedfdc0fb3e2f2f47cc44f4846956f3b205ca3ef (plain)
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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Your Name <your email>
# $Header: /var/cvsroot/gentoo-x86/dev-db/unixODBC/unixODBC-1.8.13.ebuild,v 1.1 2000/11/16 22:05:43 achim Exp $

A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="ODBC Interface for Linux"
SRC_URI="http://www.unixodbc.org/${A}"
HOMEPAGE="http://www.unixodbc.org"

src_unpack() {

    unpack ${A}
    cd ${S}
    cp Makefile.in Makefile.orig
    sed -e "s:touch :touch \${DESTDIR}/:" Makefile.orig > Makefile.in

}
src_compile() {

    cd ${S}
    try ./configure --prefix=/usr --sysconfdir=/etc/unixODBC --host=${CHOST}

    try make

}

src_install () {

    cd ${S}
    try make DESTDIR=${D} install
    dodoc AUTHORS COPYING ChangeLog NEWS REDAME*
}