2010-11-14 19:22:45 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2010/11/15 00:22:51 espie Exp $
|
2009-06-01 20:58:58 -04:00
|
|
|
|
|
|
|
V = 0.8.3-1
|
|
|
|
COMMENT-main = mysql driver for libdbi
|
|
|
|
COMMENT-pgsql = pgsql driver for libdbi
|
|
|
|
COMMENT-sqlite = sqlite driver for libdbi
|
|
|
|
COMMENT-sqlite3 = sqlite3 driver for libdbi
|
|
|
|
COMMENT-freetds = freetds driver for libdbi
|
|
|
|
DISTNAME = libdbi-drivers-$V
|
2009-08-14 13:56:16 -04:00
|
|
|
PKGNAME-main = libdbi-drivers-mysql-${V:S/-/./}
|
|
|
|
PKGNAME-pgsql = libdbi-drivers-pgsql-${V:S/-/./}
|
|
|
|
PKGNAME-sqlite = libdbi-drivers-sqlite-${V:S/-/./}
|
|
|
|
PKGNAME-sqlite3 = libdbi-drivers-sqlite3-${V:S/-/./}
|
|
|
|
PKGNAME-freetds = libdbi-drivers-freetds-${V:S/-/./}
|
2009-06-01 20:58:58 -04:00
|
|
|
CATEGORIES = databases
|
|
|
|
|
|
|
|
HOMEPAGE = http://libdbi-drivers.sourceforge.net/
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=libdbi-drivers/}
|
|
|
|
|
|
|
|
MAINTAINER = Michael Erdely <merdely@openbsd.org>
|
|
|
|
|
|
|
|
MULTI_PACKAGES = -main -pgsql -sqlite -sqlite3 -freetds
|
|
|
|
|
|
|
|
# LGPLv2.1
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
|
|
|
|
USE_LIBTOOL = Yes
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
|
|
|
|
|
|
CONFIGURE_ARGS = --disable-docs \
|
|
|
|
--with-dbi-libdir=${LOCALBASE}/lib \
|
|
|
|
--with-dbi-incdir=${LOCALBASE}/include/dbi \
|
|
|
|
--with-mysql \
|
|
|
|
--with-pgsql \
|
|
|
|
--with-pgsql-incdir="${LOCALBASE}/include -I${LOCALBASE}/include/postgresql" \
|
|
|
|
--with-pgsql-libdir=${LOCALBASE}/lib/postgresql \
|
|
|
|
--with-sqlite \
|
|
|
|
--with-sqlite3 \
|
|
|
|
--with-freetds \
|
|
|
|
--with-freetds-incdir=${LOCALBASE}/include \
|
|
|
|
--with-freetds-libdir=${LOCALBASE}/lib
|
|
|
|
|
2010-11-06 18:50:02 -04:00
|
|
|
WANTLIB-main = crypto m ssl z mysqlclient dbi
|
2010-11-14 19:22:45 -05:00
|
|
|
LIB_DEPENDS-main = databases/mysql \
|
|
|
|
databases/libdbi
|
2009-06-01 20:58:58 -04:00
|
|
|
|
2010-11-06 18:50:02 -04:00
|
|
|
WANTLIB-pgsql = m pq dbi
|
2010-11-14 19:22:45 -05:00
|
|
|
LIB_DEPENDS-pgsql = databases/postgresql \
|
|
|
|
databases/libdbi
|
2009-06-01 20:58:58 -04:00
|
|
|
|
2010-11-06 18:50:02 -04:00
|
|
|
WANTLIB-sqlite = m sqlite dbi
|
2010-11-14 19:22:45 -05:00
|
|
|
LIB_DEPENDS-sqlite = databases/sqlite \
|
|
|
|
databases/libdbi
|
2009-06-01 20:58:58 -04:00
|
|
|
|
2010-11-06 18:50:02 -04:00
|
|
|
WANTLIB-sqlite3 = m sqlite3 dbi
|
2010-11-14 19:22:45 -05:00
|
|
|
LIB_DEPENDS-sqlite3 = databases/sqlite3 \
|
|
|
|
databases/libdbi
|
2009-06-01 20:58:58 -04:00
|
|
|
|
2010-11-06 18:50:02 -04:00
|
|
|
WANTLIB-freetds = iconv m ct dbi
|
2010-11-14 19:22:45 -05:00
|
|
|
LIB_DEPENDS-freetds = databases/freetds \
|
|
|
|
databases/libdbi
|
2009-06-01 20:58:58 -04:00
|
|
|
|
|
|
|
REGRESS_IS_INTERACTIVE =Yes
|
2010-11-14 19:22:45 -05:00
|
|
|
REGRESS_DEPENDS = databases/libdbi-drivers,-main \
|
|
|
|
databases/libdbi-drivers,-pgsql \
|
|
|
|
databases/libdbi-drivers,-sqlite \
|
|
|
|
databases/libdbi-drivers,-sqlite3 \
|
|
|
|
databases/libdbi-drivers,-freetds
|
2009-06-01 20:58:58 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for d in mysql pgsql sqlite sqlite3
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libdbi-drivers/dbd_${d}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/drivers/${d}/dbd_${d}.pdf \
|
|
|
|
${PREFIX}/share/doc/libdbi-drivers
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/drivers/${d}/dbd_${d}/*.html \
|
|
|
|
${PREFIX}/share/doc/libdbi-drivers/dbd_${d}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|