1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00
freebsd-ports/databases/tora/Makefile
Gerald Pfeifer 15945f8122 Update the default version of GCC in the Ports Collection from GCC 4.7.4
to GCC 4.8.3.

Part II, Bump PORTREVISIONs.

PR:		192025
Tested by:	antoine (-exp runs)
Approved by:	portmgr (implicit)
2014-09-10 20:50:31 +00:00

74 lines
1.9 KiB
Makefile

# Created by: anders
# $FreeBSD$
PORTNAME= tora
PORTVERSION= 2.1.3
PORTREVISION= 8
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_AUTOTOOLS= aclocal automake autoconf autoheader libtoolize
USE_QT4= gui corelib sql xml network linguist moc_build uic_build rcc_build
USES= gmake libtool
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 ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000024
BROKEN= Does not compile with clang (include <list>)
.endif
.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
run-autotools:
(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ./autogen.sh)
pre-configure:
.if ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e 's|/etc/torarc|${PREFIX}/etc/torarc|' \
${PREFIX2FIX:S|^|${WRKSRC}/|}
.else
${REINPLACE_CMD} -e 's|test doc|test|' ${WRKSRC}/Makefile.am
.endif
.include <bsd.port.mk>