[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / graphics / vnc2swf

File: [cvs.NetBSD.org] / pkgsrc / graphics / vnc2swf / Makefile (download)

Revision 1.20, Sun Mar 15 17:41:59 2015 UTC (4 years, 7 months ago) by hiramatsu
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-, HEAD
Changes since 1.19: +2 -2 lines

Set MAINTAINER to pkgsrc-users.

# $NetBSD: Makefile,v 1.20 2015/03/15 17:41:59 hiramatsu Exp $
#

DISTNAME=		vnc2swf-0.5.0
PKGREVISION=		4
CATEGORIES=		graphics
MASTER_SITES=		http://www.unixuser.org/~euske/vnc2swf/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.unixuser.org/~euske/vnc2swf/
COMMENT=		Record vnc session as flash movie
LICENSE=		gnu-gpl-v2

.include "../../mk/bsd.fast.prefs.mk"

DEPENDS+=		x11vnc-[0-9]*:../../x11/x11vnc
.if ${X11_TYPE} == "modular" || !exists(${X11BASE}/bin/xwininfo)
DEPENDS+=		xwininfo-[0-9]*:../../x11/xwininfo
.endif

GNU_CONFIGURE=		yes
USE_LANGUAGES=		c c++

USE_TOOLS+=	pax

LDFLAGS.SunOS+=	-lsocket -lnsl

INSTALLATION_DIRS=	bin lib/X11/app-defaults share/doc/vnc2swf

SUBST_CLASSES+=		x11base
SUBST_STAGE.x11base=	pre-configure
SUBST_MESSAGE.x11base=	Change X11base to ${PREFIX} in Makefile
SUBST_FILES.x11base=	Makefile.in
SUBST_SED.x11base=	-e "s|/usr/X11R6|${PREFIX}|"

SUBST_CLASSES+=		toolpath
SUBST_STAGE.toolpath=	pre-configure
SUBST_FILES.toolpath=	recordwin.sh
SUBST_SED.toolpath=	-e "s|VNC2SWF=vnc2swf|VNC2SWF=${PREFIX}/bin/vnc2swf|"
SUBST_SED.toolpath+=	-e "s|X11VNC=x11vnc|X11VNC=${PREFIX}/bin/x11vnc|"
SUBST_SED.toolpath+=	-e "s|XWININFO=xwininfo|XWININFO=${X11BASE}/bin/xwininfo|"
SUBST_SED.toolpath+=	-e "s|AWK=awk|AWK=${AWK}|"
SUBST_SED.toolpath+=	-e 's|-mouse|-localhost|'

post-install:
	${INSTALL_DATA} ${WRKSRC}/Vnc2Swf.ad ${DESTDIR}${PREFIX}/lib/X11/app-defaults/Vnc2Swf
	cd ${WRKSRC}/docs && \
	pax -rw -pp -pm . ${DESTDIR}${PREFIX}/share/doc/vnc2swf

.include "../../devel/zlib/buildlink3.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"