summaryrefslogtreecommitdiffstats
path: root/databases/libdrizzle/Makefile
blob: 0d2a52324806f4639eeac869a4cfbba6ffcdde3a (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Created by: Greg Larkin <glarkin@FreeBSD.org>
# $FreeBSD$

PORTNAME=	libdrizzle
PORTVERSION=	0.8
PORTREVISION=	1
CATEGORIES=	databases
MASTER_SITES=	http://launchpadlibrarian.net/41155299/ \
		LOCAL/glarkin

MAINTAINER=	glarkin@FreeBSD.org
COMMENT=	Client and protocol library for the Drizzle database

LIB_DEPENDS=	sqlite3.8:${PORTSDIR}/databases/sqlite3

OPTIONS_DEFINE=	DOXYGEN EXAMPLES

USE_GCC=	4.2+
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--enable-libsqlite3
USE_GMAKE=	yes
USE_LDCONFIG=	yes

SAMPLE_PROGS=	client pipe_query proxy server simple \
		simple_multi sqlite_server

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEB}
BUILD_DEPENDS+=	doxygen>=0:${PORTSDIR}/devel/doxygen
ALL_TARGET=	all doxygen
PLIST_SUB+=	PORTDOCS=""

post-install::
	@${INSTALL} -d ${DOCSDIR}
	@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
.else
PLIST_SUB+=	PORTDOCS="@comment "
.endif

.if ${PORT_OPTIONS:MEXAMPLES}
post-install::
	@${INSTALL} -d ${EXAMPLESDIR}
.for i in ${SAMPLE_PROGS}
	@${INSTALL_PROGRAM} ${WRKSRC}/examples/.libs/${i} ${EXAMPLESDIR}
.endfor
.endif

.if ${ARCH} == "i386"
CONFIGURE_ARGS+=--disable-64bit
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud