summaryrefslogtreecommitdiff
path: root/graphics/x11rec/Makefile
blob: f20679c5be465cfeff2d5572211d115ffb5cc322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $NetBSD: Makefile,v 1.26 2017/11/23 17:19:58 wiz Exp $
#

DISTNAME=	x11rec-0.3
PKGNAME=	${RUBY_PKGPREFIX}-x11rec-0.3
PKGREVISION=	13
CATEGORIES=	graphics ruby
MASTER_SITES=	http://0xcc.net/x11rec/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://0xcc.net/x11rec/
COMMENT=	Very ad hoc X11 recorder which create a movie
LICENSE=	gnu-gpl-v2

DEPENDS+=	gifsicle-[0-9]*:../../graphics/gifsicle

.include "../../mk/bsd.prefs.mk"
.if ${X11_TYPE} == "modular"
DEPENDS+=	xwd-[0-9]*:../../x11/xwd
DEPENDS+=	xwininfo-[0-9]*:../../x11/xwininfo
.endif

CONFLICTS+=	ruby[1-9][0-9]-x11rec-[0-9]* x11rec-[0-9]*

NO_BUILD=	yes
REPLACE_RUBY=	x11rec

INSTALLATION_DIRS=	bin share/doc/x11rec

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/x11rec ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/x11rec-en.html \
		${DESTDIR}${PREFIX}/share/doc/x11rec/index.html.en
	${INSTALL_DATA} ${WRKSRC}/x11rec-ja.html \
		${DESTDIR}${PREFIX}/share/doc/x11rec/index.html.ja

.include "../../lang/ruby/replace.mk"
DEPENDS+=	${RUBY_BASE}-[0-9]*:${RUBY_SRCDIR}

SUBST_CLASSES+=		toolpath
SUBST_STAGE.toolpath=	pre-configure
SUBST_MESSAGE.toolpath=	Fixing paths.
SUBST_FILES.toolpath=	x11rec
SUBST_SED.toolpath=	-e "s|@xwininfo@|${X11BASE}/bin/xwininfo|"
SUBST_SED.toolpath+=	-e "s|@xwd@|${X11BASE}/bin/xwd|"
SUBST_SED.toolpath+=	-e "s|@convert@|${BUILDLINK_PREFIX.ImageMagick}/bin/convert|"
SUBST_SED.toolpath+=	-e "s|@gifsicle@|${LOCALBASE}/bin/gifsicle|"

.include "../../graphics/ImageMagick/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"