freebsd-ports/databases/unixODBC/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

54 lines
1.2 KiB
Makefile

# New ports collection makefile for: unixODBC
# Date created: May 11, 2000
# Whom: Nick Sayer <nsayer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= unixODBC
PORTVERSION= 2.2.11
CATEGORIES= databases
MASTER_SITES= http://www.unixodbc.org/
MAINTAINER= ports@FreeBSD.org
COMMENT= ODBC library suite for Unix
CONFLICTS= libiodbc-*
USE_GNOME= gnomehack gnometarget
USE_ICONV= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_ARGS= --enable-static --enable-shared \
--with-libiconv-prefix=${LOCALBASE}
INSTALLS_SHLIB= yes
.if defined(WITH_GUI)
USE_QT_VER= 3
QT_NONSTANDARD= yes
CONFIGURE_ENV= MOC="${MOC}" \
QTINC="${QT_PREFIX}/include" \
QTLIB="${QT_PREFIX}/lib" \
USER_INCLUDES="${QTCPPFLAGS}" \
USER_LDFLAGS="${QTCFGLIBS}"
CONFIGURE_ARGS+= --enable-gui
PLIST_SUB= GUI:=""
.else
CONFIGURE_ARGS+= --disable-gui
PLIST_SUB= GUI:="@comment "
.endif
.if !defined(WITHOUT_THREADS) || defined(WITH_GUI)
CONFIGURE_ARGS+= --enable-threads=yes
.else
CONFIGURE_ARGS+= --enable-threads=no
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${TAR} -C ${WRKSRC}/doc --exclude '*Makefile*' -cf - . \
| ${TAR} -C ${DOCSDIR} --unlink -xf -
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
.include <bsd.port.mk>