2001-07-23 09:51:29 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: dbconnect
|
|
|
|
# Date created: Jul 23, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dbconnect
|
2003-01-02 05:00:22 +01:00
|
|
|
PORTVERSION= 0.2.4
|
2001-07-23 09:51:29 +02:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= Use C++ object API to allow applications to connect to databases
|
2001-07-23 09:51:29 +02:00
|
|
|
|
2003-01-02 05:00:22 +01:00
|
|
|
USE_REINPLACE= yes
|
2001-07-23 09:51:29 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
2003-01-02 05:00:22 +01:00
|
|
|
LIB_DEPENDS+= mysqlclient:${PORTSDIR}/databases/mysql323-client
|
|
|
|
CONFIGURE_ARGS+= --with-mysql=yes \
|
|
|
|
--with-mysqlinclude=${LOCALBASE}/include/mysql \
|
|
|
|
--with-mysqllib=${LOCALBASE}/lib/mysql
|
2001-07-23 09:51:29 +02:00
|
|
|
PLIST_SUB+= MYSQL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-01-02 05:00:22 +01:00
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7
|
|
|
|
CONFIGURE_ARGS+= --with-pgsql=yes \
|
|
|
|
--with-pgsqlinclude=${LOCALBASE}/include \
|
|
|
|
--with-pgsqllib=${LOCALBASE}/lib
|
|
|
|
PLIST_SUB+= PGSQL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PGSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_UNIXODBC)
|
|
|
|
LIB_DEPENDS+= odbc:${PORTSDIR}/databases/unixODBC
|
|
|
|
CONFIGURE_ARGS+= --with-unixodbc=yes \
|
|
|
|
--with-unixodbcinclude=${LOCALBASE}/include \
|
|
|
|
--with-unixodbclib=${LOCALBASE}/lib
|
|
|
|
PLIST_SUB+= UNIXODBC=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= UNIXODBC="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|g++|${CXX}|g ; \
|
|
|
|
s|@CFLAGS@|${CXXFLAGS}|g ; \
|
|
|
|
s|gcc|${CXX}|g ; \
|
|
|
|
s|cp -f \.|${INSTALL_DATA} .|g' ${WRKSRC}/Makefile.in
|
|
|
|
|
2001-07-23 09:51:29 +02:00
|
|
|
.include <bsd.port.mk>
|