blob: 1735b19fd195b73c19643ab5ec701f126a0c8511 (
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
|
# New ports collection makefile for: libodbc++
# Date created: 26 September 2001
# Whom: Johann Visagie <wjv@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libodbc++
PORTVERSION= 0.2.2
CATEGORIES= databases devel
MASTER_SITES= http://orcane.net/freeodbc++/download/${PORTVERSION}/
MAINTAINER= wjv@FreeBSD.org
COMMENT= A C++ class library and toolset for ODBC access to data sources
BROKEN= "Does not compile"
USE_BZIP2= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
# libodbc++ needs an ODBC driver manager to be installed, and it supports
# both iODBC and unixODBC. The following variable may be set at build-time
# to either "iodbc" or "unixodbc", with the latter being the default:
DRIVER_MANAGER?= unixodbc
.if ${DRIVER_MANAGER} == "iodbc"
LIB_DEPENDS= iodbc.3:${PORTSDIR}/databases/libiodbc
CONFIGURE_ARGS+= --with-iodbc=${LOCALBASE}
.else # assume we're using unixODBC
LIB_DEPENDS= odbc.1:${PORTSDIR}/databases/unixODBC
CONFIGURE_ARGS+= --with-odbc=${LOCALBASE}
.endif
# XXX untested
.if defined(WITH_PTHREAD)
CONFIGURE_ARGS+= --enable-threads
.endif
# XXX needs significantly more testing
.if defined(WITH_GUI)
USE_QT_VER= 2
QT_NONSTANDARD= yes
CONFIGURE_ARGS+= --with-qt \
--with-qt-includes=${X11BASE}/include/qt2 \
--with-qt-libs=${X11BASE}/lib \
--with-moc=${MOC} \
--with-qtsqlxx
CONFIGURE_ENV+= MOC="${MOC}" LIBQT="-l${QTNAME}" \
CPPFLAGS="${QTCPPFLAGS}" LIBS="${QTCFGLIBS}"
PLIST_SUB+= PLIST_GUI="" PLIST_NOGUI="@comment "
.else
CONFIGURE_ARGS+= --with-isqlxx
PLIST_SUB+= PLIST_GUI="@comment " PLIST_NOGUI=""
.endif
post-patch:
.for docdir in doc doc/progref
@ ${REINPLACE_CMD} -e \
"s#\@docdir\@/\@PACKAGE\@-\@VERSION\@/#\@docdir\@/\@PACKAGE\@/#" \
${WRKSRC}/${docdir}/Makefile.in
.endfor
post-install:
.if !defined(NOPORTDOCS)
@ cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${GMAKE} \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}
@ cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${GMAKE} \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}
.endif
.include <bsd.port.mk>
|