summaryrefslogtreecommitdiffstats
path: root/devel/pinba_engine/Makefile
blob: 16e35b635d7e908edcfb1c1e9a0bddaec8176939 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: raven428 <raven428@gmail.com>
# $FreeBSD$

PORTNAME=	pinba_engine
PORTVERSION=	2011.08.18
PORTREVISION=	6
CATEGORIES=	devel

MAINTAINER=	raven428@gmail.com
COMMENT=	Mysql-engine part of statistics server for PHP

BUILD_DEPENDS=	${LOCALBASE}/include/google/protobuf/descriptor.h:devel/protobuf \
		${LOCALBASE}/include/event.h:devel/libevent2 \
		${LOCALBASE}/include/Judy.h:devel/judy \
		${LOCALBASE}/lib/mysql/plugin:${_MYSQL_SERVER} \
		${NONEXISTENT}:${_MYSQL_SERVER}:configure \
		bison:devel/bison \
		cmake:devel/cmake
LIB_DEPENDS=	libprotobuf.so:devel/protobuf

BROKEN=		fails to configure (error: Failed to find required header file include/mysql_version.h)

USE_GITHUB=	yes
GH_ACCOUNT=	tony2001
GH_TAGNAME=	3a0cb51

USE_MYSQL=	yes
IGNORE_WITH_MYSQL=	50

MYSQL_WRKSRC=	$$(cd ${PORTSDIR}/${_MYSQL_SERVER} && ${MAKE} -V WRKSRC)

GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
USES=		autoreconf gmake libtool
USE_LDCONFIG=	${PREFIX}/lib/mysql/plugin

CONFIGURE_ARGS=	--disable-static \
		--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>
OpenPOWER on IntegriCloud