mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-01 10:59:55 +00:00
- Add new OPTION for SQLite 3 support & set default
- Make DATADIR and ETCDIR safe PR: ports/156394 Submitted by: Chris Rees (utisoft_at_gmail.com) (maintainer) Approved by: itetcu (mentor)(implicit)
This commit is contained in:
parent
ee6849718b
commit
1b4bf28eb1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=272819
@ -24,16 +24,17 @@ OPTIONS= THREADS "Enable pthreads" on \
|
||||
PGSQL "Use PGSQL" off \
|
||||
MSQL "Use MSQL" off \
|
||||
MYSQL "Use MySQL" off \
|
||||
SQLITE "Use SQLite 2.x" on
|
||||
SQLITE "Use SQLite 2.x" off \
|
||||
SQLITE3 "Use SQLite 3.x" on
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
USE_GNOME= lthack
|
||||
USE_GMAKE= yes
|
||||
USE_AUTOTOOLS= libtool
|
||||
CONFIGURE_ARGS+=--enable-shared \
|
||||
--sysconfdir=${PREFIX}/etc/mnogosearch \
|
||||
--sysconfdir=${ETCDIR} \
|
||||
--localstatedir=/var/mnogosearch \
|
||||
--datadir=${PREFIX}/share/mnogosearch
|
||||
--datadir=${DATADIR}
|
||||
CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}"
|
||||
MAKE_ENV+= MKDIRPROG="${MKDIR}"
|
||||
|
||||
@ -84,13 +85,18 @@ USE_MYSQL= yes
|
||||
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
|
||||
.endif
|
||||
|
||||
.ifndef WITHOUT_SQLITE
|
||||
.ifdef WITH_SQLITE
|
||||
USE_SQLITE= 2
|
||||
CONFIGURE_ARGS+= --with-sqlite=${LOCALBASE}
|
||||
.endif
|
||||
|
||||
.ifndef WITHOUT_SQLITE3
|
||||
USE_SQLITE= 3
|
||||
CONFIGURE_ARGS+= --with-sqlite3=${LOCALBASE}
|
||||
.endif
|
||||
|
||||
.if defined(WITHOUT_SQLITE) && !defined(WITH_MYSQL) && \
|
||||
!defined(WITH_MSQL) && !defined(WITH_PGSQL)
|
||||
!defined(WITH_MSQL) && !defined(WITH_PGSQL) && !defined(WITH_SQLITE3)
|
||||
IGNORE= needs at least one database driver
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user