1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/databases/libiodbc/Makefile
Raphael Kubo da Costa 1f3493ec86 Update to 3.52.9.
Changes upstream include:
* Added support for building on recent versions of Mac OS X
* Fixed warnings from autoconf/automake
* Fixed infinite loop in connection pool
* Fixed compiler warnings
* Fixed build dependency for make -jX
* Fixed check for Unicode driver
* Fixed issue calling SQLCancel from other thread
* Fixed SQLInstallDriverEx when driver is readonly

The "Fixed build dependency for make -jX" part is important, as parallel
builds (particularly with the GTK2 option on) normally fail with 3.52.8.

Based on a patch by Jia-Shiun Li <jiashiun@gmail.com> [1].

PR:		ports/189496 [1]
Submitted by:	Jia-Shiun Li <jiashiun@gmail.com> [1]
MFH:		2014Q2
2014-05-19 11:44:50 +00:00

50 lines
1.3 KiB
Makefile

# Created by: erikhb@bgnett.no
# $FreeBSD$
PORTNAME= libiodbc
PORTVERSION= 3.52.9
CATEGORIES= databases
MASTER_SITES= SF/iodbc/iodbc/${PORTVERSION}
MAINTAINER= kde@FreeBSD.org
COMMENT= ODBC 3.x driver manager, for universal data source access
LICENSE= BSD3CLAUSE LGPL20
LICENSE_COMB= dual
LICENSE_FILE_BSD= ${WRKSRC}/LICENSE.BSD
LICENSE_FILE_LGPL20= ${WRKSRC}/LICENSE.LGPL
USES= libtool pathfix pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-iodbc-inidir=${ETCDIR} \
--includedir=${LOCALBASE}/include/libiodbc \
--disable-libodbc
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
OPTIONS_DEFINE= GTK2 DOCS EXAMPLES
OPTIONS_SUB= yes
GTK2_USE= GNOME=gtk20
GTK2_CONFIGURE_ENABLE= gui
post-patch:
@${REINPLACE_CMD} -e \
'/^SUBDIRS/s|samples||' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|-ldl||g' ${WRKSRC}/admin/libiodbc.pc.in
post-install:
@${MKDIR} ${STAGEDIR}/${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/etc/odbc*.ini.sample ${STAGEDIR}/${ETCDIR}
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
.for f in AUTHORS ChangeLog NEWS README
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}/${DOCSDIR}
.endfor
@${MKDIR} ${STAGEDIR}/${EXAMPLESDIR}
.for f in Makefile.sample iodbctest.c
${INSTALL_DATA} ${WRKSRC}/samples/${f} ${STAGEDIR}/${EXAMPLESDIR}
.endfor
.include <bsd.port.mk>