1 # $NetBSD: Makefile,v 1.11 2008/05/26 02:13:20 joerg Exp $
4 DISTNAME= vnc2swf-0.5.0
7 MASTER_SITES= http://www.unixuser.org/~euske/vnc2swf/
9 MAINTAINER= obache@NetBSD.org
10 HOMEPAGE= http://www.unixuser.org/~euske/vnc2swf/
11 COMMENT= Record vnc session as flash movie
13 PKG_DESTDIR_SUPPORT= user-destdir
15 .include "../../mk/bsd.fast.prefs.mk"
17 DEPENDS+= x11vnc-[0-9]*:../../x11/x11vnc
18 .if !exists(${X11BASE}/bin/xwininfo)
19 DEPENDS+= xwininfo-[0-9]*:../../x11/xwininfo
27 INSTALLATION_DIRS= bin lib/X11/app-defaults share/doc/html/vnc2swf
29 SUBST_CLASSES+= x11base
30 SUBST_STAGE.x11base= pre-configure
31 SUBST_MESSAGE.x11base= Change X11base to ${PREFIX} in Makefile
32 SUBST_FILES.x11base= Makefile.in
33 SUBST_SED.x11base= -e "s|/usr/X11R6|${PREFIX}|"
35 SUBST_CLASSES+= toolpath
36 SUBST_STAGE.toolpath= pre-configure
37 SUBST_FILES.toolpath= recordwin.sh
38 SUBST_SED.toolpath= -e "s|VNC2SWF=vnc2swf|VNC2SWF=${PREFIX}/bin/vnc2swf|" \
39 -e "s|X11VNC=x11vnc|X11VNC=${PREFIX}/bin/x11vnc|" \
40 -e "s|XWININFO=xwininfo|XWININFO=${X11BASE}/bin/xwininfo|" \
41 -e "s|AWK=awk|AWK=${AWK}|" \
42 -e 's|-mouse|-localhost|'
44 ${INSTALL_DATA} ${WRKSRC}/Vnc2Swf.ad ${DESTDIR}${PREFIX}/lib/X11/app-defaults/Vnc2Swf
45 cd ${WRKSRC}/docs && \
46 pax -rw -pp -pm . ${DESTDIR}${PREFIX}/share/doc/html/vnc2swf
48 .include "../../devel/zlib/buildlink3.mk"
49 .include "../../x11/libXaw/buildlink3.mk"
50 .include "../../mk/bsd.pkg.mk"