aboutsummaryrefslogtreecommitdiffstats
path: root/databases/tora/Makefile
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2006-03-23 04:48:37 +0800
committerthierry <thierry@FreeBSD.org>2006-03-23 04:48:37 +0800
commit817013ec2ba047f0e924bcd1e32f73660922fd2f (patch)
tree63d084940ae437bb92250b2e65fb0fb6d2f16b16 /databases/tora/Makefile
parentf07de26a31e5e76a71f1f63d7caf0b8f5c4f6c3f (diff)
downloadfreebsd-ports-gnome-817013ec2ba047f0e924bcd1e32f73660922fd2f.tar.gz
freebsd-ports-gnome-817013ec2ba047f0e924bcd1e32f73660922fd2f.tar.zst
freebsd-ports-gnome-817013ec2ba047f0e924bcd1e32f73660922fd2f.zip
Since we have a native Net8, resurrect TOra.
Diffstat (limited to 'databases/tora/Makefile')
-rw-r--r--databases/tora/Makefile63
1 files changed, 63 insertions, 0 deletions
diff --git a/databases/tora/Makefile b/databases/tora/Makefile
new file mode 100644
index 000000000000..e5c21049bc65
--- /dev/null
+++ b/databases/tora/Makefile
@@ -0,0 +1,63 @@
+# New ports collection makefile for: tora
+# Date created: 03 January 2002
+# Whom: anders
+#
+# $FreeBSD$
+#
+
+PORTNAME= tora
+PORTVERSION= 1.3.21
+CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= Toolkit for Oracle
+
+BUILD_DEPENDS= ${ORACLE_HOME}/lib/libclntsh.a:${PORTSDIR}/databases/oracle8-client
+LIB_DEPENDS= qscintilla.6:${PORTSDIR}/x11-toolkits/qscintilla
+RUN_DEPENDS= ${ORACLE_HOME}/network/admin/tnsnames.ora:${PORTSDIR}/databases/oracle8-client
+
+.if !defined(WITHOUT_MYSQL)
+BUILD_DEPENDS+= ${X11BASE}/lib/plugins/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt-mysql-plugin
+RUN_DEPENDS+= ${X11BASE}/lib/plugins/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt-mysql-plugin
+.endif
+
+.if !defined(WITHOUT_PGSQL)
+BUILD_DEPENDS+= ${X11BASE}/lib/plugins/sqldrivers/libqsqlpsql.so:${PORTSDIR}/databases/qt-pgsql-plugin
+RUN_DEPENDS+= ${X11BASE}/lib/plugins/sqldrivers/libqsqlpsql.so:${PORTSDIR}/databases/qt-pgsql-plugin
+.endif
+
+ORACLE_HOME?= ${LOCALBASE}/oracle8-client
+ORACLE_VER= 8i # Client version
+
+USE_QT_VER= 3
+USE_PERL5_BUILD=yes
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+CONFIGURE_ARGS= --with-oracle=${ORACLE_HOME} --with-oci-version=${ORACLE_VER:U}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+INSTALLS_SHLIB= yes
+
+.if defined(WITHOUT_KDE)
+CONFIGURE_ARGS+= --without-kde
+.else
+USE_KDELIBS_VER=3
+.endif
+
+PORTDOCS= AUTHORS BUGS ChangeLog INSTALL NEWS README README.CODESTYLE README.LICENSE TODO
+
+PREFIX2FIX= help/preferences.html totool.cpp
+
+pre-configure:
+ ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+ ${REINPLACE_CMD} -e 's|/etc/torarc|${PREFIX}/etc/torarc|' ${PREFIX2FIX:S|^|${WRKSRC}/|}
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/templates/* ${PREFIX}/lib/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>