2013-03-16 17:56:37 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.70 2013/03/16 21:56:37 ajacoutot Exp $
|
2012-09-21 09:23:06 -04:00
|
|
|
|
|
|
|
# XXX add vala to MODGNOME_TOOLS on update
|
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
|
2011-06-02 03:16:32 -04:00
|
|
|
COMMENT-ldap= LDAP backend for libgda
|
2008-08-21 06:27:24 -04:00
|
|
|
COMMENT-mysql= MySQL backend for libgda
|
|
|
|
COMMENT-pgsql= PostreSQL backend for libgda
|
2011-06-02 03:16:32 -04:00
|
|
|
COMMENT-ui= GTK+ extension and tools for libgda
|
2008-08-21 06:27:24 -04:00
|
|
|
|
|
|
|
GNOME_PROJECT= libgda
|
2013-03-16 17:56:37 -04:00
|
|
|
GNOME_VERSION= 5.1.2
|
2008-08-21 06:27:24 -04:00
|
|
|
|
2012-02-18 13:40:18 -05:00
|
|
|
# NOTE: when GDA_MAJOR changes, increment GDA_MAJOR accordingly and bump:
|
|
|
|
# x11/gnome/libgdamm
|
2012-09-21 09:23:06 -04:00
|
|
|
GDA_MAJOR= 5.0
|
2010-07-25 04:18:32 -04:00
|
|
|
|
2010-07-18 14:27:13 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
2011-06-02 03:16:32 -04:00
|
|
|
PKGNAME-ldap= libgda-ldap-${GNOME_VERSION}
|
2010-07-13 16:39:03 -04:00
|
|
|
PKGNAME-mysql= libgda-mysql-${GNOME_VERSION}
|
|
|
|
PKGNAME-pgsql= libgda-pgsql-${GNOME_VERSION}
|
2011-06-02 03:16:32 -04:00
|
|
|
PKGNAME-ui= libgda-ui-${GNOME_VERSION}
|
|
|
|
|
|
|
|
EPOCH-main= 2
|
2011-06-10 16:01:02 -04:00
|
|
|
EPOCH-ldap= 0
|
2011-06-02 03:16:32 -04:00
|
|
|
EPOCH-mysql= 0
|
2010-07-13 16:39:03 -04:00
|
|
|
EPOCH-pgsql= 0
|
2008-08-21 06:27:24 -04:00
|
|
|
|
|
|
|
CATEGORIES= databases
|
|
|
|
|
2012-09-21 09:23:06 -04:00
|
|
|
SHARED_LIBS += gda-5.0 1.0 # 5.1
|
|
|
|
SHARED_LIBS += gda-report-5.0 1.0 # 5.1
|
|
|
|
SHARED_LIBS += gda-ui-5.0 1.0 # 5.1
|
|
|
|
SHARED_LIBS += gda-xslt-5.0 1.0 # 5.1
|
2013-03-16 17:56:37 -04:00
|
|
|
SHARED_LIBS += gdadata-5.0 0.0 # 0.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
|
|
|
|
|
2010-09-27 08:12:41 -04:00
|
|
|
WANTLIB += m pcre z gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
|
2012-10-01 08:49:19 -04:00
|
|
|
WANTLIB += gthread-2.0 xml2 gcrypt secret-1 gpg-error ffi pthread
|
2008-08-21 06:27:24 -04:00
|
|
|
|
|
|
|
MODULES= devel/gettext \
|
|
|
|
x11/gnome
|
|
|
|
|
2011-12-03 17:17:15 -05:00
|
|
|
MODGNOME_DESKTOP_FILE= Yes
|
|
|
|
MODGNOME_ICON_CACHE= Yes
|
2010-09-27 08:12:41 -04:00
|
|
|
|
2008-08-21 06:27:24 -04:00
|
|
|
SUBST_VARS= GDA_MAJOR
|
|
|
|
|
2011-07-12 11:32:16 -04:00
|
|
|
# no no_ldap PSEUDO_FLAVOR because we need the headers in -main
|
|
|
|
# since some are referenced by other headers
|
2011-09-12 11:31:15 -04:00
|
|
|
PSEUDO_FLAVORS= no_mysql no_pgsql no_ui
|
2008-08-21 06:27:24 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
MULTI_PACKAGES= -main
|
|
|
|
|
2010-11-18 11:44:33 -05:00
|
|
|
LIB_DEPENDS= devel/glib2 \
|
2012-10-01 08:49:19 -04:00
|
|
|
textproc/libxml \
|
|
|
|
x11/gnome/libsecret
|
2008-08-21 06:27:24 -04:00
|
|
|
|
2013-03-16 17:56:37 -04:00
|
|
|
BUILD_DEPENDS= databases/db/v4 \
|
|
|
|
devel/iso-codes
|
2010-09-27 08:12:41 -04:00
|
|
|
|
2013-03-11 07:35:43 -04:00
|
|
|
TEST_DEPENDS= devel/check
|
2008-08-21 06:27:24 -04:00
|
|
|
|
2013-03-16 17:56:37 -04:00
|
|
|
MODGNOME_TOOLS= goi vala yelp
|
2011-09-20 16:52:45 -04:00
|
|
|
|
2008-11-29 07:53:51 -05:00
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
2011-09-20 17:10:00 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-static \
|
2011-06-02 03:16:32 -04:00
|
|
|
--enable-system-sqlite \
|
2013-03-16 17:56:37 -04:00
|
|
|
--enable-gda-gi \
|
|
|
|
--enable-gdaui-gi \
|
|
|
|
--enable-gdaui-vala \
|
|
|
|
--enable-vala-extensions \
|
2008-11-22 18:53:47 -05:00
|
|
|
--with-bdb="${LOCALBASE}" \
|
2008-08-21 06:27:24 -04:00
|
|
|
--without-firebird \
|
2011-04-20 12:43:34 -04:00
|
|
|
--without-oracle \
|
2011-09-12 11:31:15 -04:00
|
|
|
--without-mdb \
|
2013-03-16 17:56:37 -04:00
|
|
|
--without-java
|
2011-09-28 05:47:46 -04:00
|
|
|
MODGNOME_CPPFLAGS= -I${LOCALBASE}/include/db4/
|
|
|
|
MODGNOME_LDFLAGS= -lm
|
|
|
|
CONFIGURE_ENV= LIBCRYPTO_CFLAGS="-I/usr/include/ssl" \
|
2010-11-18 11:44:33 -05:00
|
|
|
LIBCRYPTO_LIBS="-lcrypto" \
|
|
|
|
MYSQL_CONFIG="${LOCALBASE}/bin/mysql_config"
|
2008-08-21 06:27:24 -04:00
|
|
|
|
|
|
|
FAKE_FLAGS= configdir="${PREFIX}/share/examples/libgda"
|
|
|
|
|
2013-03-16 17:56:37 -04:00
|
|
|
WANTLIB-main += ${WANTLIB} c gcrypt gpg-error ncurses gee-0.8
|
2011-09-12 11:31:15 -04:00
|
|
|
WANTLIB-main += readline soup-2.4 crypto gdk_pixbuf-2.0 png xslt
|
2010-09-27 08:12:41 -04:00
|
|
|
|
2011-09-20 16:52:45 -04:00
|
|
|
RUN_DEPENDS-main= ${MODGETTEXT_RUN_DEPENDS} \
|
2013-03-16 17:56:37 -04:00
|
|
|
${MODGNOME_RUN_DEPENDS_yelp} \
|
|
|
|
devel/iso-codes
|
2010-09-27 08:12:41 -04:00
|
|
|
LIB_DEPENDS-main= ${LIB_DEPENDS} \
|
2013-03-16 17:56:37 -04:00
|
|
|
devel/libgee \
|
2010-11-18 11:44:33 -05:00
|
|
|
devel/libsoup \
|
|
|
|
textproc/libxslt \
|
2012-10-01 08:49:19 -04:00
|
|
|
graphics/gdk-pixbuf2
|
2010-09-27 08:12:41 -04:00
|
|
|
|
2013-02-09 09:49:50 -05:00
|
|
|
.if ${FLAVOR:Mno_ui}
|
2010-09-27 08:12:41 -04:00
|
|
|
CONFIGURE_ARGS+= --without-ui
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -ui
|
|
|
|
CONFIGURE_ARGS+= --with-ui
|
2011-09-12 11:31:15 -04:00
|
|
|
# XXX graphviz depends on deprecated libgnomeui
|
|
|
|
CONFIGURE_ARGS+= --with-graphviz=no
|
|
|
|
WANTLIB-ui += ${WANTLIB}
|
2013-03-16 17:56:37 -04:00
|
|
|
WANTLIB-ui += X11 Xcomposite Xcursor Xdamage Xext Xfixes graphite2
|
|
|
|
WANTLIB-ui += Xi Xinerama Xrandr Xrender atk-1.0 c cairo
|
|
|
|
WANTLIB-ui += cairo-gobject expat fontconfig freetype gda-${GDA_MAJOR}
|
2011-09-12 11:31:15 -04:00
|
|
|
WANTLIB-ui += gdk-3 gdk_pixbuf-2.0 goocanvas-2.0 gtk-3 gtksourceview-3.0
|
|
|
|
WANTLIB-ui += pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 png
|
2013-03-16 17:56:37 -04:00
|
|
|
WANTLIB-ui += pthread-stubs xcb xcb-render xcb-shm icuuc
|
2012-10-01 08:49:19 -04:00
|
|
|
WANTLIB-ui += ICE SM atk-bridge-2.0 atspi harfbuzz icudata icule dbus-1
|
2010-09-27 08:12:41 -04:00
|
|
|
LIB_DEPENDS-ui= ${LIB_DEPENDS} \
|
2012-10-01 08:49:19 -04:00
|
|
|
graphics/goocanvas2 \
|
|
|
|
x11/dbus \
|
2010-11-18 11:44:33 -05:00
|
|
|
x11/gnome/libgda \
|
2012-10-01 08:49:19 -04:00
|
|
|
x11/gtksourceview3
|
2008-08-21 06:27:24 -04:00
|
|
|
.endif
|
|
|
|
|
2013-02-09 09:49:50 -05:00
|
|
|
.if ${FLAVOR:Mno_mysql}
|
2008-08-21 06:27:24 -04:00
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
|
|
|
.else
|
2010-09-27 08:12:41 -04:00
|
|
|
RUN_DEPENDS-mysql= ${MODGETTEXT_RUN_DEPENDS}
|
2008-08-21 06:27:24 -04:00
|
|
|
MULTI_PACKAGES+= -mysql
|
2010-09-27 08:12:41 -04:00
|
|
|
WANTLIB-mysql= ${WANTLIB} crypto ssl gda-${GDA_MAJOR} \
|
2010-07-25 04:15:32 -04:00
|
|
|
mysqlclient
|
2008-08-21 06:27:24 -04:00
|
|
|
LIB_DEPENDS-mysql= ${LIB_DEPENDS} \
|
2010-11-18 11:44:33 -05:00
|
|
|
x11/gnome/libgda \
|
|
|
|
databases/mysql
|
2008-08-21 06:27:24 -04:00
|
|
|
CONFIGURE_ARGS+= --with-mysql="${LOCALBASE}"
|
|
|
|
.endif
|
|
|
|
|
2013-02-09 09:49:50 -05:00
|
|
|
.if ${FLAVOR:Mno_pgsql}
|
2011-07-12 11:32:16 -04:00
|
|
|
CONFIGURE_ARGS+= --without-postgres
|
2008-08-21 06:27:24 -04:00
|
|
|
.else
|
2010-09-27 08:12:41 -04:00
|
|
|
RUN_DEPENDS-pgsql= ${MODGETTEXT_RUN_DEPENDS}
|
2008-08-21 06:27:24 -04:00
|
|
|
MULTI_PACKAGES+= -pgsql
|
2010-09-27 08:12:41 -04:00
|
|
|
WANTLIB-pgsql= ${WANTLIB} gda-${GDA_MAJOR} pq com_err crypto ssl
|
2008-08-21 06:27:24 -04:00
|
|
|
LIB_DEPENDS-pgsql= ${LIB_DEPENDS} \
|
2010-11-18 11:44:33 -05:00
|
|
|
x11/gnome/libgda \
|
|
|
|
databases/postgresql
|
2008-11-29 07:53:51 -05:00
|
|
|
CONFIGURE_ARGS+= --with-postgres="${LOCALBASE}"
|
|
|
|
.endif
|
|
|
|
|
2011-07-12 11:32:16 -04:00
|
|
|
# ldap (no PSEUDO_FLAVORS, see above)
|
2011-06-02 03:16:32 -04:00
|
|
|
RUN_DEPENDS-ldap= ${MODGETTEXT_RUN_DEPENDS}
|
|
|
|
MULTI_PACKAGES+= -ldap
|
2011-09-12 11:31:15 -04:00
|
|
|
WANTLIB-ldap= ${WANTLIB} crypto gda-${GDA_MAJOR} gssapi krb5 lber-2.4 \
|
2011-09-05 10:28:55 -04:00
|
|
|
ldap-2.4 sasl2 ssl asn1 com_err
|
2012-10-01 08:49:19 -04:00
|
|
|
LIB_DEPENDS-ldap= ${LIB_DEPENDS} \
|
|
|
|
x11/gnome/libgda \
|
2011-06-02 03:16:32 -04:00
|
|
|
databases/openldap
|
|
|
|
CONFIGURE_ARGS+= --with-ldap
|
2009-08-01 10:14:24 -04:00
|
|
|
|
2012-01-25 06:30:41 -05:00
|
|
|
# XXX sync LIBdb_VERSION with databases/db/v4
|
|
|
|
LIBdb_VERSION= 5.0
|
|
|
|
SUBST_VARS+= LIBdb_VERSION
|
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/configure
|
|
|
|
|
2012-09-21 09:23:06 -04:00
|
|
|
post-install:
|
2013-03-16 17:56:37 -04:00
|
|
|
rm ${PREFIX}/lib/libgda-${GDA_MAJOR}/{plugins,providers}/*.la
|
2012-09-21 09:23:06 -04:00
|
|
|
|
2008-08-21 06:27:24 -04:00
|
|
|
.include <bsd.port.mk>
|