blob: 057ff5dcfe14a4c658691cd7c4eaa6e0ab4f26bf (
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
55
56
57
58
59
60
61
62
63
64
65
|
# Created by: anders
# $FreeBSD$
PORTNAME= tora
PORTVERSION= 2.1.3
PORTREVISION= 9
PORTEPOCH= 1
CATEGORIES= databases
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Toolkit for Oracle
LICENSE= GPLv2
BUILD_DEPENDS= cppunit-config:${PORTSDIR}/devel/cppunit
LIB_DEPENDS= libqscintilla2.so:${PORTSDIR}/devel/qscintilla2 \
libpcre.so:${PORTSDIR}/devel/pcre
OPTIONS_DEFINE= PGSQL MYSQL DOCS
OPTIONS_DEFINE_i386= ORACLE
OPTIONS_DEFAULT= PGSQL MYSQL
USE_QT4= gui corelib sql xml network linguist 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
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
USES+= makeinfo
INFO= tora
.endif
.if ${PORT_OPTIONS:MMYSQL}
RUN_DEPENDS+= ${QT_PLUGINDIR}/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt4-mysql-plugin
.endif
.if ${PORT_OPTIONS:MPGSQL}
RUN_DEPENDS+= ${QT_PLUGINDIR}/sqldrivers/libqsqlpsql.so:${PORTSDIR}/databases/qt4-pgsql-plugin
.endif
.if ${PORT_OPTIONS:MORACLE}
BUILD_DEPENDS+= ${ORACLE_HOME}/lib/libclntsh.a:${PORTSDIR}/databases/oracle8-client
RUN_DEPENDS+= ${ORACLE_HOME}/network/admin/tnsnames.ora:${PORTSDIR}/databases/oracle8-client
ORACLE_HOME?= ${LOCALBASE}/oracle8-client
ORACLE_VER= 8i # Client version
CONFIGURE_ARGS+= --with-oracle=${ORACLE_HOME} --with-oci-version=${ORACLE_VER:tu}
.endif
post-patch:
.if ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} 's|/etc/torarc|${PREFIX}/etc/torarc|' \
${PREFIX2FIX:S|^|${WRKSRC}/|}
.else
@${REINPLACE_CMD} 's|test doc|test|' ${WRKSRC}/Makefile.am
.endif
.include <bsd.port.mk>
|