2013-09-20 18:13:47 +02:00
|
|
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
2008-09-02 13:32:01 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= q4m
|
2014-02-12 05:52:54 +01:00
|
|
|
PORTVERSION= 0.9.13
|
2014-06-10 07:58:55 +02:00
|
|
|
PORTREVISION= 1
|
2008-09-02 13:32:01 +02:00
|
|
|
CATEGORIES= databases
|
2011-05-16 14:45:42 +02:00
|
|
|
MASTER_SITES= http://q4m.kazuhooku.com/dist/
|
2014-01-28 13:06:29 +01:00
|
|
|
PKGNAMEPREFIX= ${_MYSQL_SERVER:T:C/-server$/-/}
|
2008-09-02 13:32:01 +02:00
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
2014-06-10 09:39:01 +02:00
|
|
|
COMMENT= Message queue that works as a pluggable storage engine of MySQL
|
2008-09-02 13:32:01 +02:00
|
|
|
|
2014-01-28 12:56:48 +01:00
|
|
|
FETCH_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/${_MYSQL_SERVER}:build
|
2008-09-02 13:32:01 +02:00
|
|
|
|
2014-06-10 07:58:55 +02:00
|
|
|
USES= gmake perl5 libtool
|
2014-01-29 09:57:07 +01:00
|
|
|
USE_MYSQL= server
|
2014-03-01 22:23:14 +01:00
|
|
|
USE_GCC= any
|
2014-02-12 05:52:54 +01:00
|
|
|
USE_PERL5= run
|
2008-09-02 13:32:01 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2014-01-23 11:15:01 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -DDBUG_OFF
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql
|
2008-09-02 13:32:01 +02:00
|
|
|
CONFIGURE_ARGS= --prefix="${PREFIX}" \
|
|
|
|
--libdir="${PREFIX}/lib/mysql/plugin" \
|
2014-01-28 13:06:29 +01:00
|
|
|
--with-mysql="$$(cd ${PORTSDIR}/${_MYSQL_SERVER}; ${MAKE} -V WRKSRC)"
|
2014-06-10 07:58:55 +02:00
|
|
|
INSTALL_TARGET= bindir=${STAGEDIR}${PREFIX}/bin install
|
2008-09-02 13:32:01 +02:00
|
|
|
|
2008-09-03 11:06:58 +02:00
|
|
|
post-extract:
|
|
|
|
${CP} -p ${WRKSRC}/support-files/install.sql ${WRKSRC}/examples/
|
|
|
|
|
2014-07-03 23:48:44 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
2008-09-02 13:32:01 +02:00
|
|
|
PORTDOCS= AUTHORS ChangeLog README doc
|
2008-09-03 11:06:58 +02:00
|
|
|
PORTEXAMPLES= crawler install.sql
|
2008-09-02 13:32:01 +02:00
|
|
|
|
2008-09-16 00:50:34 +02:00
|
|
|
post-patch:
|
2014-01-22 12:03:44 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/include/mysql|/include/mysql/mysql|g' ${WRKSRC}/configure
|
2008-09-16 00:50:34 +02:00
|
|
|
|
2008-09-02 13:32:01 +02:00
|
|
|
post-install:
|
2014-06-10 07:58:55 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2008-09-02 13:32:01 +02:00
|
|
|
.for f in ${PORTDOCS}
|
2014-06-10 07:58:55 +02:00
|
|
|
cd ${WRKSRC}; ${COPYTREE_SHARE} ${f} ${STAGEDIR}${DOCSDIR}
|
2008-09-02 13:32:01 +02:00
|
|
|
.endfor
|
2014-06-10 07:58:55 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2008-09-02 13:32:01 +02:00
|
|
|
.for f in ${PORTEXAMPLES}
|
2014-06-10 07:58:55 +02:00
|
|
|
cd ${WRKSRC}/examples; ${COPYTREE_SHARE} ${f} ${STAGEDIR}${EXAMPLESDIR}
|
2008-09-02 13:32:01 +02:00
|
|
|
.endfor
|
|
|
|
|
2009-04-28 17:28:33 +02:00
|
|
|
install-functions:
|
2014-01-23 11:15:01 +01:00
|
|
|
mysql -u root -p -f mysql < ${EXAMPLESDIR}/install.sql
|
2009-04-28 17:28:33 +02:00
|
|
|
|
2008-09-02 13:32:01 +02:00
|
|
|
test:
|
2014-01-22 12:03:44 +01:00
|
|
|
cd ${WRKSRC}; ./run_tests.pl
|
2008-09-02 13:32:01 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|