2008-10-13 07:39:46 +02:00
|
|
|
# $NetBSD: Makefile,v 1.4 2008/10/13 05:39:46 obache Exp $
|
2008-09-04 14:10:28 +02:00
|
|
|
#
|
|
|
|
|
2008-10-13 07:39:46 +02:00
|
|
|
DISTNAME= tokyocabinet-1.3.12
|
2008-09-04 14:10:28 +02:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tokyocabinet/}
|
|
|
|
|
|
|
|
MAINTAINER= obache@NetBSD.org
|
|
|
|
HOMEPAGE= http://tokyocabinet.sourceforge.net/
|
|
|
|
COMMENT= Modern implementation of DBM
|
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_TOOLS+= gmake pkg-config
|
|
|
|
|
|
|
|
PKGCONFIG_OVERRIDE+= tokyocabinet.pc.in
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-zlib
|
|
|
|
CONFIGURE_ARGS+= --enable-bzip
|
|
|
|
CONFIGURE_ARGS+= --enable-exlzma
|
|
|
|
CONFIGURE_ARGS+= --enable-exlzo
|
|
|
|
|
|
|
|
TEST_TARGET= check
|
|
|
|
|
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
|
|
|
.include "../../archivers/lzmalib/buildlink3.mk"
|
|
|
|
.include "../../archivers/lzo/buildlink3.mk"
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
PTHREAD_AUTO_VARS= yes
|
|
|
|
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
|
|
|
|
CONFIGURE_ARGS+= --disable-pthread
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-pthread
|
|
|
|
SUBST_CLASSES+= pthread
|
|
|
|
SUBST_STAGE.pthread= pre-configure
|
|
|
|
SUBST_FILES.pthread= configure
|
|
|
|
SUBST_SED.pthread= -e 's|-lpthread|${PTHREAD_LIBS}|'
|
|
|
|
.endif
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|