2007-10-08 04:22:38 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.16 2007/10/08 08:22:42 steven Exp $
|
2006-06-26 14:04:24 -04:00
|
|
|
|
2007-09-15 19:29:57 -04:00
|
|
|
COMMENT-main= Prelude framework database-access library
|
|
|
|
COMMENT-pgsql= PostgreSQL module for libpreludedb
|
|
|
|
COMMENT-mysql= MySQL module for libpreludedb
|
|
|
|
COMMENT-sqlite= SQLite3 module for libpreludedb
|
2006-06-26 14:04:24 -04:00
|
|
|
|
2007-08-27 13:46:47 -04:00
|
|
|
VERSION= 0.9.13
|
2006-06-26 14:04:24 -04:00
|
|
|
DISTNAME= libpreludedb-${VERSION}
|
|
|
|
|
2007-10-08 04:22:38 -04:00
|
|
|
PKGNAME-main= prelude-libpreludedb-${VERSION}p0
|
|
|
|
PKGNAME-pgsql= prelude-libpreludedb-pgsql-${VERSION}p0
|
|
|
|
PKGNAME-mysql= prelude-libpreludedb-mysql-${VERSION}p0
|
|
|
|
PKGNAME-sqlite= prelude-libpreludedb-sqlite-${VERSION}p0
|
2006-06-26 14:04:24 -04:00
|
|
|
|
2006-09-24 16:37:14 -04:00
|
|
|
MODULES= lang/python \
|
|
|
|
devel/gettext
|
2006-06-26 14:04:24 -04:00
|
|
|
|
2007-08-27 13:46:47 -04:00
|
|
|
SHARED_LIBS= preludedb 4.7 # .4.5
|
2006-06-26 14:04:24 -04:00
|
|
|
|
|
|
|
WANTLIB= z
|
2006-12-30 11:30:11 -05:00
|
|
|
WANTLIB-main= ${WANTLIB} c pthread
|
|
|
|
WANTLIB-mysql= ${WANTLIB} crypto m ssl
|
2006-06-26 14:04:24 -04:00
|
|
|
|
2006-12-30 11:30:11 -05:00
|
|
|
LIB_DEPENDS= gcrypt.>=12::security/libgcrypt \
|
|
|
|
gnutls.>=12::security/gnutls \
|
|
|
|
gpg-error.>=1::security/libgpg-error \
|
|
|
|
prelude.>=7::security/prelude/libprelude
|
|
|
|
|
|
|
|
LIB_DEPENDS-pgsql= ${LIB_DEPENDS} \
|
|
|
|
preludedb.>=3::${BUILD_PKGPATH} \
|
|
|
|
pq.>=4::databases/postgresql
|
|
|
|
|
|
|
|
LIB_DEPENDS-mysql= ${LIB_DEPENDS} \
|
|
|
|
preludedb.>=3::${BUILD_PKGPATH} \
|
|
|
|
lib/mysql/mysqlclient.>=16::databases/mysql
|
|
|
|
|
|
|
|
LIB_DEPENDS-sqlite= ${LIB_DEPENDS} \
|
|
|
|
preludedb.>=3::${BUILD_PKGPATH} \
|
|
|
|
sqlite3.>=8::databases/sqlite3
|
2006-06-26 14:04:24 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS+=--with-html-dir=${PREFIX}/share/doc
|
|
|
|
CONFIGURE_ENV= PYTHON=${MODPY_BIN}
|
|
|
|
|
|
|
|
PSEUDO_FLAVORS= no_pgsql no_mysql no_sqlite
|
|
|
|
FLAVOR?=
|
2006-11-25 14:54:16 -05:00
|
|
|
MULTI_PACKAGES= -main
|
2006-06-26 14:04:24 -04:00
|
|
|
|
2006-10-06 03:50:36 -04:00
|
|
|
.if empty(FLAVOR:L:Mno_pgsql)
|
|
|
|
MULTI_PACKAGES+=-pgsql
|
|
|
|
CONFIGURE_ARGS+=--with-pgsql
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-pgsql
|
|
|
|
.endif
|
|
|
|
|
2006-06-26 14:04:24 -04:00
|
|
|
.if empty(FLAVOR:L:Mno_mysql)
|
|
|
|
MULTI_PACKAGES+=-mysql
|
2006-07-01 06:44:22 -04:00
|
|
|
CONFIGURE_ARGS+=--with-mysql
|
2006-06-26 14:04:24 -04:00
|
|
|
.else
|
2006-07-01 06:44:22 -04:00
|
|
|
CONFIGURE_ARGS+=--without-mysql
|
2006-06-26 14:04:24 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if empty(FLAVOR:L:Mno_sqlite)
|
|
|
|
MULTI_PACKAGES+=-sqlite
|
2006-07-01 06:44:22 -04:00
|
|
|
CONFIGURE_ARGS+=--with-sqlite3
|
2006-06-26 14:04:24 -04:00
|
|
|
.else
|
2006-07-01 06:44:22 -04:00
|
|
|
CONFIGURE_ARGS+=--without-sqlite3
|
2006-06-26 14:04:24 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2006-10-06 03:50:36 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/libpreludedb/plugins/sql/
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD \
|
|
|
|
${PREFIX}/share/doc/libpreludedb/
|
2006-06-26 14:04:24 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|