summaryrefslogtreecommitdiffstats
path: root/databases/tora/Makefile
blob: e626ff2ce36690fd2de370e401f2da4935367d0f (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
# Created by: anders
# $FreeBSD$

PORTNAME=	tora
PORTVERSION=	2.1.3
PORTREVISION=	11
PORTEPOCH=	1
CATEGORIES=	databases
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Toolkit for Oracle

LICENSE=	GPLv2

BUILD_DEPENDS=	cppunit-config:devel/cppunit
LIB_DEPENDS=	libqscintilla2.so:devel/qscintilla2 \
		libpcre.so:devel/pcre

OPTIONS_DEFINE=	PGSQL MYSQL DOCS
OPTIONS_DEFAULT=	PGSQL MYSQL

USE_QT4=	corelib gui sql xml network moc_build uic_build rcc_build
USES=		autoreconf gmake libtool makeinfo
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-pcre=${LOCALBASE}
LDFLAGS+=	-L${LOCALBASE}/lib
INSTALL_TARGET=	install-strip

PREFIX2FIX=	doc/help/preferences.texi doc/help/preferences.html

DOCS_USES=	makeinfo
DOCS_INFO=	tora

MYSQL_RUN_DEPENDS=	${QT_PLUGINDIR}/sqldrivers/libqsqlmysql.so:databases/qt4-mysql-plugin
PGSQL_RUN_DEPENDS=	${QT_PLUGINDIR}/sqldrivers/libqsqlpsql.so:databases/qt4-pgsql-plugin

post-patch-DOCS-on:
	@${REINPLACE_CMD} 's|/etc/torarc|${PREFIX}/etc/torarc|' \
		${PREFIX2FIX:S|^|${WRKSRC}/|}

post-patch-DOCS-off:
	@${REINPLACE_CMD} 's|test doc|test|' ${WRKSRC}/Makefile.am

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