Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / multimedia / ruby-ming / Makefile
blob131c015dc290d4c9caf707459f29191f4f160652
1 # $NetBSD: Makefile,v 1.18 2012/10/08 09:21:12 asau Exp $
3 DISTNAME= ming-ruby-${VER}
4 PKGNAME= ${RUBY_PKGPREFIX}-ming-${VER}
5 PKGREVISION= 6
6 CATEGORIES= multimedia
7 MASTER_SITES= http://rubyforge.org/frs/download.php/44137/
9 MAINTAINER= obache@NetBSD.org
10 HOMEPAGE= http://mingruby.rubyforge.org/
11 COMMENT= Ruby extension to drive the Ming SWF library
12 LICENSE= gnu-lgpl-v2.1
14 USE_TOOLS+= pax
15 USE_RUBY_SETUP= yes
16 VER= 0.2.1
18 WRKSRC= ${WRKDIR}/ming-ruby
20 REPLACE_RUBY_DIRS= ${WRKSRC}/examples
22 CONFIGURE_ARGS+= --siteruby=${PREFIX}/${RUBY_VENDORLIB_BASE}
23 CONFIGURE_ARGS+= --siterubyver=${PREFIX}/${RUBY_VENDORLIB}
24 CONFIGURE_ARGS+= --siterubyverarch=${PREFIX}/${RUBY_VENDORARCHLIB}
26 INSTALLATION_DIRS+= ${RUBY_EG}/ming
28 pre-configure:
29 ${CHMOD} -x ${WRKSRC}/examples/rubyguts/midnightcommander/ruby.syntax \
30 ${WRKSRC}/examples/rubyguts/railsconnection/index.rhtml
32 post-install:
33 cd ${WRKSRC}/examples && \
34 pax -wrppm '-s|.*/CVS.*$$||' . \
35 ${DESTDIR}${PREFIX}/${RUBY_EG}/ming
37 .include "../../devel/zlib/buildlink3.mk"
38 .include "../../graphics/freetype2/buildlink3.mk"
39 .include "../../graphics/png/buildlink3.mk"
40 .include "../../multimedia/ming/buildlink3.mk"
41 .include "../../mk/giflib.buildlink3.mk"
42 .if defined(GIFLIB_IMPLEMENTATION) && ${GIFLIB_IMPLEMENTATION} != "libungif"
43 SUBST_CLASSES+= giflib
44 SUBST_STAGE.giflib= pre-configure
45 SUBST_FILES.giflib= ext/ming/mingc/extconf.rb
46 SUBST_SED.giflib= -e 's/ungif/gif/g'
47 .endif
48 .include "../../lang/ruby/modules.mk"
49 .include "../../mk/bsd.pkg.mk"