mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
9a5df57062
- OPTIONS'ify - Build and install documentation - Specify LICENSE Feature safe: yes
59 lines
1.3 KiB
Makefile
59 lines
1.3 KiB
Makefile
# New ports collection makefile for: libodbc++
|
|
# Date created: 26 September 2001
|
|
# Whom: Johann Visagie <wjv@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= libodbc++
|
|
PORTVERSION= 0.2.5
|
|
PORTREVISION= 0
|
|
CATEGORIES= databases devel
|
|
MASTER_SITES= SF/libodbcxx/libodbc%2B%2B/${PORTVERSION}
|
|
|
|
MAINTAINER= fjoe@FreeBSD.org
|
|
COMMENT= A C++ class library and toolset for ODBC access to data sources
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
|
|
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
USE_AUTOTOOLS= libtool
|
|
USE_GNOME= pkgconfig
|
|
USE_LDCONFIG= yes
|
|
CONFIGURE_ARGS= --with-isqlxx
|
|
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}"
|
|
CXXFLAGS+= ${PTHREAD_CFLAGS}
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
OPTIONS_SINGLE= ODBC
|
|
OPTIONS_SINGLE_ODBC= IODBC UNIXODBC
|
|
OPTIONS_DEFAULT= ODBC IODBC
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MIODBC}
|
|
LIB_DEPENDS= iodbc.3:${PORTSDIR}/databases/libiodbc
|
|
CONFIGURE_ARGS+= --with-iodbc=${LOCALBASE}
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MUNIXODBC}
|
|
LIB_DEPENDS= odbc.2:${PORTSDIR}/databases/unixODBC
|
|
CONFIGURE_ARGS+= --with-odbc=${LOCALBASE}
|
|
.endif
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
|
|
PORTDOCS= progref
|
|
|
|
.if defined(NOPORTDOCS)
|
|
post-patch:
|
|
${REINPLACE_CMD} '/^SUBDIRS/s/=.*/=/' ${WRKSRC}/doc/Makefile.in
|
|
.else
|
|
post-extract:
|
|
${RM} -f ${WRKSRC}/doc/progref/progref-stamp
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|