diff options
author | obache <obache@pkgsrc.org> | 2009-12-19 12:56:45 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2009-12-19 12:56:45 +0000 |
commit | 5a9bff91e0f3b128a6ec13025a5bfeae358ca154 (patch) | |
tree | 1a43c0d52ff39401d6386696855fa36dc5efc749 /databases/tokyotyrant | |
parent | 73d9de712957ac291b6b09fe9c87d9d5131f743e (diff) | |
download | pkgsrc-5a9bff91e0f3b128a6ec13025a5bfeae358ca154.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/Makefile | 11 |
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" |