2005-09-26 23:49:35 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2005/09/27 03:49:35 jolan Exp $
|
2004-11-06 19:10:17 -05:00
|
|
|
|
|
|
|
COMMENT= "Embedded SQL implementation"
|
2005-04-28 18:58:28 -04:00
|
|
|
COMMENT-tcl= "TCL bindings for Sqlite3"
|
2005-09-26 23:49:35 -04:00
|
|
|
V= 3.2.7
|
2005-09-17 18:05:39 -04:00
|
|
|
PKGNAME= sqlite3-${V}
|
2005-06-13 20:12:58 -04:00
|
|
|
PKGNAME-tcl= sqlite3-tcl-${V}
|
|
|
|
DISTNAME= sqlite-${V}
|
2004-11-06 19:10:17 -05:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
|
|
|
2005-06-13 20:12:58 -04:00
|
|
|
HOMEPAGE= http://www.sqlite.org/
|
|
|
|
|
|
|
|
# PD
|
2004-11-06 19:10:17 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2005-04-28 18:58:28 -04:00
|
|
|
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
|
2004-11-06 19:10:17 -05:00
|
|
|
|
2005-06-13 20:12:58 -04:00
|
|
|
WANTLIB= c ncurses readline
|
|
|
|
|
2005-04-28 18:58:28 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
2005-06-13 20:12:58 -04:00
|
|
|
CONFIGURE_ARGS+=${CONFIGURE_SHARED}
|
2004-11-06 19:10:17 -05:00
|
|
|
|
2005-04-28 18:58:28 -04:00
|
|
|
PSEUDO_FLAVORS= no_tcl
|
|
|
|
.if ${MACHINE_ARCH} != "m88k" && ${MACHINE_ARCH} != "vax"
|
|
|
|
FLAVOR?=
|
|
|
|
.else
|
|
|
|
FLAVOR= no_tcl
|
|
|
|
.endif
|
2004-11-06 19:10:17 -05:00
|
|
|
|
2005-04-28 18:58:28 -04:00
|
|
|
MULTI_PACKAGES=
|
|
|
|
.if !${FLAVOR:L:Mno_tcl}
|
|
|
|
MULTI_PACKAGES+=-tcl
|
|
|
|
.endif
|
2004-11-06 19:10:17 -05:00
|
|
|
|
2005-04-28 18:58:28 -04:00
|
|
|
SUBPACKAGE?=
|
|
|
|
|
|
|
|
.if defined(PACKAGING)
|
|
|
|
. if ${SUBPACKAGE} == "-tcl"
|
|
|
|
LIB_DEPENDS= sqlite3.8.6::databases/sqlite3 \
|
|
|
|
tcl84.1.0::lang/tcl/8.4
|
|
|
|
. endif
|
|
|
|
.else
|
|
|
|
. if ${MULTI_PACKAGES:M-tcl}
|
|
|
|
CONFIGURE_ARGS+=--with-tcl=${LOCALBASE}/lib/tcl8.4
|
|
|
|
LIB_DEPENDS= tcl84.1.0::lang/tcl/8.4
|
|
|
|
REGRESS_TARGET= test
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+=--disable-tcl
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
.if ${MULTI_PACKAGES:M-tcl}
|
|
|
|
@perl -pi -e s,'tclsh','tclsh8.4',g ${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
2004-11-06 19:10:17 -05:00
|
|
|
|
2005-04-28 18:58:28 -04:00
|
|
|
# XXX libtool issue
|
|
|
|
pre-install:
|
|
|
|
.if ${MULTI_PACKAGES:M-tcl}
|
|
|
|
@cp -p ${WRKSRC}/.libs/libtclsqlite3.so.8.6 ${WRKSRC}/.libs/libtclsqlite3.so
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|