blob: f235864193c866d241e6b833a4005ec62e64ec23 (
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
71
72
73
74
|
# $NetBSD: Makefile,v 1.28 2013/06/04 22:15:49 tron Exp $
DISTNAME= mysql-workbench-gpl-5.2.33b-src
PKGNAME= ${DISTNAME:S/-gpl//:S/b-src$//}
PKGREVISION= 23
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++
USE_LIBTOOL= yes
USE_TOOLS+= bash gmake pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-system-ctemplate
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 "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CXXFLAGS+= -std=c++11
.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"
|