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
|
2006-11-05 00:14:18 +01:00
|
|
|
PORTVERSION= 2.2.12
|
2006-11-28 21:01:56 +01:00
|
|
|
PORTREVISION= 1
|
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
|
|
|
|
2004-02-08 14:29:32 +01:00
|
|
|
CONFLICTS= libiodbc-*
|
|
|
|
|
2004-11-01 18:54:04 +01:00
|
|
|
USE_GNOME= gnomehack gnometarget
|
2004-02-20 16:54:21 +01:00
|
|
|
USE_ICONV= yes
|
2006-11-05 00:14:18 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2002-09-01 19:28:43 +02:00
|
|
|
CONFIGURE_ARGS= --enable-static --enable-shared \
|
|
|
|
--with-libiconv-prefix=${LOCALBASE}
|
2006-08-15 00:55:18 +02:00
|
|
|
USE_LDCONFIG= 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
|
|
|
|
2004-06-28 03:19:44 +02:00
|
|
|
.if !defined(WITHOUT_THREADS) || defined(WITH_GUI)
|
2001-07-02 16:49:04 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-threads=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-threads=no
|
|
|
|
.endif
|
|
|
|
|
2006-11-28 21:01:56 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,@MSQL_TRUE@lib_LTLIBRARIES,#@MSQL_TRUE@lib_LTLIBRARIES,' ${WRKSRC}/Drivers/MiniSQL/Makefile.in
|
|
|
|
|
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 -
|
2006-11-07 16:27:36 +01:00
|
|
|
.if !defined(INSTALL_AS_USER)
|
2001-07-23 05:54:43 +02:00
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
2001-01-06 17:10:40 +01:00
|
|
|
.endif
|
2006-11-07 16:27:36 +01:00
|
|
|
.endif
|
2001-01-06 17:10:40 +01:00
|
|
|
|
2000-05-11 17:41:27 +02:00
|
|
|
.include <bsd.port.mk>
|