Lines 6-16
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= sqlite-ext-mobigroup |
8 |
PORTNAME= sqlite-ext-mobigroup |
9 |
PORTVERSION= 4 |
9 |
PORTVERSION= 1 |
10 |
DISTVERSIONPREFIX= mobigroup. |
10 |
DISTVERSIONPREFIX= mobigroup. |
|
|
11 |
#PORTREVISION= 1 |
11 |
CATEGORIES= databases |
12 |
CATEGORIES= databases |
12 |
MASTER_SITES= http://mobigroup.ru/debian/pool-squeeze/main/s/sqlite3/ \ |
13 |
MASTER_SITES= http://mobigroup.ru/debian/pool-squeeze/main/s/sqlite3/ \ |
13 |
LOCAL/glarkin |
14 |
LOCAL/glarkin |
|
|
15 |
PKGNAMESUFFIX= -${SQLITE_VERSION} |
14 |
DISTNAME= ${SQLITE_NAME}_${SQLITE_VERSION}-${DISTVERSIONPREFIX}${DISTVERSION} |
16 |
DISTNAME= ${SQLITE_NAME}_${SQLITE_VERSION}-${DISTVERSIONPREFIX}${DISTVERSION} |
15 |
|
17 |
|
16 |
MAINTAINER= pavelivolkov@googlemail.com |
18 |
MAINTAINER= pavelivolkov@googlemail.com |
Lines 25-132
Link Here
|
25 |
NO_WRKSUBDIR= yes |
27 |
NO_WRKSUBDIR= yes |
26 |
|
28 |
|
27 |
SQLITE_NAME= sqlite3 |
29 |
SQLITE_NAME= sqlite3 |
28 |
SQLITE_VERSION= 3.7.0 |
30 |
SQLITE_VERSION= 3.7.2 |
29 |
|
31 |
|
30 |
USE_LDCONFIG= ${PREFIX}/libexec/${DIST_SUBDIR} |
32 |
USE_LDCONFIG= ${PREFIX}/libexec/${DIST_SUBDIR} |
31 |
|
33 |
|
32 |
OPTIONS= INET "Provide the IPv4 functions in SQL queries" On \ |
34 |
OPTIONS= \ |
33 |
ENV "Provide getenv functions in SQL queries" Off \ |
35 |
COMPRESS "compress content into a blob using libz" off \ |
34 |
MD5 "Provide MD5 algorithm functions in SQL queries" Off |
36 |
INET "provide the ipv4 functions in SQL queries" on \ |
|
|
37 |
MD5 "implements the MD5 message-digest algorithm" off \ |
38 |
ENV "implements the getenv" off \ |
35 |
|
39 |
|
36 |
.include <bsd.port.pre.mk> |
40 |
.include <bsd.port.pre.mk> |
37 |
|
41 |
|
38 |
PLIST_DIRS= libexec/${DIST_SUBDIR} |
42 |
PLIST_DIRS= libexec/${DIST_SUBDIR} |
39 |
.ifndef NOPORTDOCS |
43 |
PORTDOCS= * |
40 |
PLIST_DIRS+= %%DOCSDIR%% |
44 |
PORTEXAMPLES= * |
41 |
.endif |
|
|
42 |
.ifndef NOPORTEXAMPLES |
43 |
PLIST_DIRS+= %%EXAMPLESDIR%% |
44 |
.endif |
45 |
|
45 |
|
|
|
46 |
.ifdef WITH_COMPRESS |
47 |
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqlitecompress.so |
48 |
.endif |
46 |
.ifdef WITH_INET |
49 |
.ifdef WITH_INET |
47 |
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqliteipv4.so |
50 |
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqliteipv4.so |
48 |
.ifndef NOPORTDOCS |
|
|
49 |
PLIST_FILES+= %%DOCSDIR%%/README-ipv4.txt |
50 |
.endif |
51 |
.ifndef NOPORTEXAMPLES |
52 |
PLIST_FILES+= %%EXAMPLESDIR%%/ipv4-ext.sql |
53 |
.endif |
51 |
.endif |
54 |
.endif |
|
|
55 |
|
56 |
.ifdef WITH_ENV |
52 |
.ifdef WITH_ENV |
57 |
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqliteenv.so |
53 |
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqliteenv.so |
58 |
.ifndef NOPORTDOCS |
|
|
59 |
PLIST_FILES+= %%DOCSDIR%%/README-env.txt |
60 |
.endif |
61 |
.endif |
54 |
.endif |
62 |
|
|
|
63 |
.ifdef WITH_MD5 |
55 |
.ifdef WITH_MD5 |
64 |
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqlitemd5.so |
56 |
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqlitemd5.so |
65 |
.ifndef NOPORTDOCS |
|
|
66 |
PLIST_FILES+= %%DOCSDIR%%/README-md5.txt |
67 |
.endif |
68 |
.ifndef NOPORTEXAMPLES |
69 |
PLIST_FILES+= %%EXAMPLESDIR%%/md5.sql |
70 |
.endif |
71 |
.endif |
72 |
|
73 |
.if !defined(WITH_INET) && !defined(WITH_ENV) && !defined(WITH_MD5) |
74 |
IGNORE= requires at least one selected module to build |
75 |
.endif |
57 |
.endif |
76 |
|
58 |
|
77 |
CFLAGS+= -I${PREFIX}/include -fPIC -lm -shared |
59 |
CFLAGS+= -I${PREFIX}/include -fPIC -lm -shared |
78 |
|
60 |
|
79 |
do-build: |
61 |
do-build: |
|
|
62 |
.ifdef WITH_COMPRESS |
63 |
@cd ${WRKSRC}/${SQLITE_NAME}/ext/_compress && \ |
64 |
${CC} -lz ${CFLAGS} compress.c -o libsqlitecompress.so |
65 |
.endif |
80 |
.ifdef WITH_INET |
66 |
.ifdef WITH_INET |
81 |
@cd ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/inet && \ |
67 |
@cd ${WRKSRC}/${SQLITE_NAME}/ext/inet && \ |
82 |
${CC} ${CFLAGS} ipv4-ext.c -o libsqliteipv4.so |
68 |
${CC} ${CFLAGS} ipv4-ext.c -o libsqliteipv4.so |
83 |
.endif |
69 |
.endif |
84 |
.ifdef WITH_ENV |
70 |
.ifdef WITH_ENV |
85 |
@cd ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/env && \ |
71 |
@cd ${WRKSRC}/${SQLITE_NAME}/ext/env && \ |
86 |
${CC} ${CFLAGS} env.c -o libsqliteenv.so |
72 |
${CC} ${CFLAGS} env.c -o libsqliteenv.so |
87 |
.endif |
73 |
.endif |
88 |
.ifdef WITH_MD5 |
74 |
.ifdef WITH_MD5 |
89 |
@cd ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/md5 && \ |
75 |
@cd ${WRKSRC}/${SQLITE_NAME}/ext/md5 && \ |
90 |
${CC} ${CFLAGS} md5.c -o libsqlitemd5.so |
76 |
${CC} ${CFLAGS} md5.c -o libsqlitemd5.so |
91 |
.endif |
77 |
.endif |
92 |
|
78 |
|
93 |
do-install: |
79 |
do-install: |
94 |
.ifdef WITH_INET |
|
|
95 |
@${MKDIR} ${PREFIX}/libexec/${DIST_SUBDIR} |
80 |
@${MKDIR} ${PREFIX}/libexec/${DIST_SUBDIR} |
96 |
@${INSTALL_PROGRAM} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/inet/libsqliteipv4.so ${PREFIX}/libexec/${DIST_SUBDIR} |
81 |
.ifndef NOPORTDOCS |
|
|
82 |
@${MKDIR} ${DOCSDIR} |
83 |
.endif |
84 |
.ifndef NOPORTEXAMPLES |
85 |
@${MKDIR} ${EXAMPLESDIR} |
86 |
.endif |
87 |
.ifdef WITH_COMPRESS |
88 |
@${INSTALL_PROGRAM} ${WRKSRC}/${SQLITE_NAME}/ext/_compress/libsqlitecompress.so ${PREFIX}/libexec/${DIST_SUBDIR} |
89 |
.endif |
90 |
.ifdef WITH_INET |
91 |
@${INSTALL_PROGRAM} ${WRKSRC}/${SQLITE_NAME}/ext/inet/libsqliteipv4.so ${PREFIX}/libexec/${DIST_SUBDIR} |
97 |
. ifndef NOPORTDOCS |
92 |
. ifndef NOPORTDOCS |
98 |
@${MKDIR} ${DOCSDIR} |
93 |
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/${SQLITE_NAME}/ext/inet/ipv4-ext.c > ${WRKSRC}/${SQLITE_NAME}/ext/inet/README-ipv4.txt |
99 |
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/inet/ipv4-ext.c > ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/inet/README-ipv4.txt |
94 |
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}/ext/inet/README-ipv4.txt ${DOCSDIR} |
100 |
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/inet/README-ipv4.txt ${DOCSDIR} |
|
|
101 |
. endif |
95 |
. endif |
102 |
. ifndef NOPORTEXAMPLES |
96 |
. ifndef NOPORTEXAMPLES |
103 |
@${MKDIR} ${EXAMPLESDIR} |
97 |
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}/ext/inet/ipv4-ext.sql ${EXAMPLESDIR} |
104 |
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/inet/ipv4-ext.sql ${EXAMPLESDIR} |
|
|
105 |
. endif |
98 |
. endif |
106 |
.endif |
99 |
.endif |
107 |
.ifdef WITH_ENV |
100 |
.ifdef WITH_ENV |
108 |
@${MKDIR} ${PREFIX}/libexec/${DIST_SUBDIR} |
101 |
@${INSTALL_PROGRAM} ${WRKSRC}/${SQLITE_NAME}/ext/env/libsqliteenv.so ${PREFIX}/libexec/${DIST_SUBDIR} |
109 |
@${INSTALL_PROGRAM} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/env/libsqliteenv.so ${PREFIX}/libexec/${DIST_SUBDIR} |
|
|
110 |
. ifndef NOPORTDOCS |
102 |
. ifndef NOPORTDOCS |
111 |
@${MKDIR} ${DOCSDIR} |
103 |
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/${SQLITE_NAME}/ext/env/env.c > ${WRKSRC}/${SQLITE_NAME}/ext/env/README-env.txt |
112 |
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/env/env.c > ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/env/README-env.txt |
104 |
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}/ext/env/README-env.txt ${DOCSDIR} |
113 |
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/env/README-env.txt ${DOCSDIR} |
|
|
114 |
. endif |
115 |
. ifndef NOPORTEXAMPLES |
116 |
@${MKDIR} ${EXAMPLESDIR} |
117 |
. endif |
105 |
. endif |
118 |
.endif |
106 |
.endif |
119 |
.ifdef WITH_MD5 |
107 |
.ifdef WITH_MD5 |
120 |
@${MKDIR} ${PREFIX}/libexec/${DIST_SUBDIR} |
108 |
@${INSTALL_PROGRAM} ${WRKSRC}/${SQLITE_NAME}/ext/md5/libsqlitemd5.so ${PREFIX}/libexec/${DIST_SUBDIR} |
121 |
@${INSTALL_PROGRAM} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/md5/libsqlitemd5.so ${PREFIX}/libexec/${DIST_SUBDIR} |
|
|
122 |
. ifndef NOPORTDOCS |
109 |
. ifndef NOPORTDOCS |
123 |
@${MKDIR} ${DOCSDIR} |
110 |
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/${SQLITE_NAME}/ext/md5/md5.c > ${WRKSRC}/${SQLITE_NAME}/ext/md5/README-md5.txt |
124 |
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/md5/md5.c > ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/md5/README-md5.txt |
111 |
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}/ext/md5/README-md5.txt ${DOCSDIR} |
125 |
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/md5/README-md5.txt ${DOCSDIR} |
|
|
126 |
. endif |
112 |
. endif |
127 |
. ifndef NOPORTEXAMPLES |
113 |
. ifndef NOPORTEXAMPLES |
128 |
@${MKDIR} ${EXAMPLESDIR} |
114 |
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}/ext/md5/md5.sql ${EXAMPLESDIR} |
129 |
@${INSTALL_DATA} ${WRKSRC}/${SQLITE_NAME}-${SQLITE_VERSION}/ext/md5/md5.sql ${EXAMPLESDIR} |
|
|
130 |
. endif |
115 |
. endif |
131 |
.endif |
116 |
.endif |
132 |
|
117 |
|