2012-12-10 16:49:34 +00:00
|
|
|
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
|
2009-01-10 05:22:13 +00:00
|
|
|
# $FreeBSD$
|
2013-03-19 10:26:51 +00:00
|
|
|
# $MCom: ports/databases/libgda4/Makefile,v 1.27 2012/09/01 23:02:08 mezz Exp $
|
2009-01-10 05:22:13 +00:00
|
|
|
|
2013-03-19 10:26:51 +00:00
|
|
|
PORTNAME= libgda
|
|
|
|
PORTVERSION= 4.2.12
|
2015-01-02 18:46:33 +00:00
|
|
|
PORTREVISION?= 6
|
2009-01-10 05:22:13 +00:00
|
|
|
CATEGORIES= databases gnome
|
|
|
|
MASTER_SITES= GNOME
|
2013-03-19 10:26:51 +00:00
|
|
|
PKGNAMESUFFIX?= 4
|
2009-01-10 05:22:13 +00:00
|
|
|
DIST_SUBDIR= gnome2
|
|
|
|
|
2013-03-19 10:26:51 +00:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2009-01-10 05:22:13 +00:00
|
|
|
COMMENT?= Provides uniform access to different kinds of data sources
|
|
|
|
|
2013-03-19 10:26:51 +00:00
|
|
|
CONFLICTS= libgda5-ui-[0-9]*
|
|
|
|
|
2014-07-24 18:34:16 +00:00
|
|
|
USES= tar:xz
|
2009-01-10 05:22:13 +00:00
|
|
|
LIBGDA4_SLAVE?= no
|
|
|
|
|
|
|
|
.if !defined(REFERENCE_PORT)
|
|
|
|
|
2013-12-11 18:08:52 +00:00
|
|
|
LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt \
|
2013-12-19 19:39:22 +00:00
|
|
|
libjson-glib-1.0.so:${PORTSDIR}/devel/json-glib
|
2009-01-10 05:22:13 +00:00
|
|
|
|
2014-07-24 18:34:16 +00:00
|
|
|
USES+= gettext gmake libtool pathfix pkgconfig
|
2013-03-19 10:26:51 +00:00
|
|
|
USE_GNOME= gnomeprefix glib20 libxslt intlhack referencehack
|
2009-01-10 05:22:13 +00:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2014-07-24 18:34:16 +00:00
|
|
|
INSTALL_TARGET= install-strip
|
2010-08-14 17:45:40 +00:00
|
|
|
MAKE_JOBS_UNSAFE=yes
|
2010-11-20 15:37:08 +00:00
|
|
|
CONFIGURE_ARGS= --without-oracle \
|
2010-11-21 12:11:38 +00:00
|
|
|
--disable-crypto \
|
2013-03-22 15:28:13 +00:00
|
|
|
--enable-introspection=no \
|
|
|
|
--without-gtksourceview \
|
|
|
|
--without-goocanvas \
|
|
|
|
--without-graphviz
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-07-24 18:34:16 +00:00
|
|
|
LIBS+= -L${LOCALBASE}/lib
|
2009-01-10 05:22:13 +00:00
|
|
|
|
2010-11-20 15:37:08 +00:00
|
|
|
.if ${LIBGDA4_SLAVE}=="no"
|
2013-03-19 10:26:51 +00:00
|
|
|
OPTIONS_DEFINE= UI SOUP KEYRING
|
|
|
|
OPTIONS_DEFAULT=UI
|
|
|
|
UI_DESC= Build UI tools
|
|
|
|
SOUP_DESC= Web provider
|
|
|
|
KEYRING_DESC= Support gnome-keyring
|
2010-11-20 15:37:08 +00:00
|
|
|
.endif
|
|
|
|
|
2011-03-03 10:21:36 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2009-01-10 05:22:13 +00:00
|
|
|
|
|
|
|
VERSION= 4.0
|
|
|
|
PLIST_SUB= VERSION=${VERSION}
|
|
|
|
|
|
|
|
.if ${LIBGDA4_SLAVE}=="no"
|
2013-03-19 10:26:51 +00:00
|
|
|
.if ${PORT_OPTIONS:MUI}
|
2010-11-20 15:37:08 +00:00
|
|
|
CONFIGURE_ARGS+=--with-ui
|
|
|
|
BUILD_DEPENDS+= xml2po:${PORTSDIR}/textproc/gnome-doc-utils
|
|
|
|
USE_GNOME+= gtk20
|
2013-03-19 10:26:51 +00:00
|
|
|
INSTALLS_ICONS= yes
|
2010-11-20 15:37:08 +00:00
|
|
|
PLIST_SUB+= UI=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-ui
|
|
|
|
PLIST_SUB+= UI="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-03-19 10:26:51 +00:00
|
|
|
.if ${PORT_OPTIONS:MSOUP}
|
|
|
|
CONFIGURE_ARGS+=--with-libsoup
|
2013-12-11 18:08:52 +00:00
|
|
|
LIB_DEPENDS+= libsoup-2.so:${PORTSDIR}/devel/libsoup
|
2013-03-19 10:26:51 +00:00
|
|
|
PLIST_SUB+= WEB=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-libsoup
|
|
|
|
PLIST_SUB+= WEB="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MKEYRING}
|
|
|
|
CONFIGURE_ARGS+=--with-gnome-keyring
|
2013-12-11 18:08:52 +00:00
|
|
|
LIB_DEPENDS+= libgnome-keyring.so:${PORTSDIR}/security/libgnome-keyring
|
2013-03-19 10:26:51 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-gnome-keyring
|
|
|
|
.endif
|
|
|
|
|
2009-01-19 12:12:59 +00:00
|
|
|
MAN1= gda-sql.1 gda-sql-4.0.1
|
2009-01-10 05:22:13 +00:00
|
|
|
.else
|
|
|
|
USE_GNOME+= libgda4
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${LIBGDA4_SLAVE}=="bdb"
|
|
|
|
USE_BDB= yes
|
|
|
|
CONFIGURE_ARGS+= --with-bdb=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-bdb
|
|
|
|
.endif
|
|
|
|
|
2013-03-19 10:26:51 +00:00
|
|
|
.if ${LIBGDA4_SLAVE}=="ldap"
|
|
|
|
USE_OPENLDAP= yes
|
|
|
|
CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ldap
|
|
|
|
.endif
|
|
|
|
|
2009-01-10 05:22:13 +00:00
|
|
|
.if ${LIBGDA4_SLAVE}=="mysql"
|
|
|
|
USE_MYSQL= yes
|
|
|
|
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${LIBGDA4_SLAVE}=="postgresql"
|
2014-05-27 10:42:11 +00:00
|
|
|
USES+= pgsql
|
2009-01-10 05:22:13 +00:00
|
|
|
CONFIGURE_ARGS+= --with-postgres=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-postgres
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# MDB (MS Access)
|
|
|
|
.if ${LIBGDA4_SLAVE}=="mdb"
|
2013-12-11 18:08:52 +00:00
|
|
|
LIB_DEPENDS+= libmdbsql.so:${PORTSDIR}/databases/mdbtools
|
2009-01-10 05:22:13 +00:00
|
|
|
CONFIGURE_ARGS+= --with-mdb=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-mdb
|
|
|
|
.endif
|
|
|
|
|
2009-03-10 15:21:08 +00:00
|
|
|
.if ${LIBGDA4_SLAVE}=="jdbc"
|
2009-11-29 20:29:23 +00:00
|
|
|
USE_JAVA= yes
|
2014-06-02 12:41:44 +00:00
|
|
|
JAVA_VERSION= 1.6
|
2012-12-10 16:49:34 +00:00
|
|
|
JAVA_VENDOR= openjdk
|
2009-03-10 15:21:08 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-java
|
|
|
|
.endif
|
|
|
|
|
2009-01-10 05:22:13 +00:00
|
|
|
post-patch:
|
2009-04-24 06:38:26 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-ldl||g' \
|
|
|
|
${WRKSRC}/configure
|
2011-03-03 10:21:36 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|"db.h|"db${BDB_VER}/db.h|g' \
|
|
|
|
-e 's|ldb47|l${BDB_LIB_NAME}|g' \
|
|
|
|
-e 's|ldb|l${BDB_LIB_NAME}|g' \
|
|
|
|
-e 's|libdb|lib${BDB_LIB_NAME}|g' \
|
2009-01-10 05:22:13 +00:00
|
|
|
${WRKSRC}/configure
|
2009-02-28 20:52:24 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|<db\.h>|<db${BDB_VER}/db.h>|' \
|
|
|
|
${WRKSRC}/providers/bdb/gda-bdb-provider.c \
|
|
|
|
${WRKSRC}/providers/bdb/gda-bdb-test.c
|
2009-01-10 05:22:13 +00:00
|
|
|
.if ${LIBGDA4_SLAVE}!="no"
|
|
|
|
#. for d in msql firebird odbc freetds mdb ldap mysql sqlite postgres
|
2013-03-19 10:26:51 +00:00
|
|
|
. for d in bdb jdbc mdb mysql postgres reuseable/postgres reuseable/mysql ldap
|
2014-07-24 18:34:16 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|$$(top_builddir)/libgda/libgda-4.0.la|-lgda-4.0|g' \
|
2009-01-10 05:22:13 +00:00
|
|
|
${WRKSRC}/providers/${d}/Makefile.in
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
2010-11-20 15:37:08 +00:00
|
|
|
pre-build:
|
|
|
|
.if ${LIBGDA4_SLAVE}=="postgresql"
|
2014-06-24 22:28:53 +00:00
|
|
|
cd ${WRKSRC}/providers/reuseable/postgres && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} libgda-postgres.la
|
2010-11-20 15:37:08 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${LIBGDA4_SLAVE}=="mysql"
|
2014-06-24 22:28:53 +00:00
|
|
|
cd ${WRKSRC}/providers/reuseable/mysql && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} libgda-mysql.la
|
2010-11-20 15:37:08 +00:00
|
|
|
.endif
|
|
|
|
|
2009-01-10 05:22:13 +00:00
|
|
|
.if ${LIBGDA4_SLAVE}=="no"
|
|
|
|
post-install:
|
2014-07-24 18:34:16 +00:00
|
|
|
${MV} ${STAGEDIR}${PREFIX}/etc/libgda-${VERSION}/config \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/libgda-${VERSION}/config.sample
|
2009-01-10 05:22:13 +00:00
|
|
|
.endif
|
|
|
|
|
2013-03-19 10:26:51 +00:00
|
|
|
.include <bsd.port.mk>
|
2011-03-03 10:21:36 +00:00
|
|
|
|
2009-01-10 05:22:13 +00:00
|
|
|
.endif
|