benchmarks/sysbench: fix build on powerpc64

On powerpc64 use luajit-openresty, while main luajit port doesn't work on powerpc64.
This commit is contained in:
Piotr Kubaj 2020-09-23 08:56:16 +00:00
parent 3fc24e6819
commit 85831c769f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=549672

View File

@ -11,10 +11,9 @@ COMMENT= Scriptable database and system performance benchmark
LICENSE= GPLv2 LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libck.so:devel/concurrencykit \ LIB_DEPENDS= libck.so:devel/concurrencykit
libluajit-5.1.so:lang/luajit
USES= autoreconf gmake libtool pkgconfig USES= autoreconf compiler:c11 gmake libtool pkgconfig
CONFIGURE_ARGS= --with-system-ck --with-system-luajit CONFIGURE_ARGS= --with-system-ck --with-system-luajit
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
@ -31,6 +30,14 @@ MYSQL_USES= mysql
PGSQL_CONFIGURE_WITH= pgsql PGSQL_CONFIGURE_WITH= pgsql
PGSQL_USES= pgsql PGSQL_USES= pgsql
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc64
LIB_DEPENDS+= libluajit-5.1.so:lang/luajit-openresty
.else
LIB_DEPENDS+= libluajit-5.1.so:lang/luajit
.endif
post-patch: post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| doc||' ${WRKSRC}/Makefile.am @${REINPLACE_CMD} -e '/^SUBDIRS = / s| doc||' ${WRKSRC}/Makefile.am