blob: 82c8de5554c3ece4185da929eda77b404d6fd064 (
plain) (
blame)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= q4m
PORTVERSION= 0.9.10
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://q4m.kazuhooku.com/dist/
PKGNAMEPREFIX= mysql${MYSQL_VER}-
MAINTAINER= knu@FreeBSD.org
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
USES= gmake perl5
USE_AUTOTOOLS= libtool
USE_MYSQL= yes
USE_GCC= 4.2+
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include -DDBUG_OFF
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)"
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} {} \;' --
NO_STAGE= yes
post-extract:
${CP} -p ${WRKSRC}/support-files/install.sql ${WRKSRC}/examples/
.if !defined(NOPORTDOCS)
PORTDOCS= AUTHORS ChangeLog README doc
PORTEXAMPLES= crawler install.sql
post-patch:
@${REINPLACE_CMD} -e 's|/include/mysql|/include/mysql/mysql|g' ${WRKSRC}/configure
post-install:
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
cd ${WRKSRC}; ${COPYTREE_SHARE} ${f} ${DOCSDIR}
.endfor
${MKDIR} ${EXAMPLESDIR}
.for f in ${PORTEXAMPLES}
cd ${WRKSRC}/examples; ${COPYTREE_AUTO} ${f} ${EXAMPLESDIR}
.endfor
.endif
install-functions:
mysql -u root -p -f mysql < ${EXAMPLESDIR}/install.sql
test:
cd ${WRKSRC}; ./run_tests.pl
.include <bsd.port.mk>
|