freebsd-ports/databases/libdbi-drivers/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

101 lines
2.3 KiB
Makefile

# Ports collection makefile for: libdbi-drivers
# Date created: Oct 30, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= libdbi-drivers
PORTVERSION= 0.8.1
CATEGORIES= databases devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= delphij@FreeBSD.org
COMMENT= Drivers for libdbi
LIB_DEPENDS= dbi.0:${PORTSDIR}/databases/libdbi
USE_GNOME= gnometarget lthack
USE_AUTOTOOLS= libtool:15
CONFIGURE_ARGS= --disable-static \
--with-dbi-incdir=${LOCALBASE}/include/dbi
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
OPTIONS= MYSQL "With MySQL Driver" on \
MSQL "With MSQL Driver" off \
PGSQL "With PostgreSQL Driver" on \
SQLITE2 "With SQLite 2 Driver" off \
SQLITE3 "With SQLite 3 Driver" on \
FIREBIRD "With Firebird Driver" off \
FREETDS "With FreeTDS Driver" off
.include <bsd.port.pre.mk>
.if defined(WITHOUT_MYSQL) && defined(WITHOUT_MSQL) && defined(WITHOUT_PGSQL) \
&& defined(WITHOUT_SQLITE2) && defined(WITHOUT_SQLITE3) \
&& defined(WITHOUT_FIREBIRD) && defined(WITHOUT_FREETDS)
IGNORE= You must choose at least one driver
.endif
.if !defined(WITHOUT_MYSQL)
USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql
PLIST_SUB+= MYSQL=""
.else
PLIST_SUB+= MYSQL="@comment "
.endif
.if defined(WITH_MSQL)
LIB_DEPENDS+= msql.1:${PORTSDIR}/databases/msql
CONFIGURE_ARGS+= --with-msql
PLIST_SUB+= MSQL=""
.else
PLIST_SUB+= MSQL="@comment "
.endif
.if !defined(WITHOUT_PGSQL)
USE_PGSQL= yes
CONFIGURE_ARGS+= --with-pgsql
PLIST_SUB+= PGSQL=""
.else
PLIST_SUB+= PGSQL="@comment "
.endif
.if defined(WITH_SQLITE2)
LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite2
CONFIGURE_ARGS+= --with-sqlite
PLIST_SUB+= SQLITE2=""
.else
PLIST_SUB+= SQLITE2="@comment "
.endif
.if !defined(WITHOUT_SQLITE3)
LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3
CONFIGURE_ARGS+= --with-sqlite3
PLIST_SUB+= SQLITE3=""
.else
PLIST_SUB+= SQLITE3="@comment "
.endif
.if defined(WITH_FIREBIRD)
LIB_DEPENDS+= gds.1:${PORTSDIR}/databases/firebird-client
CONFIGURE_ARGS+= --with-firebird
PLIST_SUB+= FIREBIRD=""
.else
PLIST_SUB+= FIREBIRD="@comment "
.endif
.if defined(WITH_FREETDS)
LIB_DEPENDS+= tds.4:${PORTSDIR}/databases/freetds
CONFIGURE_ARGS+= --with-freetds
PLIST_SUB+= FREETDS=""
.else
PLIST_SUB+= FREETDS="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-O20|${CFLAGS}|g' ${WRKSRC}/configure
.include <bsd.port.post.mk>