- Update to 3.7.2

PR:		ports/151538
Submitted by:	Pavel I Volkov <pavelivolkov@googlemail.com> (maintainer)
This commit is contained in:
Wen Heping 2010-11-05 01:50:48 +00:00
parent 18190d37bf
commit fff0a37c03
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264112
3 changed files with 47 additions and 60 deletions

View file

@ -6,11 +6,12 @@
#
PORTNAME= sqlite-ext-mobigroup
PORTVERSION= 4
PORTVERSION= 1
DISTVERSIONPREFIX= mobigroup.
CATEGORIES= databases
MASTER_SITES= http://mobigroup.ru/debian/pool-squeeze/main/s/sqlite3/ \
LOCAL/glarkin
PKGNAMESUFFIX= -${SQLITE_VERSION}
DISTNAME= ${SQLITE_NAME}_${SQLITE_VERSION}-${DISTVERSIONPREFIX}${DISTVERSION}
MAINTAINER= pavelivolkov@googlemail.com
@ -25,108 +26,91 @@ DIST_SUBDIR= sqlite-ext
NO_WRKSUBDIR= yes
SQLITE_NAME= sqlite3
SQLITE_VERSION= 3.7.0
SQLITE_VERSION= 3.7.2
USE_LDCONFIG= ${PREFIX}/libexec/${DIST_SUBDIR}
OPTIONS= INET "Provide the IPv4 functions in SQL queries" On \
ENV "Provide getenv functions in SQL queries" Off \
MD5 "Provide MD5 algorithm functions in SQL queries" Off
OPTIONS= \
COMPRESS "compress content into a blob using libz" off \
INET "provide the ipv4 functions in SQL queries" on \
MD5 "implements the MD5 message-digest algorithm" off \
ENV "implements the getenv" off \
.include <bsd.port.pre.mk>
PLIST_DIRS= libexec/${DIST_SUBDIR}
.ifndef NOPORTDOCS
PLIST_DIRS+= %%DOCSDIR%%
.endif
.ifndef NOPORTEXAMPLES
PLIST_DIRS+= %%EXAMPLESDIR%%
.endif
PORTDOCS= *
PORTEXAMPLES= *
.ifdef WITH_COMPRESS
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqlitecompress.so
.endif
.ifdef WITH_INET
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqliteipv4.so
.ifndef NOPORTDOCS
PLIST_FILES+= %%DOCSDIR%%/README-ipv4.txt
.endif
.ifndef NOPORTEXAMPLES
PLIST_FILES+= %%EXAMPLESDIR%%/ipv4-ext.sql
.endif
.endif
.ifdef WITH_ENV
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqliteenv.so
.ifndef NOPORTDOCS
PLIST_FILES+= %%DOCSDIR%%/README-env.txt
.endif
.endif
.ifdef WITH_MD5
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqlitemd5.so
.ifndef NOPORTDOCS
PLIST_FILES+= %%DOCSDIR%%/README-md5.txt
.endif
.ifndef NOPORTEXAMPLES
PLIST_FILES+= %%EXAMPLESDIR%%/md5.sql
.endif
.endif
.if !defined(WITH_INET) && !defined(WITH_ENV) && !defined(WITH_MD5)
IGNORE= requires at least one selected module to build
.endif
CFLAGS+= -I${PREFIX}/include -fPIC -lm -shared
do-build:
.ifdef WITH_COMPRESS
@cd ${WRKSRC}/${SQLITE_NAME}/ext/_compress && \
${CC} -lz ${CFLAGS} compress.c -o libsqlitecompress.so
.endif
.ifdef WITH_INET
@cd ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/inet && \
@cd ${WRKSRC}/${SQLITE_NAME}/ext/inet && \
${CC} ${CFLAGS} ipv4-ext.c -o libsqliteipv4.so
.endif
.ifdef WITH_ENV
@cd ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/env && \
@cd ${WRKSRC}/${SQLITE_NAME}/ext/env && \
${CC} ${CFLAGS} env.c -o libsqliteenv.so
.endif
.ifdef WITH_MD5
@cd ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/md5 && \
@cd ${WRKSRC}/${SQLITE_NAME}/ext/md5 && \
${CC} ${CFLAGS} md5.c -o libsqlitemd5.so
.endif
do-install:
.ifdef WITH_INET
@${MKDIR} ${PREFIX}/libexec/${DIST_SUBDIR}
@${INSTALL_PROGRAM} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/inet/libsqliteipv4.so ${PREFIX}/libexec/${DIST_SUBDIR}
.ifndef NOPORTDOCS
@${MKDIR} ${DOCSDIR}
.endif
.ifndef NOPORTEXAMPLES
@${MKDIR} ${EXAMPLESDIR}
.endif
.ifdef WITH_COMPRESS
@${INSTALL_PROGRAM} ${WRKSRC}/${SQLITE_NAME}/ext/_compress/libsqlitecompress.so ${PREFIX}/libexec/${DIST_SUBDIR}
.endif
.ifdef WITH_INET
@${INSTALL_PROGRAM} ${WRKSRC}/${SQLITE_NAME}/ext/inet/libsqliteipv4.so ${PREFIX}/libexec/${DIST_SUBDIR}
. ifndef NOPORTDOCS
@${MKDIR} ${DOCSDIR}
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/inet/ipv4-ext.c > ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/inet/README-ipv4.txt
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/inet/README-ipv4.txt ${DOCSDIR}
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/${SQLITE_NAME}/ext/inet/ipv4-ext.c > ${WRKSRC}/${SQLITE_NAME}/ext/inet/README-ipv4.txt
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}/ext/inet/README-ipv4.txt ${DOCSDIR}
. endif
. ifndef NOPORTEXAMPLES
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/inet/ipv4-ext.sql ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}/ext/inet/ipv4-ext.sql ${EXAMPLESDIR}
. endif
.endif
.ifdef WITH_ENV
@${MKDIR} ${PREFIX}/libexec/${DIST_SUBDIR}
@${INSTALL_PROGRAM} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/env/libsqliteenv.so ${PREFIX}/libexec/${DIST_SUBDIR}
@${INSTALL_PROGRAM} ${WRKSRC}/${SQLITE_NAME}/ext/env/libsqliteenv.so ${PREFIX}/libexec/${DIST_SUBDIR}
. ifndef NOPORTDOCS
@${MKDIR} ${DOCSDIR}
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/env/env.c > ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/env/README-env.txt
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/env/README-env.txt ${DOCSDIR}
. endif
. ifndef NOPORTEXAMPLES
@${MKDIR} ${EXAMPLESDIR}
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/${SQLITE_NAME}/ext/env/env.c > ${WRKSRC}/${SQLITE_NAME}/ext/env/README-env.txt
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}/ext/env/README-env.txt ${DOCSDIR}
. endif
.endif
.ifdef WITH_MD5
@${MKDIR} ${PREFIX}/libexec/${DIST_SUBDIR}
@${INSTALL_PROGRAM} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/md5/libsqlitemd5.so ${PREFIX}/libexec/${DIST_SUBDIR}
@${INSTALL_PROGRAM} ${WRKSRC}/${SQLITE_NAME}/ext/md5/libsqlitemd5.so ${PREFIX}/libexec/${DIST_SUBDIR}
. ifndef NOPORTDOCS
@${MKDIR} ${DOCSDIR}
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/md5/md5.c > ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/md5/README-md5.txt
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/md5/README-md5.txt ${DOCSDIR}
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/${SQLITE_NAME}/ext/md5/md5.c > ${WRKSRC}/${SQLITE_NAME}/ext/md5/README-md5.txt
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}/ext/md5/README-md5.txt ${DOCSDIR}
. endif
. ifndef NOPORTEXAMPLES
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/md5/md5.sql ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}/ext/md5/md5.sql ${EXAMPLESDIR}
. endif
.endif

View file

@ -1,3 +1,2 @@
MD5 (sqlite-ext/sqlite3_3.7.0-mobigroup.4.tar.gz) = d57be605fb5b3779452c9dde4ab6b1d3
SHA256 (sqlite-ext/sqlite3_3.7.0-mobigroup.4.tar.gz) = 7b45e9ceb2a3b6e5c24c83094dce3a31af3e3c7081fac74d306cf279f8097d29
SIZE (sqlite-ext/sqlite3_3.7.0-mobigroup.4.tar.gz) = 3871193
SHA256 (sqlite-ext/sqlite3_3.7.2-mobigroup.1.tar.gz) = f9616819969b00802b42e1d8b8599878a3774df268aebfdd78ed2a3051f1ead6
SIZE (sqlite-ext/sqlite3_3.7.2-mobigroup.1.tar.gz) = 3923088

View file

@ -1,5 +1,9 @@
These SQLite extension libraries provide the following functions:
Compress content into a blob using libz
(loaded with ".load libsqlitecompress.so"):
COMPRESS, UNCOMPRESS
IPv4 functions (loaded with ".load libsqliteipv4.so"):
ISINNET, ISSAMENET
IP2INT, INT2IP