2007-06-26 19:13:37 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.30 2007/06/26 19:13:37 espie Exp $
|
2004-11-07 00:10:17 +00:00
|
|
|
|
2006-11-24 22:53:03 +00:00
|
|
|
COMMENT-main= "Embedded SQL implementation"
|
2005-04-28 22:58:28 +00:00
|
|
|
COMMENT-tcl= "TCL bindings for Sqlite3"
|
2007-06-26 19:13:37 +00:00
|
|
|
V= 3.4.0
|
2005-06-14 00:12:58 +00:00
|
|
|
DISTNAME= sqlite-${V}
|
2007-01-16 23:24:32 +00:00
|
|
|
PKGNAME-main= sqlite3-${V}
|
2007-04-14 19:34:03 +00:00
|
|
|
PKGNAME-tcl= sqlite3-tcl-${V}
|
2004-11-07 00:10:17 +00:00
|
|
|
CATEGORIES= databases
|
2007-06-26 19:13:37 +00:00
|
|
|
SHARED_LIBS += sqlite3 9.0 # .8.6
|
|
|
|
SHARED_LIBS += tclsqlite3 9.0 # .8.6
|
2005-12-26 21:32:00 +00:00
|
|
|
|
2004-11-07 00:10:17 +00:00
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
|
|
|
2005-06-14 00:12:58 +00:00
|
|
|
HOMEPAGE= http://www.sqlite.org/
|
|
|
|
|
|
|
|
# PD
|
2004-11-07 00:10:17 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-04-13 20:40:51 +00:00
|
|
|
WANTLIB-main= c ncurses readline
|
2005-06-14 00:12:58 +00:00
|
|
|
|
2005-12-26 21:32:00 +00:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
2005-04-28 22:58:28 +00:00
|
|
|
CONFIGURE_STYLE=gnu
|
2005-06-14 00:12:58 +00:00
|
|
|
CONFIGURE_ARGS+=${CONFIGURE_SHARED}
|
2004-11-07 00:10:17 +00:00
|
|
|
|
2006-03-22 01:36:11 +00:00
|
|
|
# XXX gcc bug? some regress tests crash w/-O2 but not -Os
|
2005-10-20 04:42:56 +00:00
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
|
|
|
CFLAGS+=-Os
|
|
|
|
.endif
|
|
|
|
|
2005-04-28 22:58:28 +00:00
|
|
|
PSEUDO_FLAVORS= no_tcl
|
|
|
|
.if ${MACHINE_ARCH} != "m88k" && ${MACHINE_ARCH} != "vax"
|
|
|
|
FLAVOR?=
|
|
|
|
.else
|
|
|
|
FLAVOR= no_tcl
|
|
|
|
.endif
|
2004-11-07 00:10:17 +00:00
|
|
|
|
2006-11-24 22:53:03 +00:00
|
|
|
MULTI_PACKAGES=-main
|
2005-04-28 22:58:28 +00:00
|
|
|
.if !${FLAVOR:L:Mno_tcl}
|
|
|
|
MULTI_PACKAGES+=-tcl
|
|
|
|
.endif
|
2004-11-07 00:10:17 +00:00
|
|
|
|
2006-11-24 22:53:03 +00:00
|
|
|
LIB_DEPENDS-tcl=sqlite3.>=8.6::databases/sqlite3 \
|
2006-08-01 22:19:46 +00:00
|
|
|
tcl84.>=1.0:tcl-8.4.*:lang/tcl/8.4
|
2006-11-24 22:53:03 +00:00
|
|
|
|
|
|
|
.if ${MULTI_PACKAGES:M-tcl}
|
2005-04-28 22:58:28 +00:00
|
|
|
CONFIGURE_ARGS+=--with-tcl=${LOCALBASE}/lib/tcl8.4
|
2007-06-26 19:13:37 +00:00
|
|
|
# Can't pass all its regress tests, because tcl doesn't handle NaN
|
|
|
|
# (strtod doesn't work in an IEEE way)
|
|
|
|
|
2005-04-28 22:58:28 +00:00
|
|
|
REGRESS_TARGET= test
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@perl -pi -e s,'tclsh','tclsh8.4',g ${WRKSRC}/Makefile.in
|
|
|
|
# XXX libtool issue
|
|
|
|
pre-install:
|
2006-09-19 11:26:38 +00:00
|
|
|
@cp -p ${WRKSRC}/.libs/libtclsqlite3.so.$(LIBtclsqlite3_VERSION) ${WRKSRC}/.libs/libtclsqlite3.so
|
2006-11-24 22:53:03 +00:00
|
|
|
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-tcl
|
|
|
|
NO_REGRESS= Yes
|
2005-04-28 22:58:28 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|