60 lines
1.5 KiB
Makefile
60 lines
1.5 KiB
Makefile
# New ports collection makefile for: RMagick
|
|
# Date created: 16 November 2002
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= rmagick
|
|
PORTVERSION= 2.13.1
|
|
PORTREVISION= 0
|
|
CATEGORIES= graphics ruby
|
|
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DISTNAME= RMagick-${PORTVERSION}
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= stas@FreeBSD.org
|
|
COMMENT= A Ruby binding for ImageMagick
|
|
|
|
LIB_DEPENDS= MagickWand.3:${PORTSDIR}/graphics/ImageMagick
|
|
|
|
USE_BZIP2= yes
|
|
USE_RUBY= yes
|
|
USE_RUBY_SETUP= yes
|
|
RUBY_SETUP= setup.rb
|
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS}" \
|
|
CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
RUBY="${RUBY}"
|
|
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>
|