aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysqlcppapi/Makefile
blob: 213a81bfce6fa1ff8d3f703d26201eee839efe5b (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
# ports collection makefile for:    mysqlcppapi
# Date created:             4 August 2004
# Whom:                 Jie Gao <gaoj@cpsc.ucalgary.ca>
#
# $FreeBSD$
#

PORTNAME=   mysqlcppapi
PORTVERSION=    1.9.3
PORTREVISION=   2
CATEGORIES= databases devel
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}%202/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A fork of mysql++ C++ API for MySQL

USE_AUTOTOOLS=  libtool
USE_MYSQL=  yes
USE_GNOME=  pkgconfig gnomehack
GNU_CONFIGURE=  yes

CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-mysql=${LOCALBASE}
USE_LDCONFIG=   yes

post-patch:
    ${REINPLACE_CMD} s/libmysqlcppapi-1.9/libmysqlcppapi/g \
        ${WRKSRC}/mysqlcppapi/Makefile.in ${WRKSRC}/examples/Makefile.in
    ${FIND} ${WRKSRC}/mysqlcppapi -name Makefile.in \
        -exec ${REINPLACE_CMD} -e \
        '/^library_includedir =/s,\$$(GENERIC_LIBRARY_NAME)-2.0/,,g' '{}' \;

.include <bsd.port.mk>