2000-05-11 17:41:27 +02:00
|
|
|
# New ports collection makefile for: unixODBC
|
|
|
|
# Date created: May 11, 2000
|
|
|
|
# Whom: Nick Sayer <nsayer@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= unixODBC
|
2003-04-27 00:35:39 +02:00
|
|
|
PORTVERSION= 2.2.5
|
2000-05-11 17:41:27 +02:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= http://www.unixodbc.org/
|
|
|
|
|
2000-11-16 18:44:40 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= ODBC library suite for Unix
|
2000-05-11 17:41:27 +02:00
|
|
|
|
2002-09-01 19:28:43 +02:00
|
|
|
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
|
|
|
|
|
2002-07-09 08:14:13 +02:00
|
|
|
USE_REINPLACE= yes
|
2002-07-02 07:13:19 +02:00
|
|
|
USE_LIBTOOL= yes
|
2002-09-01 19:28:43 +02:00
|
|
|
CONFIGURE_ARGS= --enable-static --enable-shared \
|
|
|
|
--with-libiconv-prefix=${LOCALBASE}
|
2000-06-16 23:52:40 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
2000-11-28 16:07:22 +01:00
|
|
|
|
|
|
|
.if defined(WITH_GUI)
|
2003-01-03 07:41:24 +01:00
|
|
|
USE_QT_VER= 3
|
2001-06-12 07:40:12 +02:00
|
|
|
QT_NONSTANDARD= yes
|
2001-12-17 20:19:44 +01:00
|
|
|
CONFIGURE_ENV= MOC="${MOC}" \
|
2003-01-03 07:41:24 +01:00
|
|
|
QTINC="${QT_PREFIX}/include" \
|
|
|
|
QTLIB="${QT_PREFIX}/lib" \
|
2001-06-12 07:40:12 +02:00
|
|
|
USER_INCLUDES="${QTCPPFLAGS}" \
|
|
|
|
USER_LDFLAGS="${QTCFGLIBS}"
|
2001-12-17 20:19:44 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-gui
|
2000-11-28 16:07:22 +01:00
|
|
|
PLIST_SUB= GUI:=""
|
2000-05-29 18:42:04 +02:00
|
|
|
.else
|
2001-01-06 17:10:40 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-gui
|
2000-11-28 16:07:22 +01:00
|
|
|
PLIST_SUB= GUI:="@comment "
|
2000-05-29 18:42:04 +02:00
|
|
|
.endif
|
2000-05-11 17:41:27 +02:00
|
|
|
|
2003-01-03 07:41:24 +01:00
|
|
|
.if defined(WITH_PTHREAD) || defined(WITH_GUI)
|
2001-07-02 16:49:04 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-threads=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-threads=no
|
|
|
|
.endif
|
|
|
|
|
2001-12-17 20:19:44 +01:00
|
|
|
post-patch:
|
2003-01-03 07:41:24 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
2001-06-12 07:40:12 +02:00
|
|
|
|
2001-01-06 17:10:40 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2001-07-23 05:54:43 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2001-01-06 17:10:40 +01:00
|
|
|
${TAR} -C ${WRKSRC}/doc --exclude '*Makefile*' -cf - . \
|
2001-07-23 05:54:43 +02:00
|
|
|
| ${TAR} -C ${DOCSDIR} --unlink -xf -
|
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
2001-01-06 17:10:40 +01:00
|
|
|
.endif
|
|
|
|
|
2000-05-11 17:41:27 +02:00
|
|
|
.include <bsd.port.mk>
|