Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # $OpenBSD: Makefile,v 1.17 2017/04/16 20:27:48 sthen Exp $
  2. BROKEN-hppa= undefined reference to __sync_fetch_and_add_8
  3. BROKEN-powerpc= undefined reference to __sync_fetch_and_add_8
  4. # requires C++ tr1 headers
  5. NOT_FOR_ARCHS= ${GCC3_ARCHS}
  6. COMMENT= straightforward implementation of DBM
  7. DISTNAME= kyotocabinet-1.2.76
  8. REVISION= 0
  9. SHARED_LIBS += kyotocabinet 0.0 # 16.0
  10. CATEGORIES= databases
  11. HOMEPAGE= http://fallabs.com/kyotocabinet/
  12. # GPLv3
  13. PERMIT_PACKAGE_CDROM= Yes
  14. WANTLIB += c m pthread ${LIBCXX} z
  15. MASTER_SITES= ${HOMEPAGE}pkg/
  16. # for atomic builtins
  17. MODULES= gcc4
  18. MODGCC4_ARCHS= arm
  19. MODGCC4_LANGS= c++
  20. USE_GMAKE= Yes
  21. CONFIGURE_STYLE=gnu
  22. # This FLAVOR should be used for local builds only and not added to
  23. # bulks (i.e. _no_ entry in databases/Makefile); the reason is that it
  24. # uses -march=native which cannot be guaranteed to work on a machine it
  25. # was not compiled on.
  26. FLAVORS= optimized
  27. FLAVOR?=
  28. .if ${FLAVOR:Moptimized}
  29. CONFIGURE_ARGS += --enable-opt
  30. .else
  31. CONFIGURE_ARGS += --disable-opt
  32. # i386 still need some optimized instructions
  33. # undefined reference to `__sync_bool_compare_and_swap_8' ...
  34. .if ${MACHINE_ARCH} == "i386"
  35. CXXFLAGS += -march=i586
  36. .endif
  37. .endif
  38. pre-configure:
  39. ${SUBST_CMD} ${WRKSRC}/{configure,Makefile.in}
  40. .include <bsd.port.mk>