summaryrefslogtreecommitdiff
path: root/graphics/x11rec
diff options
context:
space:
mode:
authorobache <obache>2014-03-15 07:40:59 +0000
committerobache <obache>2014-03-15 07:40:59 +0000
commitcfc910ccd88550d5023e17dd2817a9d79b99df81 (patch)
tree6dc3fe2d61e1b77baf9fd5333d8fc285056baa51 /graphics/x11rec
parent382d96ed65c63722dfa351c3cdefa1d3213fb5e3 (diff)
downloadpkgsrc-cfc910ccd88550d5023e17dd2817a9d79b99df81.tar.gz
Fixes packaging
* just using ruby as a tool, not a module. * missing dependency on xwd and xwininfo for the case X11_TYPE=modular. * fixes prefix of ImageMagick, long term bug since converted dependency from buildlik to simple DEPENDS. Bump PKGREVISION.
Diffstat (limited to 'graphics/x11rec')
-rw-r--r--graphics/x11rec/Makefile19
1 files changed, 15 insertions, 4 deletions
diff --git a/graphics/x11rec/Makefile b/graphics/x11rec/Makefile
index 915b322482f..3e3e7a2e806 100644
--- a/graphics/x11rec/Makefile
+++ b/graphics/x11rec/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.18 2012/10/06 14:11:25 asau Exp $
+# $NetBSD: Makefile,v 1.19 2014/03/15 07:40:59 obache Exp $
#
DISTNAME= x11rec-0.3
-PKGREVISION= 7
+PKGNAME= ${RUBY_PKGPREFIX}-x11rec-0.3
+PKGREVISION= 8
CATEGORIES= graphics ruby
MASTER_SITES= http://0xcc.net/x11rec/
@@ -14,6 +15,12 @@ LICENSE= gnu-gpl-v2
DEPENDS+= gifsicle-[0-9]*:../../graphics/gifsicle
DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick
+.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
@@ -28,7 +35,11 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/x11rec-ja.html \
${DESTDIR}${PREFIX}/share/doc/x11rec/index.html.ja
-.include "../../lang/ruby/modules.mk"
+.include "../../lang/ruby/replace.mk"
+
+FIND_PREFIX:= BUILDLINK_PREFIX.ImageMagick=ImageMagick \
+ BUILDLINK_PREFIX.gifsicle=gifsicle
+.include "../../mk/find-prefix.mk"
SUBST_CLASSES+= toolpath
SUBST_STAGE.toolpath= pre-configure
@@ -37,6 +48,6 @@ 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@|${PREFIX}/bin/gifsicle|"
+SUBST_SED.toolpath+= -e "s|@gifsicle@|${BUILDLINK_PREFIX.gifsicle}/bin/gifsicle|"
.include "../../mk/bsd.pkg.mk"