summaryrefslogtreecommitdiff
path: root/databases/sqsh/Makefile
blob: e01fa196feb552fa8956a5d000234bc0d4bb90c0 (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
# $NetBSD: Makefile,v 1.5 2001/05/22 05:28:23 jlam Exp $

DISTNAME=	sqsh-1.7-src
PKGNAME=	sqsh-1.7
WRKSRC=		${WRKDIR}/${PKGNAME}
CATEGORIES=	databases
MASTER_SITES=	http://www.voicenet.com/~gray/

MAINTAINER=	tsarna@netbsd.org
HOMEPAGE=	http://www.voicenet.com/~gray/sqsh.html
COMMENT=	Sybase SQL shell

DEPENDS+=       freetds>=0.50:../../databases/freetds

ALL_TARGET=	sqsh
INSTALL_TARGET=	install install.man

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-readline
CONFIGURE_ENV+=		SYBASE="${SYBASE}"

SYBASE=			${PREFIX}/freetds
LDFLAGS+=		-Wl,-R${SYBASE}/lib

.include "../../devel/readline/Makefile.readline"

LDFLAGS+=		-L${WRKLIBDIR}
CONFIGURE_ENV+=		INCDIRS="${WRKINCDIR}"
CONFIGURE_ENV+=		LIBDIRS="${WRKLIBDIR}"

pre-configure: link-readline-headers link-readline-libs

.include "../../mk/bsd.pkg.mk"