2013-09-20 18:13:47 +02:00
|
|
|
# Created by: Greg Larkin <glarkin@FreeBSD.org>
|
Provide mathematical, string and aggregate functions for SQL queries
using the SQLite loadable extensions mechanism.
Math functions:
acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference,
degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth,
exp, log, log10, power, sign, sqrt, square, ceil, floor, pi
String functions:
replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim,
replace, reverse, proper, padl, padr, padc, strfilter
Aggregate functions:
stdev, variance, mode, median, lower_quartile, upper_quartile
WWW: http://www.sqlite.org/contrib
Submitted by: myself (glarkin)
Feature safe: yes
2010-03-05 20:29:17 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sqlite-ext-miscfuncs
|
2010-06-03 16:28:03 +02:00
|
|
|
PORTVERSION= 1.1
|
2014-07-04 11:40:59 +02:00
|
|
|
PORTREVISION= 1
|
Provide mathematical, string and aggregate functions for SQL queries
using the SQLite loadable extensions mechanism.
Math functions:
acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference,
degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth,
exp, log, log10, power, sign, sqrt, square, ceil, floor, pi
String functions:
replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim,
replace, reverse, proper, padl, padr, padc, strfilter
Aggregate functions:
stdev, variance, mode, median, lower_quartile, upper_quartile
WWW: http://www.sqlite.org/contrib
Submitted by: myself (glarkin)
Feature safe: yes
2010-03-05 20:29:17 +01:00
|
|
|
CATEGORIES= databases
|
2010-06-03 16:24:13 +02:00
|
|
|
MASTER_SITES= http://www.sourcehosting.net/freebsd/distfiles/ \
|
|
|
|
LOCAL/glarkin
|
Provide mathematical, string and aggregate functions for SQL queries
using the SQLite loadable extensions mechanism.
Math functions:
acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference,
degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth,
exp, log, log10, power, sign, sqrt, square, ceil, floor, pi
String functions:
replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim,
replace, reverse, proper, padl, padr, padc, strfilter
Aggregate functions:
stdev, variance, mode, median, lower_quartile, upper_quartile
WWW: http://www.sqlite.org/contrib
Submitted by: myself (glarkin)
Feature safe: yes
2010-03-05 20:29:17 +01:00
|
|
|
DISTNAME= ${SRCFILE}
|
|
|
|
EXTRACT_SUFX=
|
|
|
|
|
2013-12-16 19:24:49 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
Provide mathematical, string and aggregate functions for SQL queries
using the SQLite loadable extensions mechanism.
Math functions:
acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference,
degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth,
exp, log, log10, power, sign, sqrt, square, ceil, floor, pi
String functions:
replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim,
replace, reverse, proper, padl, padr, padc, strfilter
Aggregate functions:
stdev, variance, mode, median, lower_quartile, upper_quartile
WWW: http://www.sqlite.org/contrib
Submitted by: myself (glarkin)
Feature safe: yes
2010-03-05 20:29:17 +01:00
|
|
|
COMMENT= Math, string, and aggregate function library for SQLite
|
|
|
|
|
|
|
|
USE_SQLITE= yes
|
|
|
|
DIST_SUBDIR= sqlite-ext
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2010-06-03 16:24:13 +02:00
|
|
|
SRCFILE= extension-functions-${PORTVERSION}.c
|
Provide mathematical, string and aggregate functions for SQL queries
using the SQLite loadable extensions mechanism.
Math functions:
acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference,
degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth,
exp, log, log10, power, sign, sqrt, square, ceil, floor, pi
String functions:
replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim,
replace, reverse, proper, padl, padr, padc, strfilter
Aggregate functions:
stdev, variance, mode, median, lower_quartile, upper_quartile
WWW: http://www.sqlite.org/contrib
Submitted by: myself (glarkin)
Feature safe: yes
2010-03-05 20:29:17 +01:00
|
|
|
LIBFILE= libsqlitemiscfuncs.so
|
|
|
|
INST_DIR= ${PREFIX}/libexec/${DIST_SUBDIR}
|
|
|
|
USE_LDCONFIG= ${INST_DIR}
|
|
|
|
|
|
|
|
SUB_FILES= ${PORTDOCS}
|
|
|
|
SUB_LIST+= LIBFILE=${LIBFILE}
|
|
|
|
|
|
|
|
EXTRACT_CMD= ${CP}
|
|
|
|
EXTRACT_BEFORE_ARGS=
|
|
|
|
EXTRACT_AFTER_ARGS= ${WRKSRC}/
|
|
|
|
|
2014-12-20 18:40:53 +01:00
|
|
|
PLIST_FILES= libexec/${DIST_SUBDIR}/${LIBFILE}
|
Provide mathematical, string and aggregate functions for SQL queries
using the SQLite loadable extensions mechanism.
Math functions:
acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference,
degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth,
exp, log, log10, power, sign, sqrt, square, ceil, floor, pi
String functions:
replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim,
replace, reverse, proper, padl, padr, padc, strfilter
Aggregate functions:
stdev, variance, mode, median, lower_quartile, upper_quartile
WWW: http://www.sqlite.org/contrib
Submitted by: myself (glarkin)
Feature safe: yes
2010-03-05 20:29:17 +01:00
|
|
|
|
|
|
|
PORTDOCS= README
|
|
|
|
|
|
|
|
CFLAGS+= -I${PREFIX}/include -fPIC -lm -shared
|
|
|
|
|
2014-07-03 23:48:44 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
Provide mathematical, string and aggregate functions for SQL queries
using the SQLite loadable extensions mechanism.
Math functions:
acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference,
degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth,
exp, log, log10, power, sign, sqrt, square, ceil, floor, pi
String functions:
replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim,
replace, reverse, proper, padl, padr, padc, strfilter
Aggregate functions:
stdev, variance, mode, median, lower_quartile, upper_quartile
WWW: http://www.sqlite.org/contrib
Submitted by: myself (glarkin)
Feature safe: yes
2010-03-05 20:29:17 +01:00
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC} && ${CC} ${CFLAGS} ${SRCFILE} -o ${LIBFILE}
|
|
|
|
|
|
|
|
do-install:
|
2014-05-16 05:11:14 +02:00
|
|
|
@${INSTALL} -d ${STAGEDIR}${PREFIX}/libexec/${DIST_SUBDIR}
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/${LIBFILE} ${STAGEDIR}${INST_DIR}
|
Provide mathematical, string and aggregate functions for SQL queries
using the SQLite loadable extensions mechanism.
Math functions:
acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference,
degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth,
exp, log, log10, power, sign, sqrt, square, ceil, floor, pi
String functions:
replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim,
replace, reverse, proper, padl, padr, padc, strfilter
Aggregate functions:
stdev, variance, mode, median, lower_quartile, upper_quartile
WWW: http://www.sqlite.org/contrib
Submitted by: myself (glarkin)
Feature safe: yes
2010-03-05 20:29:17 +01:00
|
|
|
|
|
|
|
post-install:
|
2014-05-16 05:11:14 +02:00
|
|
|
@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${CP} ${WRKDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
Provide mathematical, string and aggregate functions for SQL queries
using the SQLite loadable extensions mechanism.
Math functions:
acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference,
degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth,
exp, log, log10, power, sign, sqrt, square, ceil, floor, pi
String functions:
replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim,
replace, reverse, proper, padl, padr, padc, strfilter
Aggregate functions:
stdev, variance, mode, median, lower_quartile, upper_quartile
WWW: http://www.sqlite.org/contrib
Submitted by: myself (glarkin)
Feature safe: yes
2010-03-05 20:29:17 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|