Makefile 983 B

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