aboutsummaryrefslogtreecommitdiffstats
path: root/databases/unixODBC/Makefile
blob: 58c2509367d6ffeb2838b8df01a7ca7d40f75228 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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>