openbsd-ports/x11/gtk-vnc/Makefile
ajacoutot 64ac699bfe Add support and default to gtk+3.
Add a gtk2 FLAVOR. Remove python bindings (which are unused) and the
browser plugin which is gtk2-only.
Don't install the example binary.

ok jasper@
2011-07-15 07:06:06 +00:00

72 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.30 2011/07/15 07:06:06 ajacoutot Exp $
COMMENT= VNC viewer widget for GTK
GNOME_PROJECT= gtk-vnc
GNOME_VERSION= 0.4.3
PKGNAME= ${DISTNAME}
REVISION= 3
SHARED_LIBS += gvnc-1.0 0.0 # 0.1
CATEGORIES= x11 net
HOMEPAGE= http://live.gnome.org/gtk-vnc
# LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += GL X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender Xxf86vm atk-1.0 c cairo
WANTLIB += drm expat fontconfig freetype gcrypt gdk_pixbuf-2.0
WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gmp gnutls gobject-2.0
WANTLIB += gpg-error gthread-2.0 hogweed m nettle pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 pcre pixman-1 png pthread pthread-stubs
WANTLIB += sasl2 tasn1 xcb xcb-render xcb-shm z
MODULES= devel/gettext \
x11/gnome
BUILD_DEPENDS= ${RUN_DEPENDS} \
devel/gobject-introspection
LIB_DEPENDS= security/gnutls \
security/cyrus-sasl2 \
security/libgcrypt
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--enable-introspection \
--without-examples \
--with-sasl \
--without-libview
# mozilla plugin and python bindings are gtk+2 only
CONFIGURE_ARGS += --disable-plugin \
--without-python
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
FLAVORS= gtk2
FLAVOR?=
.if ${FLAVOR:L:Mgtk2}
SHARED_LIBS += gtk-vnc-1.0 2.0 # 0.1
CONFIGURE_ARGS += --with-gtk=2.0
LIB_DEPENDS += x11/gtk+2
WANTLIB += gdk-x11-2.0 gtk-x11-2.0
.else
SHARED_LIBS += gtk-vnc-2.0 0.0 # 0.2
CONFIGURE_ARGS += --with-gtk=3.0
LIB_DEPENDS += x11/gtk+3
WANTLIB += cairo-gobject gdk-3 gtk-3
.endif
.include <bsd.port.mk>