1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/databases/mysql-q4m/Makefile
Jeremy Messenger 789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +00:00

68 lines
2.0 KiB
Makefile

# New ports collection makefile for: Q4M
# Date created: 1 September 2008
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= q4m
PORTVERSION= 0.8.5
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
RUN_DEPENDS= ${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql${MYSQL_VER}-server
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:22
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)"
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/
.if !defined(NOPORTDOCS)
PORTDOCS= AUTHORS ChangeLog README doc
PORTEXAMPLES= crawler install.sql
post-patch:
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${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 -f mysql < ${EXAMPLESDIR}/install.sql
test:
cd ${WRKSRC}; ${PERL} run_tests.pl
.include <bsd.port.mk>