openbsd-ports/databases/sqlite3/Makefile

68 lines
1.4 KiB
Makefile
Raw Normal View History

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