blob: eedd0a80b28da7ed12cfc5edb731abff06142c52 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= rmagick
PORTVERSION= 2.13.2
CATEGORIES= graphics ruby
MASTER_SITES= RF
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= RMagick-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= ruby@FreeBSD.org
COMMENT= Ruby binding for ImageMagick
BROKEN= not staged
OPTIONS_DEFINE= X11
OPTIONS_DEFAULT= X11
OPTIONSFILE?= ${PORT_DBDIR}/ruby-${PORTNAME}/options
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MX11}
LIB_DEPENDS= MagickWand:${PORTSDIR}/graphics/ImageMagick
.else
LIB_DEPENDS= MagickWand:${PORTSDIR}/graphics/ImageMagick-nox11
.endif
USE_BZIP2= yes
USE_RUBY= yes
USE_RUBY_SETUP= yes
RUBY_SETUP= setup.rb
CONFIGURE_ENV= RUBY="${RUBY}"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --doc-dir="${RUBY_MODDOCDIR}" --prefix="${PREFIX}" \
--allow-example-errors
.if defined(NOPORTDOCS)
CONFIGURE_ARGS+= --disable-htmldoc
.endif
DOCS= ChangeLog README.html
.include <bsd.port.pre.mk>
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
@${MKDIR} ${RUBY_MODEXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${RUBY_MODEXAMPLESDIR}/
#
# Files installed in /ex may vary over different archs
#
@${FIND} ${RUBY_MODDOCDIR}/ex/ ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${RUBY_MODDOCDIR}/ex/ -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm ${RUBY_MODDOCDIR:S,^${PREFIX}/,,}" >> ${TMPPLIST}
.endif
.include <bsd.port.post.mk>
|