openbsd-ports/databases/kyotocabinet/Makefile
2013-03-11 02:52:04 +00:00

51 lines
1.2 KiB
Makefile
Executable File

# $OpenBSD: Makefile,v 1.7 2013/03/11 02:52:05 espie Exp $
BROKEN-hppa= undefined reference to `__sync_fetch_and_add_8'
BROKEN-mips64= undefined reference to `__sync_fetch_and_add_8'
BROKEN-powerpc= undefined reference to `__sync_fetch_and_add_8'
COMMENT= straightforward implementation of DBM
DISTNAME= kyotocabinet-1.2.76
SHARED_LIBS += kyotocabinet 0.0 # 16.0
CATEGORIES= databases
HOMEPAGE= http://fallabs.com/kyotocabinet/
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c m pthread stdc++ z
MASTER_SITES= ${HOMEPAGE}pkg/
USE_GMAKE= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
# This FLAVOR should be used for local builds only and not added to
# bulks (i.e. _no_ entry in databases/Makefile); the reason is that it
# uses -march=native which cannot be guaranteed to work on a machine it
# was not compiled on.
FLAVORS= optimized
FLAVOR?=
.if ${FLAVOR:Moptimized}
CONFIGURE_ARGS += --enable-opt
.else
CONFIGURE_ARGS += --disable-opt
# i386 still need some optimized instructions
# undefined reference to `__sync_bool_compare_and_swap_8' ...
.if ${MACHINE_ARCH} == "i386"
CXXFLAGS += -march=i586
.endif
.endif
pre-configure:
${SUBST_CMD} ${WRKSRC}/{configure,Makefile.in}
.include <bsd.port.mk>