1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-09 02:22:18 +00:00
freebsd-ports/databases/mysql-udf/Makefile
Pawel Pekala 9c50a8bbec - Install files to correct plugins path [1]
- Do silent cat pkg-message

http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_plugin_dir

PR:		ports/162562 [1]
Submitted by:	Panagiotis Christias <p.christias@noc.ntua.gr> [1]

Feature safe:	yes
2011-11-29 21:53:32 +00:00

54 lines
1.2 KiB
Makefile

# New ports collection makefile for: mysql-udf
# Date created: April 2008
# Whom: Martin Matuska <mm@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mysql-udf
PORTVERSION= 0.3
PORTREVISION= 2
CATEGORIES= databases
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Set of user-defined functions for the MySQL server
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_MYSQL= yes
MODULES= colwidth confidence_higher confidence_lower correlation \
faculty geomean intercept kurtosis longest median noverm \
skewness slope stdnorm_density stdnorm_dist weightedavg
.for MODULE in ${MODULES}
PLIST_FILES+= lib/mysql/plugin/udf_${MODULE}.so
.endfor
PLIST_DIRS= lib/mysql/plugin
.include <bsd.port.pre.mk>
.if ${ARCH} == amd64
CFLAGS+= -fPIC
.endif
do-build:
.for MODULE in ${MODULES}
cd ${WRKSRC} && \
${CC} ${CFLAGS} -I${LOCALBASE}/include/mysql -c -o udf_${MODULE}.o udf_${MODULE}.cc && \
${CC} -shared -o udf_${MODULE}.so udf_${MODULE}.o
.endfor
do-install:
${MKDIR} ${PREFIX}/lib/mysql/plugin
.for MODULE in ${MODULES}
${INSTALL_PROGRAM} ${WRKSRC}/udf_${MODULE}.so ${PREFIX}/lib/mysql/plugin/udf_${MODULE}.so
.endfor
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>