freebsd-ports/graphics/ruby-rmagick/Makefile

66 lines
1.6 KiB
Makefile
Raw Normal View History

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= rmagick
2010-04-07 21:47:46 +02:00
PORTVERSION= 2.13.1
PORTREVISION= 4
CATEGORIES= graphics ruby
2010-06-07 22:48:42 +02:00
MASTER_SITES= RF
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
2003-08-09 21:57:06 +02:00
DISTNAME= RMagick-${PORTVERSION}
DIST_SUBDIR= ruby
2003-07-29 08:54:09 +02:00
MAINTAINER= ruby@FreeBSD.org
2003-02-18 06:20:09 +01:00
COMMENT= A Ruby binding for ImageMagick
OPTIONS_DEFINE= X11
OPTIONS_DEFAULT= X11
OPTIONSFILE?= ${PORT_DBDIR}/ruby-${PORTNAME}/options
.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
2003-06-26 06:16:01 +02:00
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}
2003-06-26 06:16:01 +02:00
${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>