| @@ -1,42 +1,53 @@ | | | @@ -1,42 +1,53 @@ |
1 | # $NetBSD: Makefile,v 1.18 2012/10/06 14:11:25 asau Exp $ | | 1 | # $NetBSD: Makefile,v 1.19 2014/03/15 07:40:59 obache Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= x11rec-0.3 | | 4 | DISTNAME= x11rec-0.3 |
5 | PKGREVISION= 7 | | 5 | PKGNAME= ${RUBY_PKGPREFIX}-x11rec-0.3 |
| | | 6 | PKGREVISION= 8 |
6 | CATEGORIES= graphics ruby | | 7 | CATEGORIES= graphics ruby |
7 | MASTER_SITES= http://0xcc.net/x11rec/ | | 8 | MASTER_SITES= http://0xcc.net/x11rec/ |
8 | | | 9 | |
9 | MAINTAINER= obache@NetBSD.org | | 10 | MAINTAINER= obache@NetBSD.org |
10 | HOMEPAGE= http://0xcc.net/x11rec/ | | 11 | HOMEPAGE= http://0xcc.net/x11rec/ |
11 | COMMENT= Very ad hoc X11 recorder which create a movie | | 12 | COMMENT= Very ad hoc X11 recorder which create a movie |
12 | LICENSE= gnu-gpl-v2 | | 13 | LICENSE= gnu-gpl-v2 |
13 | | | 14 | |
14 | DEPENDS+= gifsicle-[0-9]*:../../graphics/gifsicle | | 15 | DEPENDS+= gifsicle-[0-9]*:../../graphics/gifsicle |
15 | DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick | | 16 | DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick |
16 | | | 17 | |
| | | 18 | .include "../../mk/bsd.prefs.mk" |
| | | 19 | .if ${X11_TYPE} == "modular" |
| | | 20 | DEPENDS+= xwd-[0-9]*:../../x11/xwd |
| | | 21 | DEPENDS+= xwininfo-[0-9]*:../../x11/xwininfo |
| | | 22 | .endif |
| | | 23 | |
17 | CONFLICTS+= ruby[1-9][0-9]-x11rec-[0-9]* x11rec-[0-9]* | | 24 | CONFLICTS+= ruby[1-9][0-9]-x11rec-[0-9]* x11rec-[0-9]* |
18 | | | 25 | |
19 | NO_BUILD= yes | | 26 | NO_BUILD= yes |
20 | REPLACE_RUBY= x11rec | | 27 | REPLACE_RUBY= x11rec |
21 | | | 28 | |
22 | INSTALLATION_DIRS= bin share/doc/x11rec | | 29 | INSTALLATION_DIRS= bin share/doc/x11rec |
23 | | | 30 | |
24 | do-install: | | 31 | do-install: |
25 | ${INSTALL_SCRIPT} ${WRKSRC}/x11rec ${DESTDIR}${PREFIX}/bin | | 32 | ${INSTALL_SCRIPT} ${WRKSRC}/x11rec ${DESTDIR}${PREFIX}/bin |
26 | ${INSTALL_DATA} ${WRKSRC}/x11rec-en.html \ | | 33 | ${INSTALL_DATA} ${WRKSRC}/x11rec-en.html \ |
27 | ${DESTDIR}${PREFIX}/share/doc/x11rec/index.html.en | | 34 | ${DESTDIR}${PREFIX}/share/doc/x11rec/index.html.en |
28 | ${INSTALL_DATA} ${WRKSRC}/x11rec-ja.html \ | | 35 | ${INSTALL_DATA} ${WRKSRC}/x11rec-ja.html \ |
29 | ${DESTDIR}${PREFIX}/share/doc/x11rec/index.html.ja | | 36 | ${DESTDIR}${PREFIX}/share/doc/x11rec/index.html.ja |
30 | | | 37 | |
31 | .include "../../lang/ruby/modules.mk" | | 38 | .include "../../lang/ruby/replace.mk" |
| | | 39 | |
| | | 40 | FIND_PREFIX:= BUILDLINK_PREFIX.ImageMagick=ImageMagick \ |
| | | 41 | BUILDLINK_PREFIX.gifsicle=gifsicle |
| | | 42 | .include "../../mk/find-prefix.mk" |
32 | | | 43 | |
33 | SUBST_CLASSES+= toolpath | | 44 | SUBST_CLASSES+= toolpath |
34 | SUBST_STAGE.toolpath= pre-configure | | 45 | SUBST_STAGE.toolpath= pre-configure |
35 | SUBST_MESSAGE.toolpath= Fixing paths. | | 46 | SUBST_MESSAGE.toolpath= Fixing paths. |
36 | SUBST_FILES.toolpath= x11rec | | 47 | SUBST_FILES.toolpath= x11rec |
37 | SUBST_SED.toolpath= -e "s|@xwininfo@|${X11BASE}/bin/xwininfo|" | | 48 | SUBST_SED.toolpath= -e "s|@xwininfo@|${X11BASE}/bin/xwininfo|" |
38 | SUBST_SED.toolpath+= -e "s|@xwd@|${X11BASE}/bin/xwd|" | | 49 | SUBST_SED.toolpath+= -e "s|@xwd@|${X11BASE}/bin/xwd|" |
39 | SUBST_SED.toolpath+= -e "s|@convert@|${BUILDLINK_PREFIX.ImageMagick}/bin/convert|" | | 50 | SUBST_SED.toolpath+= -e "s|@convert@|${BUILDLINK_PREFIX.ImageMagick}/bin/convert|" |
40 | SUBST_SED.toolpath+= -e "s|@gifsicle@|${PREFIX}/bin/gifsicle|" | | 51 | SUBST_SED.toolpath+= -e "s|@gifsicle@|${BUILDLINK_PREFIX.gifsicle}/bin/gifsicle|" |
41 | | | 52 | |
42 | .include "../../mk/bsd.pkg.mk" | | 53 | .include "../../mk/bsd.pkg.mk" |