1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/databases/mysql-workbench51/Makefile
Tijl Coosemans a374acb969 By default libtool replaces -export-symbols <file> with -retain-symbols-file
<file> on ELF systems, but this doesn't really do what -export-symbols is
meant to do.  On GNU ELF systems it converts <file> to a simple version
script first and then uses -version-script instead of -retain-symbols-file.
Let USES=libtool patch libtool scripts to do this on all systems with GNU
ld(1).

Bump PORTREVISION on all ports where the build log contains -export-symbols.

audio/calf: This port builds a module that now exports only one function,
but it also builds a number of executables that link to this module and
expect to see other functions.  Because it's already a bit dodgy to link to
a module (libtool warns about this) let the module continue to export only
one function and instead build an ordinary library from the same source that
the executables can link to.  Fix a number of other issues in the same
Makefile.am and clean up the port Makefile.

japanese/scim-honoka: Tries to hide all symbols that start with an
underscore, but because this library is written in C++ all symbols start
with _Z so it ends up hiding everything.  Just don't hide anything at all
like the textproc/scim configure script does.

multimedia/schroedinger: Apply an upstream patch.

textproc/scim-input-pad: Same as japanese/scim-honoka.

PR:		201922
Approved by:	portmgr (antoine)
Exp-run by:	antoine
2015-08-02 15:03:19 +00:00

72 lines
2.0 KiB
Makefile

# Created by: Maxim Ignatenko
# $FreeBSD$
PORTNAME= mysql-workbench-oss
PORTVERSION= 5.1.16
PORTREVISION= 12
CATEGORIES= databases
MASTER_SITES= MYSQL/MySQLGUITools
PKGNAMESUFFIX= 51
MAINTAINER= ports@FreeBSD.org
COMMENT= The MySQL Workbench
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \
libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid \
libzip.so:${PORTSDIR}/archivers/libzip \
libtolua++-${LUA_VER}.so:${PORTSDIR}/lang/tolua++
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= PYTHON
USE_LDCONFIG= ${PREFIX}/lib/mysql-workbench
USES= autoreconf dos2unix libtool lua:51
DOS2UNIX_REGEX= .*ext/yassl/.*(Makefile.am|configure.in)
USE_GL= gl
USE_GNOME= cairo gtkmm24 libglade2 libgnome libsigc++20 libxml2
CONFLICTS= mysql-workbench-gpl*
DATADIR= ${PREFIX}/share/mysql-workbench
CXXFLAGS+= -I${LOCALBASE}/include -I${LUA_INCDIR}
LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR}
GNU_CONFIGURE= yes
CONFIGURE_ENV= GNOME2_DIR="${LOCALBASE}" LUA_LIBS="-llua-${LUA_VER}"
USE_MYSQL= client
DEFAULT_MYSQL_VER= 51
IGNORE_WITH_MYSQL= 55
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPYTHON}
CONFIGURE_ARGS+= --enable-python-modules
.endif
post-patch:
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
${WRKSRC}/backend/windows/wbprivate.wr/src/stdafx.h \
${WRKSRC}/backend/wbprivate/workbench/stdafx.h \
${WRKSRC}/library/canvas/src/stdafx.h \
${WRKSRC}/library/canvas/src/mdc_canvas_view.h \
${WRKSRC}/library/canvas/src/mdc_canvas_view_printing.cpp \
${WRKSRC}/modules/wb.mysql.import/src/stdafx.h \
${WRKSRC}/modules/db.mysql.sqlparser/src/stdafx.h \
${WRKSRC}/modules/db.mysql.sqlparser/src/mysql_sql_parser_fe.cpp \
${WRKSRC}/plugins/wb.printing/backend/stdafx.h \
${WRKSRC}/plugins/db.mysql/backend/db_plugin_be.cpp
pre-configure:
(cd ${WRKSRC}/ext/yassl/taocrypt && ${LOCALBASE}/bin/autoreconf -f -i)
(cd ${WRKSRC}/ext/yassl && ${LOCALBASE}/bin/autoreconf -f -i)
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
BROKEN= does not build
.endif
.include <bsd.port.post.mk>