2013-03-21 04:45:11 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.71 2013/03/21 08:45:14 ajacoutot Exp $
|
2004-11-06 19:10:17 -05:00
|
|
|
|
2007-07-30 02:28:07 -04:00
|
|
|
COMMENT-main= embedded SQL implementation
|
|
|
|
COMMENT-tcl= TCL bindings for Sqlite3
|
2009-01-26 09:44:37 -05:00
|
|
|
COMMENT-lemon= LEMON LALR(1) parser generator
|
2013-03-18 06:58:16 -04:00
|
|
|
V= 3.7.15.2
|
|
|
|
DISTNAME= sqlite-src-3071502
|
2011-01-09 14:11:34 -05:00
|
|
|
EXTRACT_SUFX = .zip
|
2010-11-14 19:22:45 -05:00
|
|
|
PKGNAME-main= sqlite3-${V}
|
2010-04-02 16:07:11 -04:00
|
|
|
PKGNAME-tcl= sqlite3-tcl-${V}
|
|
|
|
PKGNAME-lemon= lemon-${V}
|
2004-11-06 19:10:17 -05:00
|
|
|
CATEGORIES= databases
|
2012-05-01 10:29:56 -04:00
|
|
|
IGNORE-main = "--${FULLPKGNAME-main} comes with OpenBSD as of release 5.2"
|
|
|
|
SUBPACKAGE ?= -lemon
|
2005-12-26 16:32:00 -05:00
|
|
|
|
2004-11-06 19:10:17 -05:00
|
|
|
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
|
|
|
|
|
2008-07-23 13:31:17 -04:00
|
|
|
WANTLIB-main= c ncurses pthread readline
|
2009-01-26 09:44:37 -05:00
|
|
|
WANTLIB-lemon= c
|
2005-06-13 20:12:58 -04:00
|
|
|
|
2010-10-18 13:06:05 -04:00
|
|
|
USE_GROFF = Yes
|
2005-12-26 16:32:00 -05:00
|
|
|
|
2009-08-03 05:55:47 -04:00
|
|
|
CFLAGS+= -DSQLITE_ENABLE_COLUMN_METADATA \
|
2011-01-09 14:11:34 -05:00
|
|
|
-DSQLITE_HAVE_ISNAN \
|
|
|
|
-DSQLITE_SOUNDEX \
|
|
|
|
-DSQLITE_ENABLE_RTREE \
|
2011-03-14 10:39:51 -04:00
|
|
|
-DSQLITE_ENABLE_UNLOCK_NOTIFY \
|
2011-01-09 14:11:34 -05:00
|
|
|
-DSQLITE_ENABLE_FTS3
|
2005-04-28 18:58:28 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
2011-01-09 14:11:34 -05: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
|
2011-11-18 04:39:09 -05:00
|
|
|
NOT_FOR_ARCHS-tcl = ${NO_SHARED_ARCHS}
|
2011-11-17 19:33:30 -05:00
|
|
|
FLAVOR ?=
|
|
|
|
|
|
|
|
MULTI_PACKAGES=-main -lemon -tcl
|
|
|
|
|
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
|
2011-11-18 04:39:09 -05:00
|
|
|
.if !${PROPERTIES:Mno_shared}
|
2012-01-07 08:47:52 -05:00
|
|
|
CONFIGURE_ARGS += --enable-load-extension
|
2011-11-18 04:39:09 -05:00
|
|
|
.endif
|
|
|
|
|
2011-11-17 19:33:30 -05:00
|
|
|
.if ${BUILD_PACKAGES:M-tcl}
|
2008-10-27 19:20:39 -04:00
|
|
|
MODULES+= lang/tcl
|
2004-11-06 19:10:17 -05:00
|
|
|
|
2008-10-27 19:20:39 -04:00
|
|
|
BUILD_DEPENDS= ${MODTCL_BUILD_DEPENDS}
|
2010-11-06 18:50:02 -04:00
|
|
|
WANTLIB-tcl = sqlite3
|
2006-11-24 17:53:03 -05:00
|
|
|
|
2008-10-27 19:20:39 -04:00
|
|
|
CONFIGURE_ARGS+=--with-tcl=${MODTCL_LIBDIR}
|
2011-01-09 14:11:34 -05:00
|
|
|
CONFIGURE_ARGS+=TCLSH_CMD="${MODTCL_BIN}"
|
2011-01-05 11:39:44 -05:00
|
|
|
CONFIGURE_ENV += TCLLIBDIR=${MODTCL_TCLDIR}/sqlite3
|
2007-06-26 15:13:37 -04:00
|
|
|
|
2013-03-10 22:52:04 -04:00
|
|
|
TEST_TARGET= test
|
2005-04-28 18:58:28 -04:00
|
|
|
|
2006-11-24 17:53:03 -05:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-tcl
|
2011-01-09 14:11:34 -05:00
|
|
|
CONFIGURE_ARGS+=TCLSH_CMD=none
|
|
|
|
CONFIGURE_ENV += CFLAGS=-I"${WRKSRC}/ext/fts3"
|
2013-03-10 22:52:04 -04:00
|
|
|
NO_TEST= Yes
|
2005-04-28 18:58:28 -04:00
|
|
|
.endif
|
|
|
|
|
2008-07-23 13:31:17 -04:00
|
|
|
# Don't include dependency on pthreads, weak pthread functions are
|
|
|
|
# used for non-threaded applications.
|
|
|
|
post-install:
|
2009-01-26 09:44:37 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/lemon
|
2011-01-09 14:11:34 -05:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/lempar.c ${PREFIX}/share/lemon
|
2009-01-26 09:44:37 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/lemon ${PREFIX}/bin
|
2008-07-23 13:31:17 -04:00
|
|
|
|
2005-04-28 18:58:28 -04:00
|
|
|
.include <bsd.port.mk>
|