freebsd-ports/databases/unixODBC/Makefile
Marcus von Appen 821843ca06 - Convert USE_ICONV=yes to USES=iconv
- Change USE_GNOME=pkgconfig|gnomehack to USES=pathfix|pkgconfig while here

Reviewed by:	bapt, kwm
2013-04-27 08:50:46 +00:00

44 lines
1.1 KiB
Makefile

# New ports collection makefile for: unixODBC
# Date created: May 11, 2000
# Whom: Nick Sayer <nsayer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= unixODBC
PORTVERSION= 2.3.1
CATEGORIES= databases
MASTER_SITES= http://www.unixodbc.org/
MAINTAINER= ports@FreeBSD.org
COMMENT= ODBC library suite for Unix
CONFLICTS= libiodbc-[0-9]* virtuoso-*
USES= iconv
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-static --enable-shared \
--with-libiconv-prefix=${LOCALBASE}
USE_LDCONFIG= yes
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} 's,$$LIBS $$THREADLIB,$$LIBS,;s,$$CFLAGS -pthread,$$CFLAGS,' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's,@MSQL_TRUE@lib_LTLIBRARIES,#&,' \
${WRKSRC}/Drivers/MiniSQL/Makefile.in
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${TAR} -C ${WRKSRC}/doc --exclude '*Makefile*' -cf - . \
| ${TAR} -C ${DOCSDIR} --unlink -xf -
.if !defined(INSTALL_AS_USER)
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
${FIND} ${DOCSDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
${FIND} ${DOCSDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
.endif
.endif
.include <bsd.port.mk>