2010-07-18 14:27:13 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.19 2010/07/18 18:27:13 kili Exp $
|
2009-10-14 19:30:43 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# XXX:
|
|
|
|
# The -ldap and -odbc packages are empty. This is because upstream
|
|
|
|
# is rewriting them. When they get back, updates will be easier
|
|
|
|
# with keeping the subpackages for now.
|
2008-08-21 06:27:24 -04:00
|
|
|
|
2008-11-29 07:53:51 -05:00
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2008-08-21 06:27:24 -04:00
|
|
|
COMMENT-main= GNOME Data Access library
|
|
|
|
COMMENT-ldap= LDAP backend for libgda
|
|
|
|
COMMENT-mdb= MS Access MDB backend for libgda
|
|
|
|
COMMENT-mysql= MySQL backend for libgda
|
|
|
|
COMMENT-pgsql= PostreSQL backend for libgda
|
2009-08-01 10:14:24 -04:00
|
|
|
COMMENT-odbc= ODBC backend for libgda
|
2008-08-21 06:27:24 -04:00
|
|
|
|
|
|
|
GNOME_PROJECT= libgda
|
2010-06-14 01:45:32 -04:00
|
|
|
GNOME_VERSION= 4.0.9
|
2008-08-21 06:27:24 -04:00
|
|
|
|
2010-07-18 14:27:13 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
|
|
|
EPOCH-main= 1
|
2010-07-13 16:39:03 -04:00
|
|
|
#PKGNAME-ldap= libgda-ldap-${GNOME_VERSION}
|
|
|
|
#EPOCH-ldap= 0
|
|
|
|
PKGNAME-mdb= libgda-mdb-${GNOME_VERSION}
|
|
|
|
EPOCH-mdb= 0
|
|
|
|
PKGNAME-mysql= libgda-mysql-${GNOME_VERSION}
|
|
|
|
EPOCH-mysql= 0
|
|
|
|
PKGNAME-pgsql= libgda-pgsql-${GNOME_VERSION}
|
|
|
|
EPOCH-pgsql= 0
|
|
|
|
#PKGNAME-odbc= libgda-odbc-${GNOME_VERSION}
|
|
|
|
#EPOCH-odbc= 0
|
2008-08-21 06:27:24 -04:00
|
|
|
|
|
|
|
CATEGORIES= databases
|
|
|
|
|
2009-10-14 19:30:43 -04:00
|
|
|
GDA_MAJOR= 4.0
|
2008-11-21 13:35:31 -05:00
|
|
|
|
2009-10-14 19:30:43 -04:00
|
|
|
SHARED_LIBS += gda-4.0 0.0 # .4.0
|
|
|
|
SHARED_LIBS += gda-report-4.0 0.0 # .4.0
|
|
|
|
SHARED_LIBS += gda-xslt-4.0 0.0 # .4.0
|
2008-08-21 06:27:24 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.gnome-db.org/
|
|
|
|
|
2008-11-21 13:35:31 -05:00
|
|
|
# library: LGPLv2
|
2008-08-21 06:27:24 -04:00
|
|
|
# tools: GPLv2
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2009-10-14 19:30:43 -04:00
|
|
|
WANTLIB= m pcre z
|
2008-11-22 18:53:47 -05:00
|
|
|
|
2009-10-14 19:30:43 -04:00
|
|
|
WANTLIB-main= ${WANTLIB} c gcrypt gpg-error ncurses pthread
|
|
|
|
WANTLIB-main+= readline tasn1
|
2008-08-21 06:27:24 -04:00
|
|
|
|
|
|
|
MODULES= devel/gettext \
|
|
|
|
x11/gnome
|
|
|
|
|
|
|
|
SUBST_VARS= GDA_MAJOR
|
|
|
|
|
2009-10-14 20:27:18 -04:00
|
|
|
#PSEUDO_FLAVORS= no_ldap no_mdb no_mysql no_odbc no_pgsql
|
|
|
|
PSEUDO_FLAVORS= no_mdb no_mysql no_pgsql
|
2008-08-21 06:27:24 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
MULTI_PACKAGES= -main
|
|
|
|
|
2008-11-22 18:53:47 -05:00
|
|
|
LIB_DEPENDS-main= ${LIB_DEPENDS} \
|
2009-10-14 19:30:43 -04:00
|
|
|
soup-2.4::devel/libsoup \
|
2009-03-23 03:31:09 -04:00
|
|
|
db:db->=4,<5:databases/db/v4 \
|
2009-10-14 19:30:43 -04:00
|
|
|
sqlite3::databases/sqlite3 \
|
|
|
|
gnutls::security/gnutls \
|
|
|
|
xslt::textproc/libxslt
|
2008-11-21 13:35:31 -05:00
|
|
|
|
2009-10-14 19:30:43 -04:00
|
|
|
LIB_DEPENDS= gio-2.0,glib-2.0,gmodule-2.0,gobject-2.0,gthread-2.0::devel/glib2 \
|
2009-02-11 10:20:19 -05:00
|
|
|
xml2.>=10::textproc/libxml
|
2008-08-21 06:27:24 -04:00
|
|
|
|
|
|
|
REGRESS_DEPENDS= ::devel/check
|
|
|
|
|
2008-11-29 07:53:51 -05:00
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
2008-08-21 06:27:24 -04:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
2008-11-29 07:53:51 -05:00
|
|
|
--disable-static \
|
2008-08-21 06:27:24 -04:00
|
|
|
--disable-gtk-doc \
|
2008-11-22 18:53:47 -05:00
|
|
|
--with-bdb="${LOCALBASE}" \
|
2008-08-21 06:27:24 -04:00
|
|
|
--without-firebird \
|
|
|
|
--without-ibmdb2 \
|
|
|
|
--without-oracle \
|
|
|
|
--without-sybase \
|
|
|
|
--without-xbase
|
2008-11-21 13:35:31 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/db4/" \
|
2008-08-21 06:27:24 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lm"
|
|
|
|
|
|
|
|
FAKE_FLAGS= configdir="${PREFIX}/share/examples/libgda"
|
|
|
|
|
2009-10-14 20:27:18 -04:00
|
|
|
#.if ${FLAVOR:L:Mno_ldap}
|
2008-08-21 06:27:24 -04:00
|
|
|
CONFIGURE_ARGS+= --without-ldap
|
2009-10-14 20:27:18 -04:00
|
|
|
#.else
|
|
|
|
#MULTI_PACKAGES+= -ldap
|
2009-10-14 19:30:43 -04:00
|
|
|
#WANTLIB-ldap= ${WANTLIB} asn1 com_err crypto gssapi krb5 sasl2 ssl
|
|
|
|
#LIB_DEPENDS-ldap= ${LIB_DEPENDS} \
|
|
|
|
# gda-3.0,gdasql-3.0::x11/gnome/libgda \
|
|
|
|
# lber.>=9,ldap::databases/openldap
|
2009-10-14 20:27:18 -04:00
|
|
|
#CONFIGURE_ARGS+= --with-ldap="${LOCALBASE}"
|
|
|
|
#.endif
|
2008-08-21 06:27:24 -04:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_mdb}
|
|
|
|
CONFIGURE_ARGS+= --without-mdb
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -mdb
|
2009-10-14 19:30:43 -04:00
|
|
|
WANTLIB-mdb= ${WANTLIB} sqlite3
|
2008-08-21 06:27:24 -04:00
|
|
|
LIB_DEPENDS-mdb= ${LIB_DEPENDS} \
|
2009-10-14 20:27:18 -04:00
|
|
|
gda-${GDA_MAJOR}::x11/gnome/libgda \
|
2009-10-14 19:30:43 -04:00
|
|
|
mdb.>=1::databases/mdbtools/snapshot
|
2008-08-21 06:27:24 -04:00
|
|
|
CONFIGURE_ARGS+= --with-mdb="${LOCALBASE}"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_mysql}
|
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -mysql
|
2009-10-14 19:30:43 -04:00
|
|
|
WANTLIB-mysql= ${WANTLIB} crypto sqlite3 ssl
|
2008-08-21 06:27:24 -04:00
|
|
|
LIB_DEPENDS-mysql= ${LIB_DEPENDS} \
|
2009-10-14 20:27:18 -04:00
|
|
|
gda-${GDA_MAJOR}::x11/gnome/libgda \
|
2008-08-21 06:27:24 -04:00
|
|
|
mysqlclient::databases/mysql
|
|
|
|
CONFIGURE_ARGS+= --with-mysql="${LOCALBASE}"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_pgsql}
|
|
|
|
CONFIGURE_ARGS+= --without-postgresql
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -pgsql
|
2009-10-14 19:30:43 -04:00
|
|
|
WANTLIB-pgsql= ${WANTLIB} sqlite3
|
2008-08-21 06:27:24 -04:00
|
|
|
LIB_DEPENDS-pgsql= ${LIB_DEPENDS} \
|
2009-10-14 20:27:18 -04:00
|
|
|
gda-${GDA_MAJOR}::x11/gnome/libgda \
|
2008-08-21 06:27:24 -04:00
|
|
|
pq::databases/postgresql
|
2008-11-29 07:53:51 -05:00
|
|
|
CONFIGURE_ARGS+= --with-postgres="${LOCALBASE}"
|
|
|
|
.endif
|
|
|
|
|
2009-10-14 20:27:18 -04:00
|
|
|
#.if ${FLAVOR:L:Mno_odbc}
|
2009-08-01 10:14:24 -04:00
|
|
|
CONFIGURE_ARGS+= --without-odbc
|
2009-10-14 20:27:18 -04:00
|
|
|
#.else
|
|
|
|
#MULTI_PACKAGES+= -odbc
|
2009-10-14 19:30:43 -04:00
|
|
|
#WANTLIB-odbc=
|
|
|
|
#LIB_DEPENDS-odbc= ${LIB_DEPENDS} \
|
|
|
|
# iodbc::databases/iodbc \
|
|
|
|
# gda-3.0,gdasql-3.0::x11/gnome/libgda
|
2009-10-14 20:27:18 -04:00
|
|
|
#CONFIGURE_ARGS+= --with-odbc="${LOCALBASE}"
|
|
|
|
#.endif
|
2008-08-21 06:27:24 -04:00
|
|
|
|
2009-08-01 10:14:24 -04:00
|
|
|
# abuses freetds API
|
2009-10-14 19:30:43 -04:00
|
|
|
CONFIGURE_ARGS+= --without-tds \
|
|
|
|
--enable-system-sqlite
|
2009-08-01 10:14:24 -04:00
|
|
|
|
2008-08-21 06:27:24 -04:00
|
|
|
.include <bsd.port.mk>
|