aboutsummaryrefslogtreecommitdiffstats
path: root/databases/libdbi/Makefile
blob: 950b597e79c983c7626c3719b88b7c50c8215d1d (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   libdbi
PORTVERSION=    0.9.0
PORTREVISION=   3
CATEGORIES= databases devel
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Database Independent Abstraction Layer for C

LICENSE=    LGPL21+
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       libtool pathfix
GNU_CONFIGURE=  yes
INSTALL_TARGET= install-strip
USE_LDCONFIG=   yes

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e "s|-O20|${CFLAGS}|g" -e "s|-std=gnu99||g" \
         ${WRKSRC}/configure

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/driver-guide
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/programmers-guide
    ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/driver-guide/*.html \
        ${STAGEDIR}${DOCSDIR}/driver-guide
    ${INSTALL_DATA} ${WRKSRC}/doc/programmers-guide/*.html \
        ${STAGEDIR}${DOCSDIR}/programmers-guide

.include <bsd.port.mk>