2009-03-28 12:12:21 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2009/03/28 16:12:21 naddy Exp $
|
2008-05-10 04:35:31 -04:00
|
|
|
|
2008-05-13 05:48:55 -04:00
|
|
|
COMMENT-main= VNC viewer widget for GTK
|
|
|
|
COMMENT-plugin= gtk-vnc browser plugin
|
|
|
|
|
2008-12-11 07:36:31 -05:00
|
|
|
V= 0.3.8
|
2008-05-13 05:48:55 -04:00
|
|
|
DISTNAME= gtk-vnc-${V}
|
2009-03-28 12:12:21 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}p0
|
|
|
|
PKGNAME-plugin= gtk-vnc-plugin-${V}p0
|
2008-05-10 04:35:31 -04:00
|
|
|
|
2008-12-11 07:36:31 -05:00
|
|
|
SHARED_LIBS += gtk-vnc-1.0 1.0 # .0.1
|
2008-05-10 04:35:31 -04:00
|
|
|
CATEGORIES= x11 net
|
|
|
|
|
|
|
|
HOMEPAGE= http://gtk-vnc.sourceforge.net/
|
|
|
|
|
2008-11-21 14:31:54 -05:00
|
|
|
# LGPLv2.1
|
2008-05-10 04:35:31 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gtk-vnc/}
|
|
|
|
|
|
|
|
MODULES= devel/gettext \
|
|
|
|
lang/python
|
|
|
|
|
2008-12-11 07:36:31 -05:00
|
|
|
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 glitz 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
|
2008-05-13 05:48:55 -04:00
|
|
|
WANTLIB-main= ${WANTLIB} c pthread
|
|
|
|
|
|
|
|
MULTI_PACKAGES= -main
|
|
|
|
PSEUDO_FLAVORS= no_plugin
|
|
|
|
FLAVOR?=
|
2008-05-10 04:35:31 -04:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
RUN_DEPENDS= ::x11/py-gtk2
|
2008-12-11 07:36:31 -05:00
|
|
|
LIB_DEPENDS= gnutls.>=13::security/gnutls
|
2008-10-21 17:50:29 -04:00
|
|
|
LIB_DEPENDS-plugin= ${LIB_DEPENDS} \
|
|
|
|
gtk-vnc-1.0::${BASE_PKGPATH}
|
2008-05-10 04:35:31 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
USE_X11= Yes
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
2008-05-13 05:48:55 -04:00
|
|
|
CONFIGURE_ARGS= --with-examples \
|
2008-05-10 04:35:31 -04:00
|
|
|
--with-python
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
PYTHON="${MODPY_BIN}"
|
|
|
|
|
2008-05-13 05:48:55 -04:00
|
|
|
.if ${FLAVOR:L:Mno_plugin}
|
|
|
|
CONFIGURE_ARGS+= --enable-plugin=no
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -plugin
|
|
|
|
BUILD_DEPENDS+= ::devel/xulrunner,-devel
|
|
|
|
CONFIGURE_ARGS+= --enable-plugin=yes
|
|
|
|
CONFIGURE_ENV+= MOZILLA_PLUGIN_CFLAGS="-I${LOCALBASE}/xulrunner/include/plugin \
|
|
|
|
-I${LOCALBASE}/xulrunner/include/java \
|
|
|
|
-I${LOCALBASE}/include/nspr" \
|
|
|
|
MOZILLA_PLUGIN_LIBS="-L${LOCALBASE}/xulrunner"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gtk-vnc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/plugin/README \
|
|
|
|
${PREFIX}/share/examples/gtk-vnc/README.plugin
|
|
|
|
|
2008-05-10 04:35:31 -04:00
|
|
|
.include <bsd.port.mk>
|