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
|
|
|
PORTNAME= sqlite-ext-miscfuncs
|
2010-06-03 16:28:03 +02:00
|
|
|
PORTVERSION= 1.1
|
2018-06-10 06:43:51 +02:00
|
|
|
PORTREVISION= 2
|
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}
|
2019-12-03 10:40:32 +01:00
|
|
|
EXTRACT_SUFX= # empty
|
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
|
|
|
|
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
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://www.sqlite.org/contrib
|
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
|
|
|
|
2019-12-03 10:40:32 +01:00
|
|
|
USES= localbase sqlite
|
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
|
|
|
DIST_SUBDIR= sqlite-ext
|
|
|
|
|
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}
|
|
|
|
|
|
|
|
SUB_FILES= ${PORTDOCS}
|
2019-12-03 10:40:32 +01:00
|
|
|
SUB_LIST= LIBFILE=${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
|
|
|
|
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
|
|
|
|
|
2019-12-03 10:40:32 +01:00
|
|
|
CFLAGS+= -fPIC -lm -shared
|
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
|
|
|
|
2014-07-03 23:48:44 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2019-12-03 10:40:32 +01:00
|
|
|
do-extract:
|
|
|
|
@${MKDIR} ${WRKSRC}
|
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${SRCFILE} ${WRKSRC}/
|
|
|
|
|
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:
|
2019-12-03 10:40:32 +01:00
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} ${SRCFILE} -o ${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
|
|
|
|
|
|
|
do-install:
|
2019-12-03 10:40:32 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${INST_DIR}
|
|
|
|
${INSTALL_LIB} ${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
|
|
|
|
2016-07-19 13:04:13 +02:00
|
|
|
post-install-DOCS-on:
|
2019-12-03 10:40:32 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/README ${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>
|