openbsd-ports/x11/gtk-vnc/Makefile
landry 002897f053 Switch gtk-vnc to use xulrunner 1.9. Use npunix.c from ffx's 3.6.11
tarball, and don't call NPN_GetValue with NPNVToolkit. For unknown
reasons this doesn't work with xl 1.9. While here remove no_plugin
PSEUDO_FLAVOR.
ok ajacoutot@
2010-10-24 09:23:34 +00:00

73 lines
2.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.22 2010/10/24 09:23:34 landry Exp $
COMMENT-main= VNC viewer widget for GTK
COMMENT-plugin= gtk-vnc browser plugin
GNOME_PROJECT= gtk-vnc
GNOME_VERSION= 0.4.1
REVISION= 2
PKGNAME-main= ${DISTNAME}
PKGNAME-plugin= gtk-vnc-plugin-${GNOME_VERSION}
SHARED_LIBS += gtk-vnc-1.0 2.0 # .0.1
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
MODULES= devel/gettext \
lang/python \
x11/gnome
WANTLIB= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
Xi Xinerama Xrandr Xrender atk-1.0 cairo expat fontconfig \
freetype gcrypt gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 \
glib-2.0 gmodule-2.0 gobject-2.0 gpg-error gthread-2.0 \
gtk-x11-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0 \
pcre pixman-1 png tasn1 z pthread-stubs xcb xcb-render \
xcb-render-util
WANTLIB-main= ${WANTLIB} c ffi pthread gnutls.>=13 sasl2.>=2
MULTI_PACKAGES= -main -plugin
BUILD_DEPENDS= ${RUN_DEPENDS}
BUILD_DEPENDS+= :xulrunner-devel->=1.9.1:devel/xulrunner/1.9,-devel
RUN_DEPENDS= ::x11/py-gtk2
LIB_DEPENDS= ::security/gnutls \
::security/cyrus-sasl2
LIB_DEPENDS-plugin= ${LIB_DEPENDS} \
::${BASE_PKGPATH}
WANTLIB-plugin= ${WANTLIB} gvnc-1.0 gtk-vnc-1.0 gnutls sasl2
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--with-examples \
--with-python \
--with-sasl \
--without-libview \
--enable-plugin=yes \
--disable-introspection
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
MOZILLA_PLUGIN_CFLAGS="-I${LOCALBASE}/xulrunner1.9/include/ \
-I${LOCALBASE}/include/nspr" \
MOZILLA_PLUGIN_LIBS="-L${LOCALBASE}/xulrunner1.9"
USE_GROFF = Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gtk-vnc
${INSTALL_DATA} ${WRKSRC}/plugin/README \
${PREFIX}/share/examples/gtk-vnc/README.plugin
.include <bsd.port.mk>