aboutsummaryrefslogtreecommitdiffstats
path: root/databases/opendbx/Makefile
blob: cbcdbd6766262b8e175ce2b4e6f956ba9399e394 (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
# New ports collection makefile for:    opendbx
# Date Created:                         17 March 2006
# Whom:                                 tremere@cainites.net
#
# $FreeBSD$
#

PORTNAME=   opendbx
PORTVERSION=    1.2.2
CATEGORIES= databases
MASTER_SITES=   http://www.linuxnetworks.de/opendbx/download/
DISTNAME=   ${PORTNAME}-${PORTVERSION}

MAINTAINER= tremere@cainites.net
COMMENT=    A C library for accessing databases with a single API

USE_GMAKE=      YES
USE_AUTOTOOLS=      libtool:15

CPPFLAGS+=      -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+=       ${PTHREAD_LIBS} -L../lib -L${LOCALBASE}/lib
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=    --with-backends="${CONFIGURE_MODULES}"
CONFIGURE_ENV+=     CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

USE_LDCONFIG=       ${PREFIX}/lib/opendbx

OPTIONS=    MYSQL   "Support for the MySQL database" on \
        PGSQL   "Support for the PostgreSQL database" off \
        SQLITE  "Support for the SQLite 2 database" off \
        SQLITE3 "Support for the SQLite 3 database" off \
        MSSQL   "Support for the MSSQL database" off \
        SYBASE  "Support for the Sybase database" off \
        GETTEXT "Support for the gettext library" off

.include <bsd.port.pre.mk>

.if !defined(WITH_MYSQL) && !defined(WITH_PGSQL) && !defined(WITH_SQLITE) && !defined(WITH_SQLITE3) && !defined(WITH_MSSQL)
IGNORE=     needs at least one database backend
.endif

.if defined(WITH_MYSQL)
USE_MYSQL?=     YES
CONFIGURE_MODULES+= "mysql"
CPPFLAGS+=      -I${LOCALBASE}/include/mysql
LDFLAGS+=       -L${LOCALBASE}/lib/mysql
PLIST_SUB+=     WITHMYSQL=""
.else
PLIST_SUB+=     WITHMYSQL="@comment "
.endif

.if !defined(WITHOUT_PGSQL)
USE_PGSQL?=     YES
CONFIGURE_MODULES+= "pgsql"
PLIST_SUB+=     WITHPGSQL=""
.else
PLIST_SUB+=     WITHPGSQL="@comment "
.endif

.if defined(WITH_SQLITE)
LIB_DEPENDS+=       sqlite.2:${PORTSDIR}/databases/sqlite2
CONFIGURE_MODULES+= "sqlite"
PLIST_SUB+=     WITHSQLITE=""
.else
PLIST_SUB+=     WITHSQLITE="@comment "
.endif

.if defined(WITH_SQLITE3)
LIB_DEPENDS+=       sqlite3:${PORTSDIR}/databases/sqlite3
CONFIGURE_MODULES+= "sqlite3"
PLIST_SUB+=     WITHSQLITE3=""
.else
PLIST_SUB+=     WITHSQLITE3="@comment "
.endif

.if defined(WITH_MSSQL)
LIB_DEPENDS+=       sybdb.5:${PORTSDIR}/databases/freetds
CONFIGURE_MODULES+= "mssql"
PLIST_SUB+=     WITHMSSQL=""
.else
PLIST_SUB+=     WITHMSSQL="@comment "
.endif

.if defined(WITH_SYBASE)
LIB_DEPENDS+=       ct.4:${PORTSDIR}/databases/freetds
CONFIGURE_MODULES+= "sybase"
PLIST_SUB+=     WITHSYBASE=""
.else
PLIST_SUB+=     WITHSYBASE="@comment "
.endif

.if defined(WITH_GETTEXT)
USE_GETTEXT=        YES
.else
CONFIGURE_ARGS+=    --disable-nls
.endif

.include <bsd.port.post.mk>
* The FreeBSD KDE is please to announce the release of KDE 4.3.1,tabthorpe2009-09-022-6/+5 * clean upmakc2009-08-081-3/+0 * The KDE FreeBSD team is proud to announce the release of KDE 4.3.0miwi2009-08-053-29/+51 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-0/+1 * The KDE FreeBSD team is pleased to announce KDE 4.2.4, the last bugfixmiwi2009-06-032-4/+4 * Update KDE ports to 4.2.3makc2009-05-101-3/+3 * The KDE FreeBSD team is proud to announce the release of KDE 4.2.2miwi2009-04-022-7/+3 * Update KDE to 4.2.1.makc2009-03-092-3/+4 * The KDE FreeBSD team is proud to announce the release of KDE 4.2.0miwi2009-02-092-235/+70 * kde@freebsd team is pleased to announce KDE 4.1.4, the last bugfix release in...makc2009-01-143-6/+7 * The KDE FreeBSD team is proud to announce the release of KDE 4.1.1miwi2008-09-032-11/+8 * The KDE FreeBSD team is proud to announce the release of KDE 4.1.0miwi2008-08-104-304/+229 * Update to KDE 3.5.8lofi2007-10-302-5/+18 * Update to KDE 3.5.7 / KOffice 1.6.3lofi2007-07-043-13/+4 * - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1 * Update to KDE 3.5.6 / KOffice 1.6.2lofi2007-03-142-3/+5 * Update to KDE 3.5.5 / KOffice 1.6.1lofi2006-12-201-3/+3 * KDE 3.5.4 / KOffice 1.5.2lofi2006-09-131-3/+3 * Update to KDE 3.5.3lofi2006-06-062-46/+18 * Update to KDE 3.5.2lofi2006-03-312-70/+15 * Update to KDE 3.5.1.lofi2006-02-012-3/+25 * Update to KDE 3.5.0lofi2006-01-092-21/+41 * Update to KDE 3.4.3 / KOffice 1.4.2lofi2005-11-051-2/+2 * Update to KDE 3.4.2 / KOffice 1.4.1lofi2005-08-011-2/+2 * Update to KDE 3.4.1lofi2005-06-262-4/+18 * Update to KDE 3.4lofi2005-03-212-27/+27 * Add i18nized doc subdirs to kdehier and adjust i18n port plists accordingly.lofi2004-12-231-1/+0 * Fix kde3-i18n ports.lofi2004-12-161-2/+2 * Update to KDE 3.3.2lofi2004-12-143-3/+26 * Update to KDE 3.3.1lofi2004-11-082-2/+38