blob: dd486aa67eac0c0888741f58d0f6dc21cbf55f4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# $NetBSD: Makefile,v 1.58 2017/09/02 22:02:24 wiz Exp $
DISTNAME= mysql-workbench-gpl-5.2.33b-src
PKGNAME= ${DISTNAME:S/-gpl//:S/b-src$//}
PKGREVISION= 50
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_MYSQL:=MySQLGUITools/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://wb.mysql.com/
COMMENT= Cross-platform, visual database design tool
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/${DISTNAME:S/b-src$/-src/}
USE_LANGUAGES= c c++11
USE_LIBTOOL= yes
USE_TOOLS+= bash gmake pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-system-ctemplate
LUA_VERSIONS_INCOMPATIBLE= 52 53
CHECK_PORTABILITY_SKIP= build/make_dmg.sh
CHECK_PORTABILITY_SKIP+=ext/ctemplate/ctemplate-src/configure.ac
SUBST_CLASSES+= python
SUBST_STAGE.python= pre-configure
SUBST_MESSAGE.python= Fixing hardcoded python binary
SUBST_FILES.python= configure configure.in
SUBST_SED.python= -e "s,python -c,${PYTHONBIN} -c,g"
SUBST_CLASSES+= bash
SUBST_STAGE.bash= pre-install
SUBST_MESSAGE.bash= Fixing hardcoded bash path
SUBST_FILES.bash= frontend/linux/workbench/mysql-workbench
SUBST_SED.bash= -e "s,/bin/bash,${BASH},g"
pre-build:
${CP} ${WRKSRC}/res/include/wb_config_gpl.h ${WRKSRC}/wb_config.h
.if exists(/System/Library/Frameworks/OpenGL.framework)
CONFIGURE_ENV+= ac_cv_header_GL_gl_h=yes
CONFIGURE_ENV+= ac_cv_header_GL_glx_h=yes
SUBST_CLASSES+= osx-gl
SUBST_STAGE.osx-gl= pre-configure
SUBST_MESSAGE.osx-gl= Using Mac OS X OpenGL
SUBST_FILES.osx-gl= configure
SUBST_SED.osx-gl= -e 's,-lGL,-framework OpenGL,g'
.else
.include "../../graphics/MesaLib/buildlink3.mk"
.endif
.include "../../archivers/libzip/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/boost-headers/buildlink3.mk"
.include "../../devel/ctemplate/buildlink3.mk"
.include "../../devel/libglade/buildlink3.mk"
.include "../../devel/libgnome/buildlink3.mk"
.include "../../devel/libuuid/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../lang/python/pyversion.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../security/gnome-keyring/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../x11/gtkmm/buildlink3.mk"
.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|