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}
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
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
29 ${CHMOD} -x
${WRKSRC}/examples
/rubyguts
/midnightcommander
/ruby.syntax \
30 ${WRKSRC}/examples
/rubyguts
/railsconnection
/index.rhtml
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'
48 .
include "../../lang/ruby/modules.mk"
49 .
include "../../mk/bsd.pkg.mk"