Update to 0.9.10, adding support for MySQL 5.5+.

This commit is contained in:
Akinori MUSHA 2014-01-22 11:03:44 +00:00
parent 5ed4acbddc
commit f81c34e7ba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340703
4 changed files with 29 additions and 7 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= q4m
PORTVERSION= 0.9.5
PORTVERSION= 0.9.10
CATEGORIES= databases
MASTER_SITES= http://q4m.kazuhooku.com/dist/
PKGNAMEPREFIX= mysql${MYSQL_VER}-
@ -13,13 +13,13 @@ COMMENT= A message queue that works as a pluggable storage engine of MySQL
FETCH_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/databases/mysql${MYSQL_VER}-server:build
RUN_DEPENDS= ${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql${MYSQL_VER}-server
USE_PERL5= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool
USE_MYSQL= yes
WANT_MYSQL_VER?= 51
GNU_CONFIGURE= yes
CPPFLAGS+= ${PTHREAD_CFLAGS} -I${LOCALBASE}/include
CPPFLAGS+= ${PTHREAD_CFLAGS} -I${LOCALBASE}/include -DDBUG_OFF
LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql
CONFIGURE_ARGS= --prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/mysql/plugin" \
@ -42,7 +42,7 @@ PORTDOCS= AUTHORS ChangeLog README doc
PORTEXAMPLES= crawler install.sql
post-patch:
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/include/mysql|/include/mysql/mysql|g' ${WRKSRC}/configure
post-install:
${MKDIR} ${DOCSDIR}
@ -59,6 +59,6 @@ install-functions:
mysql -u root -f mysql < ${EXAMPLESDIR}/install.sql
test:
cd ${WRKSRC}; ${PERL} run_tests.pl
cd ${WRKSRC}; ./run_tests.pl
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
SHA256 (q4m-0.9.5.tar.gz) = 97bdf74a69dd663a9d908df9fdfab35001cbdfa396e478d7aa982bcbab9f1260
SIZE (q4m-0.9.5.tar.gz) = 1631858
SHA256 (q4m-0.9.10.tar.gz) = ddca34f5cf58be70039adaa3197c6a10303218b631c3c0bd3313c892e08199bb
SIZE (q4m-0.9.10.tar.gz) = 1663838

View file

@ -0,0 +1,12 @@
--- src/ha_queue.cc.orig 2013-05-21 18:33:11.000000000 +0900
+++ src/ha_queue.cc 2014-01-22 18:50:08.633290803 +0900
@@ -64,9 +64,7 @@
#define Q4M_DELETE_MT_PWRITE 2
#define Q4M_DELETE_SERIAL_PWRITE 3
-#if MYSQL_VERSION_ID < 50500
#include "queue_config.h"
-#endif
#if SIZEOF_OFF_T != 8
# error "support for 64-bit file offsets is mandatory"

View file

@ -0,0 +1,10 @@
--- src/queue_cond.cc.orig 2013-03-22 15:35:15.000000000 +0900
+++ src/queue_cond.cc 2014-01-22 18:55:04.861289350 +0900
@@ -10,6 +10,7 @@
#include <string>
#include <iostream>
#endif
+#include "queue_config.h"
#include "queue_cond.h"
using namespace std;