blob: 86876559583adea8aab7d889b9eafcaa963a135c (
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
|
# $NetBSD: Makefile,v 1.25 2014/09/28 03:00:45 obache Exp $
DISTNAME= ming-ruby-${VER}
PKGNAME= ${RUBY_PKGPREFIX}-ming-${VER}
PKGREVISION= 11
CATEGORIES= multimedia
MASTER_SITES= http://rubyforge.org/frs/download.php/44137/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mingruby.rubyforge.org/
COMMENT= Ruby extension to drive the Ming SWF library
LICENSE= gnu-lgpl-v2.1
USE_TOOLS+= pax
USE_RUBY_SETUP= yes
VER= 0.2.1
WRKSRC= ${WRKDIR}/ming-ruby
REPLACE_RUBY_DIRS= ${WRKSRC}/examples
CONFIGURE_ARGS+= --siteruby=${PREFIX}/${RUBY_VENDORLIB_BASE}
CONFIGURE_ARGS+= --siterubyver=${PREFIX}/${RUBY_VENDORLIB}
CONFIGURE_ARGS+= --siterubyverarch=${PREFIX}/${RUBY_VENDORARCHLIB}
SUBST_CLASSES+= giflib
SUBST_STAGE.giflib= pre-configure
SUBST_FILES.giflib= ext/ming/mingc/extconf.rb
SUBST_SED.giflib= -e 's/ungif/gif/g'
INSTALLATION_DIRS+= ${RUBY_EG}/ming
pre-configure:
${CHMOD} -x ${WRKSRC}/examples/rubyguts/midnightcommander/ruby.syntax \
${WRKSRC}/examples/rubyguts/railsconnection/index.rhtml
post-install:
cd ${WRKSRC}/examples && \
pax -wrppm '-s|.*/CVS.*$$||' . \
${DESTDIR}${PREFIX}/${RUBY_EG}/ming
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../multimedia/ming/buildlink3.mk"
.include "../../graphics/giflib/buildlink3.mk"
.include "../../lang/ruby/modules.mk"
.include "../../mk/bsd.pkg.mk"
|