diff options
author | wen <wen@FreeBSD.org> | 2010-11-05 09:50:48 +0800 |
---|---|---|
committer | wen <wen@FreeBSD.org> | 2010-11-05 09:50:48 +0800 |
commit | 2f9b1e091e8054e264c78035a1e16c320180883e (patch) | |
tree | 1db303b5090367f411ea1c555411617eedd2c21b /databases/sqlite-ext-mobigroup/Makefile | |
parent | beee2172c7c69681f100e9b6428f378cfc3dacb6 (diff) | |
download | freebsd-ports-gnome-2f9b1e091e8054e264c78035a1e16c320180883e.tar.gz freebsd-ports-gnome-2f9b1e091e8054e264c78035a1e16c320180883e.tar.zst freebsd-ports-gnome-2f9b1e091e8054e264c78035a1e16c320180883e.zip |
- Update to 3.7.2
PR: ports/151538
Submitted by: Pavel I Volkov <pavelivolkov@googlemail.com> (maintainer)
Diffstat (limited to 'databases/sqlite-ext-mobigroup/Makefile')
-rw-r--r-- | databases/sqlite-ext-mobigroup/Makefile | 98 |
1 files changed, 41 insertions, 57 deletions
diff --git a/databases/sqlite-ext-mobigroup/Makefile b/databases/sqlite-ext-mobigroup/Makefile index f00ce78dec04..a15f6928fef7 100644 --- a/databases/sqlite-ext-mobigroup/Makefile +++ b/databases/sqlite-ext-mobigroup/Makefile @@ -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 |