aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorbeech <beech@FreeBSD.org>2011-04-17 08:10:34 +0800
committerbeech <beech@FreeBSD.org>2011-04-17 08:10:34 +0800
commit28501a690e7bc73dc2c36cc5c08ca445d398b839 (patch)
tree40337ca7849b4ae0b58e16b514a0c8e5e391de38 /www
parent9d4981e61e79e85637d532456f477399588c185c (diff)
downloadfreebsd-ports-gnome-28501a690e7bc73dc2c36cc5c08ca445d398b839.tar.gz
freebsd-ports-gnome-28501a690e7bc73dc2c36cc5c08ca445d398b839.tar.zst
freebsd-ports-gnome-28501a690e7bc73dc2c36cc5c08ca445d398b839.zip
- 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)
Diffstat (limited to 'www')
-rw-r--r--www/mnogosearch/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/www/mnogosearch/Makefile b/www/mnogosearch/Makefile
index e66c9fce8815..4a7340139963 100644
--- a/www/mnogosearch/Makefile
+++ b/www/mnogosearch/Makefile
@@ -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