1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/devel/pinba_engine/Makefile
Baptiste Daroussin b564653452 Only use libevent2
Remove libevent as libevent2 is providing a good compatibility interface as well
as providing better performances.
Remove custom patches from libevent2 and install libevent2 the regular way
Mark ports abusing private fields of the libevent1 API as broken
Import a patch from fedora to have honeyd working with libevent2
Remove most of the patches necessary to find the custom installation we used to
have for libevent2

With hat:	portmgr
2014-07-24 13:32:58 +00:00

55 lines
1.6 KiB
Makefile

# Created by: raven428 <raven428@gmail.com>
# $FreeBSD$
PORTNAME= pinba_engine
PORTVERSION= 2011.08.18
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= https://github.com/tony2001/pinba_engine/tarball/${GITVERSION}/
DISTNAME= tony2001-pinba_engine-${GITVERSION}
MAINTAINER= raven428@gmail.com
COMMENT= Mysql-engine part of statistics server for PHP
BUILD_DEPENDS= ${LOCALBASE}/include/google/protobuf/descriptor.h:${PORTSDIR}/devel/protobuf \
${LOCALBASE}/include/event.h:${PORTSDIR}/devel/libevent2 \
${LOCALBASE}/include/Judy.h:${PORTSDIR}/devel/judy \
${LOCALBASE}/lib/mysql/plugin:${PORTSDIR}/${_MYSQL_SERVER} \
${NONEXISTENT}:${PORTSDIR}/${_MYSQL_SERVER}:configure \
bison:${PORTSDIR}/devel/bison \
cmake:${PORTSDIR}/devel/cmake
LIB_DEPENDS= libprotobuf.so:${PORTSDIR}/devel/protobuf
GITVERSION= 3a0cb51
WRKSRC= ${WRKDIR}/${DISTNAME}
USE_MYSQL= yes
IGNORE_WITH_MYSQL= 50
MYSQL_WRKSRC= $$(cd ${PORTSDIR}/${_MYSQL_SERVER} && ${MAKE} -V WRKSRC)
USES= gmake
GNU_CONFIGURE= yes
USE_AUTOTOOLS= aclocal autoheader automake autoconf libtoolize
USE_LDCONFIG= ${PREFIX}/lib/mysql/plugin
AUTOMAKE_ARGS+= --add-missing --copy --force-missing
LIBTOOLIZE_ARGS+=--force --copy
ACLOCAL_ARGS+= -I ${LOCALBASE}/share/aclocal
CONFIGURE_ARGS+= \
--with-mysql=${MYSQL_WRKSRC} \
--libdir=${PREFIX}/lib/mysql/plugin
CFLAGS+= -I${LOCALBASE}/include/mysql
SUB_FILES= pkg-message
PORTDOCS= NEWS TODO README
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
@${INSTALL} ${WRKSRC}/default_tables.sql ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>