aboutsummaryrefslogtreecommitdiffstats
path: root/databases/freetds-devel/Makefile
blob: 618cae7c00296ad352a798674d7d65efe62aa0bb (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
# New ports collection makefile for:   freetds
# Date created:     02 Nov 1999
# Whom:         Domas Mituzas <midom@dammit.lt>
#
# $FreeBSD$

PORTNAME=   freetds
PORTVERSION=    0.52
CATEGORIES= databases
MASTER_SITES=   ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= ALPHA/freetds
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org

USE_GMAKE=  yes
USE_LIBTOOL=    yes
CONFIGURE_ARGS= --with-tdsver=4.2 \
        --enable-dbmfix
INSTALLS_SHLIB= yes

post-patch:
    @find ${WRKSRC}/src -name Makefile.in | xargs ${PERL} -pi -e \
        's| install-includeHEADERS||g'
    @${PERL} -pi -e 's!/freetds.conf!/freetds.conf.dist!g' \
        ${WRKSRC}/Makefile.in
    @${PERL} -pi -e 's!malloc.h!stdlib.h!' ${WRKSRC}/include/tds.h.in

post-install:
.if !exists(${PREFIX}/etc/freetds.conf)
    @${CP} ${PREFIX}/etc/freetds.conf.dist ${PREFIX}/etc/freetds.conf
.endif

.include <bsd.port.mk>