2012-12-13 15:14:18 +01:00
|
|
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
2002-11-24 04:31:25 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2003-01-31 09:45:29 +01:00
|
|
|
PORTNAME= rmagick
|
2010-04-07 21:47:46 +02:00
|
|
|
PORTVERSION= 2.13.1
|
2012-12-13 15:14:18 +01:00
|
|
|
PORTREVISION= 4
|
2002-11-24 04:31:25 +01:00
|
|
|
CATEGORIES= graphics ruby
|
2010-06-07 22:48:42 +02:00
|
|
|
MASTER_SITES= RF
|
2002-11-24 04:31:25 +01:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2003-08-09 21:57:06 +02:00
|
|
|
DISTNAME= RMagick-${PORTVERSION}
|
2002-11-24 04:31:25 +01:00
|
|
|
DIST_SUBDIR= ruby
|
2003-07-29 08:54:09 +02:00
|
|
|
|
2011-11-01 23:59:35 +01:00
|
|
|
MAINTAINER= ruby@FreeBSD.org
|
2003-02-18 06:20:09 +01:00
|
|
|
COMMENT= A Ruby binding for ImageMagick
|
2002-11-24 04:31:25 +01:00
|
|
|
|
2013-06-01 23:52:19 +02:00
|
|
|
OPTIONS_DEFINE= X11
|
|
|
|
OPTIONS_DEFAULT= X11
|
|
|
|
|
|
|
|
OPTIONSFILE?= ${PORT_DBDIR}/ruby-${PORTNAME}/options
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2012-12-13 15:14:18 +01:00
|
|
|
LIB_DEPENDS= MagickWand:${PORTSDIR}/graphics/ImageMagick
|
2013-06-01 23:52:19 +02:00
|
|
|
.else
|
|
|
|
LIB_DEPENDS= MagickWand:${PORTSDIR}/graphics/ImageMagick-nox11
|
|
|
|
.endif
|
2008-04-30 11:11:38 +02:00
|
|
|
|
2005-07-21 16:47:53 +02:00
|
|
|
USE_BZIP2= yes
|
2002-11-24 04:31:25 +01:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_SETUP= yes
|
2006-05-27 22:18:03 +02:00
|
|
|
RUBY_SETUP= setup.rb
|
2002-11-24 04:31:25 +01:00
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV= RUBY="${RUBY}"
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2009-02-21 12:00:29 +01:00
|
|
|
CONFIGURE_ARGS= --doc-dir="${RUBY_MODDOCDIR}" --prefix="${PREFIX}" \
|
|
|
|
--allow-example-errors
|
2006-06-14 08:49:18 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
CONFIGURE_ARGS+= --disable-htmldoc
|
|
|
|
.endif
|
2003-01-31 09:45:29 +01:00
|
|
|
|
2003-06-26 06:16:01 +02:00
|
|
|
DOCS= ChangeLog README.html
|
2003-01-31 09:45:29 +01:00
|
|
|
|
2005-01-02 02:27:36 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-11-24 04:31:25 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2006-05-27 22:18:03 +02:00
|
|
|
@${MKDIR} ${RUBY_MODDOCDIR}
|
2002-11-24 04:31:25 +01:00
|
|
|
.for f in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
|
|
|
.endfor
|
2006-05-27 22:18:03 +02:00
|
|
|
@${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
2003-06-26 06:16:01 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${RUBY_MODEXAMPLESDIR}/
|
2006-10-01 21:38:51 +02:00
|
|
|
#
|
|
|
|
# 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}
|
2002-11-24 04:31:25 +01:00
|
|
|
.endif
|
|
|
|
|
2005-01-02 02:27:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|