sthen 94d14c30fa tweaks to tokyocabinet port:
- regen PLIST
- use srand_deterministic for tests
- add a comment explaining about the test failures, which appear to
be possibly related to cache coherency (tokyocabinet has code for non-
UBC systems, but some of the failures suggest it may not be working
correctly).
2015-10-13 12:06:54 +00:00

39 lines
983 B
Makefile

# $OpenBSD: Makefile,v 1.2 2015/10/13 12:06:54 sthen Exp $
SHARED_LIBS= tokyocabinet 0.0 # .9.7
COMMENT= key/value database library
DISTNAME= tokyocabinet-1.4.48
REVISION= 0
CATEGORIES= databases
HOMEPAGE= http://fallabs.com/tokyocabinet/
# LGPLv2.1+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += bz2 c m pthread z
MASTER_SITES= ${HOMEPAGE}
CONFIGURE_STYLE= gnu
USE_GMAKE= Yes
LIB_DEPENDS= archivers/bzip2
pre-configure:
perl -pi -e 's,^MYLIBVER=.*,MYLIBVER=${LIBtokyocabinet_VERSION:R},;' \
-e 's,^MYLIBREV=.*,MYLIBREV=${LIBtokyocabinet_VERSION:E},;' \
${WRKSRC}/configure
perl -pi -e 's,srand\(,srand_deterministic(,' ${WRKSRC}/*test.c
# otherwise tcutest misc fails
TEST_FLAGS= TZ=utc
# there are various other test failures, some of which indicate
# possible cache coherency problems. tokyocabinet has code which is
# supposed to work on non-UBC systems, however some of the failures
# suggest that this isn't working correctly on OpenBSD.
.include <bsd.port.mk>