freebsd-ports/databases/mysql-workbench51/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

65 lines
1.9 KiB
Makefile

# Created by: Maxim Ignatenko
# $FreeBSD$
PORTNAME= mysql-workbench-oss
PORTVERSION= 5.1.16
PORTREVISION= 11
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.mk>