2009-04-22 17:23:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.45 2009/04/22 21:23:43 martynas 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
|
2009-04-22 17:23:43 -04:00
|
|
|
V= 3.6.13
|
2005-06-13 20:12:58 -04:00
|
|
|
DISTNAME= sqlite-${V}
|
2009-04-04 20:02:53 -04:00
|
|
|
PKGNAME-main= sqlite3-${V}
|
2009-01-31 10:49:34 -05:00
|
|
|
PKGNAME-tcl= sqlite3-tcl-${V}
|
2009-01-26 09:44:37 -05:00
|
|
|
PKGNAME-lemon= lemon-${V}
|
2004-11-06 19:10:17 -05:00
|
|
|
CATEGORIES= databases
|
2009-04-22 17:23:43 -04:00
|
|
|
SHARED_LIBS += sqlite3 13.3 # .8.6
|
|
|
|
SHARED_LIBS += tclsqlite3 12.3 # .8.6
|
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
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= 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
|
|
|
|
2005-12-26 16:32:00 -05:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
2008-12-04 09:11:16 -05:00
|
|
|
CFLAGS+= -DSQLITE_ENABLE_COLUMN_METADATA
|
2005-04-28 18:58:28 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
2008-07-23 13:31:17 -04:00
|
|
|
CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
|
|
|
|
--enable-threads-override-locks
|
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
|
|
|
|
2009-01-26 09:44:37 -05:00
|
|
|
MULTI_PACKAGES=-main -lemon
|
2005-04-28 18:58:28 -04:00
|
|
|
.if !${FLAVOR:L:Mno_tcl}
|
|
|
|
MULTI_PACKAGES+=-tcl
|
2008-10-27 19:20:39 -04:00
|
|
|
MODULES+= lang/tcl
|
2005-04-28 18:58:28 -04:00
|
|
|
.endif
|
2004-11-06 19:10:17 -05:00
|
|
|
|
2008-10-27 19:20:39 -04:00
|
|
|
BUILD_DEPENDS= ${MODTCL_BUILD_DEPENDS}
|
2008-10-28 08:18:36 -04:00
|
|
|
LIB_DEPENDS-tcl = sqlite3::${BUILD_PKGPATH},-main
|
2006-11-24 17:53:03 -05:00
|
|
|
|
|
|
|
.if ${MULTI_PACKAGES:M-tcl}
|
2008-10-27 19:20:39 -04:00
|
|
|
CONFIGURE_ARGS+=--with-tcl=${MODTCL_LIBDIR}
|
2007-06-26 15:13:37 -04:00
|
|
|
|
2005-04-28 18:58:28 -04:00
|
|
|
REGRESS_TARGET= test
|
|
|
|
|
|
|
|
pre-configure:
|
2008-10-27 19:20:39 -04:00
|
|
|
@perl -pi -e s,'tclsh',${MODTCL_BIN},g ${WRKSRC}/Makefile.in
|
2006-11-24 17:53:03 -05:00
|
|
|
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-tcl
|
|
|
|
NO_REGRESS= 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:
|
|
|
|
perl -pi -e s,'\-pthread','',g ${PREFIX}/lib/libsqlite3.la \
|
|
|
|
${PREFIX}/lib/pkgconfig/sqlite3.pc
|
2009-01-26 09:44:37 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/lemon
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/tool/lempar.c ${PREFIX}/share/lemon
|
|
|
|
${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>
|