blob: 87566e2eac860498717b930f08354f6d7791eebd (
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
|
# $NetBSD: Makefile,v 1.53 2017/02/06 13:54:47 wiz Exp $
#
DISTNAME= gtk-vnc-0.5.2
PKGREVISION= 16
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk-vnc/0.5/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://live.gnome.org/gtk-vnc
COMMENT= VNC viewer widget for GTK
LICENSE= gnu-lgpl-v2.1
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= gmake intltool msgfmt pkg-config
PKGCONFIG_OVERRIDE+= gtk-vnc-1.0.pc.in
PKGCONFIG_OVERRIDE+= gtk-vnc-2.0.pc.in
PKGCONFIG_OVERRIDE+= gvnc-1.0.pc.in
PKGCONFIG_OVERRIDE+= gvncpulse-1.0.pc.in
PY_PATCHPLIST= yes
CONFIGURE_ARGS+= --with-coroutine=gthread
.include "options.mk"
# idea from arch linux PKGBUILD
CONFIGURE_SCRIPT= ../configure
CONFIGURE_DIRS= gtk2-build gtk3-build
BUILD_DIRS= gtk2-build gtk3-build
INSTALL_DIRS= gtk2-build gtk3-build
pre-configure:
${RM} -rf ${WRKSRC}/gtk2-build ${WRKSRC}/gtk3-build
${MKDIR} ${WRKSRC}/gtk2-build ${WRKSRC}/gtk3-build
do-configure:
cd ${WRKSRC}/gtk2-build \
&& ${PKGSRC_SETENV} ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} \
--with-gtk=2.0
cd ${WRKSRC}/gtk3-build \
&& ${PKGSRC_SETENV} ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} \
--with-gtk=3.0
# The GTK3 build excludes some functions which are still listed in the mapfile.
SUBST_CLASSES.SunOS+= mapfile
SUBST_STAGE.mapfile= pre-build
SUBST_FILES.mapfile= gtk3-build/src/Makefile
SUBST_SED.mapfile= -e '/VERSION_SCRIPT_FLAGS.*GTK_VNC_VERSION_FILE/d'
#VIEW_REQUIRED=0.6.0
#libview
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
# libview is only used for an example which is not installed
#.include "../../devel/libview/buildlink3.mk"
BUILDLINK_API_DEPENDS.gnutls+= gnutls>=1.4.0
.include "../../security/gnutls/buildlink3.mk"
.include "../../security/libgcrypt/buildlink3.mk"
BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.18.0
.include "../../x11/gtk2/buildlink3.mk"
BUILDLINK_API_DEPENDS.gtk3+= gtk3+>=3.0.0
.include "../../x11/gtk3/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|