Import security/py-yara version 3.4.0
[dports.git] / databases / libdrizzle / Makefile
1 # Created by: Greg Larkin <glarkin@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       libdrizzle
5 PORTVERSION=    0.8
6 PORTREVISION=   5
7 CATEGORIES=     databases
8 MASTER_SITES=   http://launchpadlibrarian.net/41155299/ \
9                 LOCAL/bdrewery/${PORTNAME}/
10
11 MAINTAINER=     bdrewery@FreeBSD.org
12 COMMENT=        Client and protocol library for the Drizzle database
13
14 LICENSE=        BSD3CLAUSE
15
16 LIB_DEPENDS=    libsqlite3.so:${PORTSDIR}/databases/sqlite3
17
18 OPTIONS_DEFINE= DOXYGEN EXAMPLES DOCS
19
20 GNU_CONFIGURE=  yes
21 USES=           gmake libtool
22 CONFIGURE_ARGS+=--enable-libsqlite3
23 USE_LDCONFIG=   yes
24 INSTALL_TARGET= install-strip
25
26 SAMPLE_PROGS=   client pipe_query proxy server simple \
27                 simple_multi sqlite_server
28
29 .include <bsd.port.options.mk>
30
31 .if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
32 BUILD_DEPENDS+= doxygen>=0:${PORTSDIR}/devel/doxygen
33 ALL_TARGET=     all doxygen
34 PLIST_SUB+=     PORTDOCS=""
35 .else
36 PLIST_SUB+=     PORTDOCS="@comment "
37 .endif
38
39 .if ${ARCH} == "i386"
40 CONFIGURE_ARGS+=--disable-64bit
41 .endif
42
43 post-install:
44 .if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
45         @${INSTALL} -d ${STAGEDIR}${DOCSDIR}
46         @cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
47 .endif
48 .if ${PORT_OPTIONS:MEXAMPLES}
49         @${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}
50 .for i in ${SAMPLE_PROGS}
51         @${INSTALL_PROGRAM} ${WRKSRC}/examples/.libs/${i} ${STAGEDIR}${EXAMPLESDIR}
52 .endfor
53 .endif
54
55 .include <bsd.port.mk>