2008-09-02 13:32:01 +02:00
|
|
|
# New ports collection makefile for: Q4M
|
|
|
|
# Date created: 1 September 2008
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= q4m
|
2009-02-21 07:00:25 +01:00
|
|
|
PORTVERSION= 0.8.4
|
2008-09-02 13:32:01 +02:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= http://q4m.31tools.com/dist/
|
|
|
|
PKGNAMEPREFIX= mysql${MYSQL_VER}-
|
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
COMMENT= A message queue that works as a pluggable storage engine of MySQL
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/databases/mysql${MYSQL_VER}-server:build \
|
|
|
|
${LOCALBASE}/include/boost/spirit/core.hpp:${PORTSDIR}/devel/boost
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql${MYSQL_VER}-server
|
|
|
|
|
2008-09-15 22:56:16 +02:00
|
|
|
USE_GMAKE= yes
|
2008-09-16 01:14:27 +02:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2008-09-02 13:32:01 +02:00
|
|
|
USE_MYSQL= yes
|
|
|
|
WANT_MYSQL_VER?= 51
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql"
|
|
|
|
CONFIGURE_ARGS= --prefix="${PREFIX}" \
|
|
|
|
--libdir="${PREFIX}/lib/mysql/plugin" \
|
|
|
|
--with-mysql="$$(cd ${PORTSDIR}/databases/mysql${MYSQL_VER}-server; ${MAKE} -V WRKSRC)"
|
|
|
|
|
2008-09-03 11:06:58 +02:00
|
|
|
COPYTREE_AUTO= ${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
|
|
|
|
2>&1) && \
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \
|
|
|
|
${FIND} $$1 -type d -exec chmod 755 {} \; && \
|
|
|
|
${FIND} $$1 -type f \! -perm +100 -exec chmod ${SHAREMODE} {} \; && \
|
|
|
|
${FIND} $$1 -type f -perm +100 -exec ${CHOWN} ${BINOWN}:${BINGRP} {} \; && \
|
|
|
|
${FIND} $$1 -type f -perm +100 -exec chmod ${BINMODE} {} \;' --
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${CP} -p ${WRKSRC}/support-files/install.sql ${WRKSRC}/examples/
|
|
|
|
|
2008-09-02 13:32:01 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
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:
|
|
|
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure
|
|
|
|
|
2008-09-02 13:32:01 +02:00
|
|
|
post-install:
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for f in ${PORTDOCS}
|
2008-09-03 11:06:58 +02:00
|
|
|
cd ${WRKSRC}; ${COPYTREE_SHARE} ${f} ${DOCSDIR}
|
2008-09-02 13:32:01 +02:00
|
|
|
.endfor
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
.for f in ${PORTEXAMPLES}
|
2008-09-03 11:06:58 +02:00
|
|
|
cd ${WRKSRC}/examples; ${COPYTREE_AUTO} ${f} ${EXAMPLESDIR}
|
2008-09-02 13:32:01 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
test:
|
2008-09-03 11:06:58 +02:00
|
|
|
cd ${WRKSRC}; ${PERL} run_tests.pl
|
2008-09-02 13:32:01 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|