2006-07-01 06:44:22 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.2 2006/07/01 10:44:22 aanriot Exp $
|
2006-06-26 14:04:24 -04:00
|
|
|
|
|
|
|
COMMENT= "Prelude framework database-access library"
|
|
|
|
COMMENT-pgsql= "PostgreSQL module for libpreludedb"
|
|
|
|
COMMENT-mysql= "MySQL module for libpreludedb"
|
|
|
|
COMMENT-sqlite= "SQLite3 module for libpreludedb"
|
|
|
|
|
2006-07-01 06:44:22 -04:00
|
|
|
VERSION= 0.9.8
|
2006-06-26 14:04:24 -04:00
|
|
|
DISTNAME= libpreludedb-${VERSION}
|
|
|
|
|
|
|
|
PKGNAME= prelude-${DISTNAME}
|
|
|
|
PKGNAME-pgsql= prelude-libpreludedb-pgsql-${VERSION}
|
|
|
|
PKGNAME-mysql= prelude-libpreludedb-mysql-${VERSION}
|
|
|
|
PKGNAME-sqlite= prelude-libpreludedb-sqlite-${VERSION}
|
|
|
|
|
|
|
|
MODULES= lang/python devel/gettext
|
|
|
|
|
2006-07-01 06:44:22 -04:00
|
|
|
SHARED_LIBS= preludedb 3.2
|
2006-06-26 14:04:24 -04:00
|
|
|
|
|
|
|
WANTLIB= z
|
|
|
|
|
|
|
|
LIB_DEPENDS= gpg-error.1::security/libgpg-error \
|
|
|
|
gcrypt.12::security/libgcrypt \
|
|
|
|
gnutls.12::security/gnutls \
|
|
|
|
prelude.7::security/prelude/libprelude
|
|
|
|
|
|
|
|
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?=
|
|
|
|
|
|
|
|
MULTI_PACKAGES?=
|
|
|
|
SUBPACKAGE?=
|
|
|
|
|
|
|
|
.if empty(FLAVOR:L:Mno_mysql)
|
|
|
|
MULTI_PACKAGES+=-mysql
|
|
|
|
. if !defined(PACKAGING) || ${SUBPACKAGE} == "-mysql"
|
|
|
|
LIB_DEPENDS+= lib/mysql/mysqlclient.16::databases/mysql
|
|
|
|
WANTLIB+= m ssl crypto
|
|
|
|
. endif
|
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_pgsql)
|
|
|
|
MULTI_PACKAGES+=-pgsql
|
|
|
|
. if !defined(PACKAGING) || ${SUBPACKAGE} == "-pgsql"
|
|
|
|
LIB_DEPENDS+= pq.4::databases/postgresql
|
|
|
|
. endif
|
2006-07-01 06:44:22 -04:00
|
|
|
CONFIGURE_ARGS+=--with-pgsql
|
2006-06-26 14:04:24 -04:00
|
|
|
.else
|
2006-07-01 06:44:22 -04:00
|
|
|
CONFIGURE_ARGS+=--without-pgsql
|
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
|
|
|
. if !defined(PACKAGING) || ${SUBPACKAGE} == "-sqlite"
|
|
|
|
LIB_DEPENDS+= sqlite3.8::databases/sqlite3
|
|
|
|
. endif
|
|
|
|
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
|
|
|
|
|
|
|
|
.if defined(PACKAGING)
|
|
|
|
. if !empty(SUBPACKAGE)
|
|
|
|
LIB_DEPENDS+= preludedb.3::security/prelude/libpreludedb
|
|
|
|
. else
|
|
|
|
WANTLIB+= pthread c
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/libpreludedb/plugins/sql
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|