blob: 08bc03f5cfd86ba716e7a7235fd277afd79cb7b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
# New ports collection makefile for: libgda2
# Date created: 02 June 2002
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
# $MCom: ports/databases/libgda4/Makefile,v 1.25 2011/10/15 15:18:35 kwm Exp $
#
PORTNAME= libgda
PORTVERSION= 4.2.12
PORTREVISION?= 0
CATEGORIES= databases gnome
MASTER_SITES= GNOME
PKGNAMESUFFIX?= 4
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT?= Provides uniform access to different kinds of data sources
CONFLICTS= libgda5-ui-[0-9]*
USE_XZ= yes
LIBGDA4_SLAVE?= no
.if !defined(REFERENCE_PORT)
BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
LIB_DEPENDS= gcrypt.18:${PORTSDIR}/security/libgcrypt \
soup-2.4.1:${PORTSDIR}/devel/libsoup \
json-glib-1.0.0:${PORTSDIR}/devel/json-glib
RUN_DEPENDS= ${LOCALBASE}/lib/girepository-1.0/GObject-2.0.typelib:${PORTSDIR}/devel/gobject-introspection
USE_AUTOTOOLS= libtool
USE_GETTEXT= yes
USE_GMAKE= yes
USE_GNOME= gnomeprefix gnomehack glib20 libxslt intlhack referencehack
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE=yes
CONFIGURE_ARGS= --without-oracle \
--disable-crypto \
--enable-introspection
CPPFLAGS= -I${LOCALBASE}/include
LDDFLAGS= -L${LOCALBASE}/lib
.if ${LIBGDA4_SLAVE}=="no"
OPTIONS= UI "Build UI tools" on
.endif
.include <bsd.port.options.mk>
VERSION= 4.0
PLIST_SUB= VERSION=${VERSION}
.if defined(WITH_UI)
INSTALLS_ICONS= yes
.endif
.if ${LIBGDA4_SLAVE}=="no"
.if defined(WITH_UI)
CONFIGURE_ARGS+=--with-ui
BUILD_DEPENDS+= xml2po:${PORTSDIR}/textproc/gnome-doc-utils
USE_GNOME+= gtk20
PLIST_SUB+= UI=""
.else
CONFIGURE_ARGS+=--without-ui
PLIST_SUB+= UI="@comment "
.endif
MAN1= gda-sql.1 gda-sql-4.0.1
.else
USE_GNOME+= libgda4
.endif
.if ${LIBGDA4_SLAVE}=="bdb"
USE_BDB= yes
CONFIGURE_ARGS+= --with-bdb=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-bdb
.endif
.if ${LIBGDA4_SLAVE}=="ldap"
USE_OPENLDAP= yes
CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-ldap
.endif
.if ${LIBGDA4_SLAVE}=="mysql"
USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-mysql
.endif
.if ${LIBGDA4_SLAVE}=="postgresql"
USE_PGSQL= yes
CONFIGURE_ARGS+= --with-postgres=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-postgres
.endif
# MDB (MS Access)
.if ${LIBGDA4_SLAVE}=="mdb"
LIB_DEPENDS+= mdbsql.0:${PORTSDIR}/databases/mdbtools
CONFIGURE_ARGS+= --with-mdb=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-mdb
.endif
.if ${LIBGDA4_SLAVE}=="jdbc"
USE_JAVA= yes
JAVA_VENDOR= bsdjava openjdk
.else
CONFIGURE_ARGS+= --without-java
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-ldl||g' \
${WRKSRC}/configure
@${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' \
${WRKSRC}/configure
@${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
.if ${LIBGDA4_SLAVE}!="no"
#. for d in msql firebird odbc freetds mdb ldap mysql sqlite postgres
. for d in bdb jdbc mdb mysql postgres reuseable/postgres reuseable/mysql ldap
@${REINPLACE_CMD} -e 's|$$(top_builddir)/libgda/libgda-4.0.la|${LOCALBASE}/lib/libgda-4.0.la|g' \
${WRKSRC}/providers/${d}/Makefile.in
. endfor
.endif
pre-build:
.if ${LIBGDA4_SLAVE}=="postgresql"
cd ${WRKSRC}/providers/reuseable/postgres && ${GMAKE} libgda-postgres.la
.endif
.if ${LIBGDA4_SLAVE}=="mysql"
cd ${WRKSRC}/providers/reuseable/mysql && ${GMAKE} libgda-mysql.la
.endif
.if ${LIBGDA4_SLAVE}=="no"
post-install:
${INSTALL_DATA} ${WRKSRC}/data/config \
${PREFIX}/etc/libgda-${VERSION}/config.default
.endif
.include <bsd.port.pre.mk>
.if ${LIBGDA4_SLAVE}=="jdbc" && ${OSVERSION} < 800000
BROKEN= does not compile on 7.x
.endif
.include <bsd.port.post.mk>
.endif
|