summaryrefslogtreecommitdiff
path: root/databases/tokyotyrant
diff options
context:
space:
mode:
authorobache <obache>2009-12-19 12:56:45 +0000
committerobache <obache>2009-12-19 12:56:45 +0000
commit09d2f5b653a854a37af9d6df8e030f696d5b60ce (patch)
tree1a43c0d52ff39401d6386696855fa36dc5efc749 /databases/tokyotyrant
parent18826311d7a222d569b10a4c468a358c7163eadb (diff)
downloadpkgsrc-09d2f5b653a854a37af9d6df8e030f696d5b60ce.tar.gz
Introduce PKG_OPTIONS for database/tokyocabinet to select compression support
(zlib/bzip2/lzo/lzma and enabled by default for former two). LZO and LZMA supports are exclusive, optional and should be selected by user's use-case (priority of data compression ratio, compression speed, or so on). Furthermore, Tokyocabinet uses archives/lzmalib for lzma support, but lzmalib conflicts with archivers/xz. It means if tokyocabinet is installed with lzma, failed to install xz, and result in failure of "make extract" for packages using .lzma/.xz distfiles. This issue also resolved by optionify lzma support and disabled by default. This changes also make tokyocabinet ABI changes, so bump PKGREVISION and recursive bump. OKed to commit in freeze by wiz@.
Diffstat (limited to 'databases/tokyotyrant')
-rw-r--r--databases/tokyotyrant/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/databases/tokyotyrant/Makefile b/databases/tokyotyrant/Makefile
index b9bb08c8717..f78dfcb5dc7 100644
--- a/databases/tokyotyrant/Makefile
+++ b/databases/tokyotyrant/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.25 2009/11/25 11:33:56 obache Exp $
+# $NetBSD: Makefile,v 1.26 2009/12/19 12:56:45 obache Exp $
#
DISTNAME= tokyotyrant-1.1.33
+PKGREVISION= 1
CATEGORIES= databases net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tokyocabinet/}
@@ -23,7 +24,13 @@ TEST_TARGET= check
BUILDLINK_API_DEPENDS.tokyocabinet+= tokyocabinet>=1.4.29
.include "../../databases/tokyocabinet/buildlink3.mk"
-.include "../../devel/zlib/buildlink3.mk"
+CONFIGURE_ARGS+= --with-tc=${BUILDLINK_PREFIX.tokyocabinet}
+.if !empty(PKG_BUILD_OPTIONS.tokyocabinet:Mbzip2)
+CONFIGURE_ARGS+= --with-bzip=${BUILDLINK_PREFIX.bzip2}
+.endif
+.if !empty(PKG_BUILD_OPTIONS.tokyocabinet:Mzlib)
+CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
+.endif
PTHREAD_AUTO_VARS= yes
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "none"