2013-07-11 17:17:38 +02:00
|
|
|
# Created by: Maxim Ignatenko
|
2009-07-14 02:51:12 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2013-07-11 17:17:38 +02:00
|
|
|
PORTNAME= mysql-workbench-gpl
|
|
|
|
PORTVERSION= 5.2.47
|
|
|
|
DISTVERSIONSUFFIX= -src
|
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= MYSQL/MySQLGUITools
|
2009-07-14 02:51:12 +02:00
|
|
|
PKGNAMESUFFIX= 52
|
|
|
|
|
2012-01-22 14:12:49 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-07-11 17:17:38 +02:00
|
|
|
COMMENT= Visual database design tool
|
2009-07-14 02:51:12 +02:00
|
|
|
|
2013-07-11 17:17:38 +02:00
|
|
|
LICENSE= GPLv2 LGPL21
|
|
|
|
LICENSE_COMB= multi
|
2009-07-14 02:51:12 +02:00
|
|
|
|
2013-12-05 21:17:33 +01:00
|
|
|
LIB_DEPENDS= libzip.so:${PORTSDIR}/archivers/libzip \
|
|
|
|
libboost_system.so:${PORTSDIR}/devel/boost-libs \
|
|
|
|
libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20 \
|
|
|
|
libpcre.so:${PORTSDIR}/devel/pcre \
|
|
|
|
libcairo.so:${PORTSDIR}/graphics/cairo \
|
|
|
|
libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid \
|
|
|
|
libgnome-keyring.so:${PORTSDIR}/security/libgnome-keyring \
|
|
|
|
libctemplate.so:${PORTSDIR}/textproc/google-ctemplate \
|
|
|
|
libtinyxml.so:${PORTSDIR}/textproc/tinyxml \
|
|
|
|
libgtkmm-2.4.so:${PORTSDIR}/x11-toolkits/gtkmm24
|
2013-07-11 17:17:38 +02:00
|
|
|
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}pexpect>0:${PORTSDIR}/misc/py-pexpect \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}paramiko>0:${PORTSDIR}/security/py-paramiko
|
2009-07-14 02:51:12 +02:00
|
|
|
|
2013-07-11 17:17:38 +02:00
|
|
|
OPTIONS_DEFINE= PYTHON_UTILS UNIXODBC
|
|
|
|
PYTHON_UTILS_DESC= Python scripts useful for administering MySQL
|
2009-07-14 02:51:12 +02:00
|
|
|
|
2013-12-05 21:17:33 +01:00
|
|
|
USES= desktop-file-utils gettext gmake pathfix pkgconfig \
|
|
|
|
shebangfix shared-mime-info
|
|
|
|
SHEBANG_FILES= ext/ctemplate/ctemplate-src/src/htmlparser/*.py \
|
|
|
|
ext/mysql-utilities/*.py \
|
|
|
|
ext/mysql-utilities/scripts/*.py \
|
|
|
|
ext/scintilla/qt/ScintillaEditPy/*.py \
|
|
|
|
library/sshtunnel/*.py \
|
|
|
|
plugins/wb.admin/backend/config/gen-opt/*.py \
|
|
|
|
plugins/wb.admin/gen-opt/*.py \
|
|
|
|
plugins/wb.admin/gen-opt/new/*.py \
|
|
|
|
plugins/wb.admin/gen-opt/recat/*.py \
|
|
|
|
plugins/wb.query.analysis/*.py \
|
|
|
|
po/*.py
|
2013-07-11 17:17:38 +02:00
|
|
|
USE_GCC= any
|
|
|
|
USE_GL= gl
|
|
|
|
USE_GNOME= gnomehier gtk20 libxml2
|
|
|
|
USE_PYTHON= -2.7
|
|
|
|
USE_LUA= 5.1
|
|
|
|
LUA_COMPS= lua
|
|
|
|
USE_MYSQL= client
|
|
|
|
USE_SQLITE= 3
|
|
|
|
USE_AUTOTOOLS= libtoolize aclocal automake autoheader autoconf
|
|
|
|
LIBTOOLIZE_ARGS=--copy --force
|
2013-12-05 21:17:33 +01:00
|
|
|
AUTOMAKE_ARGS= --add-missing --copy --force-missing --foreign
|
2013-07-11 17:17:38 +02:00
|
|
|
CONFIGURE_ENV= LUA_CFLAGS="$$(pkg-config --cflags lua-${LUA_VER})" \
|
|
|
|
LUA_LIBS="$$(pkg-config --libs lua-${LUA_VER})" \
|
|
|
|
TINYXML_CFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
TINYXML_LIBS="-L${LOCALBASE}/lib -ltinyxml" \
|
|
|
|
ac_cv_header_netinet_tcp_h=yes
|
|
|
|
CONFIGURE_ARGS= --docdir=${WRKDIR}/fakeroot
|
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/mysql-workbench
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
|
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}" PYTHON_VER="${PYTHON_VER}"
|
|
|
|
|
|
|
|
CONFLICTS= mysql-workbench-oss*
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPYTHON_UTILS}
|
|
|
|
CONFIGURE_ARGS+=--enable-mysql-utilities
|
|
|
|
PLIST_SUB+= PYTHON_UTILS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PYTHON_UTILS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MUNIXODBC}
|
2013-12-05 21:17:33 +01:00
|
|
|
LIB_DEPENDS+= libodbccr.so:${PORTSDIR}/databases/unixODBC
|
2013-07-11 17:17:38 +02:00
|
|
|
CONFIGURE_ARGS+=--with-unixodbc
|
|
|
|
.else
|
2013-12-05 21:17:33 +01:00
|
|
|
LIB_DEPENDS+= libiodbc.so:${PORTSDIR}/databases/libiodbc
|
2013-07-11 17:17:38 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2013-12-05 21:17:33 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|/bin/bash|/bin/sh|' \
|
|
|
|
${WRKSRC}/build/build_freetds.sh
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's| $$(pkgdatadir)| $$(DESTDIR)$$(pkgdatadir)|' \
|
|
|
|
${WRKSRC}/ext/Makefile.am
|
2013-07-11 17:17:38 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/spawn/s|/bin/bash|/bin/sh|' \
|
|
|
|
${WRKSRC}/ext/python/pexpect/pexpect.py
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-O0 -g3||' \
|
|
|
|
${WRKSRC}/ext/scintilla/gtk/Makefile.am
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/f.write/s|bash -i|sh -i| ; \
|
|
|
|
/call/s|/bin/bash|/bin/sh| ; \
|
|
|
|
/paths/s|/usr/local|${LOCALBASE}|' \
|
|
|
|
${WRKSRC}/modules/wb.utils/wb_utils_grt.py
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/spawn/s|/bin/bash|/bin/sh|' \
|
|
|
|
${WRKSRC}/plugins/wb.admin/backend/wb_server_management.py
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|/usr/bin/sudo|${LOCALBASE}/bin/sudo| ; \
|
|
|
|
s|/bin/bash|/bin/sh|' \
|
|
|
|
${WRKSRC}/plugins/wb.admin/frontend/wb_admin_grt.py
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for i in lib/mysql-workbench/modules share/mysql-workbench/libraries
|
2013-12-05 21:17:33 +01:00
|
|
|
@(cd ${STAGEDIR}/${PREFIX} && ${PYTHON_CMD} -m compileall \
|
|
|
|
-d ${PREFIX} -f ${i})
|
2013-07-11 17:17:38 +02:00
|
|
|
.endfor
|
|
|
|
.if ${PORT_OPTIONS:MPYTHON_UTILS}
|
2013-12-05 21:17:33 +01:00
|
|
|
(cd ${WRKSRC}/ext && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
|
|
|
|
${MAKEFILE} ${MAKE_ARGS} install-utils install-connector)
|
|
|
|
@(cd ${STAGEDIR}/${PREFIX} && ${PYTHON_CMD} -m compileall \
|
|
|
|
-d ${PREFIX} -f share/mysql-workbench/python)
|
2013-07-11 17:17:38 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|