2002-11-24 04:31:25 +01:00
|
|
|
# New ports collection makefile for: RMagick
|
|
|
|
# Date created: 16 November 2002
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2003-01-31 09:45:29 +01:00
|
|
|
PORTNAME= rmagick
|
2010-04-07 21:47:46 +02:00
|
|
|
PORTVERSION= 2.13.1
|
2010-07-24 21:49:59 +02:00
|
|
|
PORTREVISION= 1
|
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
|
|
|
|
2006-10-01 21:38:51 +02:00
|
|
|
MAINTAINER= stas@FreeBSD.org
|
2003-02-18 06:20:09 +01:00
|
|
|
COMMENT= A Ruby binding for ImageMagick
|
2002-11-24 04:31:25 +01:00
|
|
|
|
2010-07-24 21:49:59 +02:00
|
|
|
LIB_DEPENDS= MagickWand.4:${PORTSDIR}/graphics/ImageMagick
|
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
|
|
|
|
2004-12-25 19:19:35 +01:00
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS}" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
2003-01-31 09:45:29 +01:00
|
|
|
RUBY="${RUBY}"
|
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>
|