[kde-freebsd] [PATCH] textproc/redland: allow BDB to be optional

Sean C. Farley scf at FreeBSD.org
Wed Jun 6 23:21:11 UTC 2012


>Submitter-Id:	current-users
>Originator:	Sean C. Farley
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] textproc/redland: allow BDB to be optional
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 8.3-STABLE amd64
>Environment:
System: FreeBSD thor.farley.org 8.3-STABLE FreeBSD 8.3-STABLE #0 r236325M: Wed May 30 15:26:06 EDT
>Description:
This turn BDB into an option with a default of 'on'.  Apache OpenOffice
seems to run fine without BDB enabled in redland.

Port maintainer (kde at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: suffix)
>How-To-Repeat:
>Fix:

--- redland-1.0.15.patch begins here ---
diff -ruN --exclude=CVS ../redland.orig/Makefile ./Makefile
--- ../redland.orig/Makefile	2012-02-01 10:25:37.000000000 -0500
+++ ./Makefile	2012-06-06 19:13:33.000000000 -0400
@@ -17,9 +17,6 @@
 LIB_DEPENDS=	raptor2.0:${PORTSDIR}/textproc/raptor2 \
 		rasqal.3:${PORTSDIR}/textproc/rasqal
 
-USE_BDB=	yes
-WITH_BDB_HIGHEST=	yes
-INVALID_BDB_VER=2
 USE_GNOME=	gnomehack lthack pkgconfig libxml2
 USE_AUTOTOOLS=	libltdl
 USE_OPENSSL=	yes
@@ -36,7 +33,8 @@
 		redland-db-upgrade.1
 MAN3=		redland.3
 
-OPTIONS+=	THREADS "Enable Threads" off
+OPTIONS+=	THREADS "Enable Threads" off \
+		BDB "Use BDB" on \
 #		MYSQL "Use MySQL instead of BDB" off \
 #		PGSQL "Use PgSQL instead of BDB" off \
 #		SQLITE "Use SQLite instead of BDB" off \
@@ -50,6 +48,14 @@
 CONFIGURE_ARGS+=	--enable-threads
 .endif
 
+.if !defined(WITHOUT_BDB)
+USE_BDB=	yes
+WITH_BDB_HIGHEST=	yes
+INVALID_BDB_VER=2
+.else
+CONFIGURE_ARGS+=--with-bdb=no
+.endif
+
 #.if defined(WITH_MYSQL)
 #USE_MYSQL=	yes
 #CONFIGURE_ARGS+=--with-mysql=yes
--- redland-1.0.15.patch ends here ---



More information about the kde-freebsd mailing list