aboutsummaryrefslogtreecommitdiffstats
path: root/databases/dbow/Makefile
blob: 53dcd0a84bf41e5398a3888ff9d61e843ea98ec2 (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
# Created by: Dermot Tynan <dtynan@kalopa.com>
# $FreeBSD$

PORTNAME=   dbow
PORTVERSION=    0.7
PORTREVISION=   1
CATEGORIES= databases devel
MASTER_SITES=   SF

MAINTAINER= dtynan@kalopa.com
COMMENT=    DBOW is a database object generator for C, Perl, PHP, etc

MAKE_ENV+=  MYSQL_INC=${LOCALBASE}/include/mysql \
        MYSQL_LIB=${LOCALBASE}/lib/mysql

USE_MYSQL=  yes

post-patch:
    @${REINPLACE_CMD} -e "s|CFLAGS=|CFLAGS+=|g" \
            -e "s|^MYSQL_INC=|MYSQL_INC?=|" \
            -e "s|^MYSQL_LIB=|MYSQL_LIB?=|" \
        ${WRKSRC}/example/Makefile ${WRKSRC}/lib/Makefile \
        ${WRKSRC}/src/Makefile

.include <bsd.port.mk>