2314c85f45
zap default spec that are not needed convert libspecs as well convert p* to REVISION. No package changes
81 lines
1.9 KiB
Makefile
81 lines
1.9 KiB
Makefile
# $OpenBSD: Makefile,v 1.53 2010/11/15 00:22:54 espie Exp $
|
|
|
|
COMMENT-main= embedded SQL implementation
|
|
COMMENT-tcl= TCL bindings for Sqlite3
|
|
COMMENT-lemon= LEMON LALR(1) parser generator
|
|
V= 3.6.23
|
|
DISTNAME= sqlite-${V}
|
|
PKGNAME-main= sqlite3-${V}
|
|
REVISION-main = 0
|
|
PKGNAME-tcl= sqlite3-tcl-${V}
|
|
PKGNAME-lemon= lemon-${V}
|
|
CATEGORIES= databases
|
|
SHARED_LIBS += sqlite3 14.0 # .8.6
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
|
|
HOMEPAGE= http://www.sqlite.org/
|
|
|
|
# PD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB-main= c ncurses pthread readline
|
|
WANTLIB-lemon= c
|
|
|
|
USE_LIBTOOL= Yes
|
|
USE_GROFF = Yes
|
|
|
|
CFLAGS+= -DSQLITE_ENABLE_COLUMN_METADATA \
|
|
-DSQLITE_HAVE_ISNAN
|
|
# -DSQLITE_ENABLE_FTS3=1
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
|
|
--enable-threads-override-locks \
|
|
--enable-load-extension
|
|
|
|
PSEUDO_FLAVORS= no_tcl
|
|
.if ${MACHINE_ARCH} != "m88k" && ${MACHINE_ARCH} != "vax"
|
|
FLAVOR?=
|
|
.else
|
|
FLAVOR= no_tcl
|
|
.endif
|
|
|
|
MULTI_PACKAGES=-main -lemon
|
|
.if !${FLAVOR:L:Mno_tcl}
|
|
MULTI_PACKAGES+=-tcl
|
|
MODULES+= lang/tcl
|
|
.endif
|
|
|
|
BUILD_DEPENDS= ${MODTCL_BUILD_DEPENDS}
|
|
LIB_DEPENDS-tcl = ${BUILD_PKGPATH},-main
|
|
WANTLIB-tcl = sqlite3
|
|
|
|
.if ${MULTI_PACKAGES:M-tcl}
|
|
CONFIGURE_ARGS+=--with-tcl=${MODTCL_LIBDIR}
|
|
|
|
REGRESS_TARGET= test
|
|
|
|
pre-configure:
|
|
@perl -pi -e s,'tclsh',${MODTCL_BIN},g ${WRKSRC}/Makefile.in
|
|
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-tcl
|
|
CONFIGURE_ENV += TCLSH_CMD=none
|
|
NO_REGRESS= Yes
|
|
.endif
|
|
|
|
# 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
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/lemon
|
|
${INSTALL_DATA} ${WRKBUILD}/tool/lempar.c ${PREFIX}/share/lemon
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/lemon ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKBUILD}/sqlite3.1 ${PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|