blob: c7ae12d0dc1ace908f8ab7a172414fe92b72bea7 (
plain) (
blame)
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
|
# New ports collection makefile for: RMagick
# Date created: 16 November 2002
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= rmagick
PORTVERSION= 1.12.0
CATEGORIES= graphics ruby
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= RMagick-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= ports@FreeBSD.org
COMMENT= A Ruby binding for ImageMagick
USE_BZIP2= yes
USE_RUBY= yes
USE_RUBY_SETUP= yes
RUBY_SETUP= setup.rb
CONFIGURE_ENV= CFLAGS="${CFLAGS}" \
CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -I${X11BASE}/lib" \
RUBY="${RUBY}"
CONFIGURE_ARGS= --doc-dir="${RUBY_MODDOCDIR}"
.if defined(NOPORTDOCS)
CONFIGURE_ARGS+= --disable-htmldoc
.endif
OPTIONSFILE?= ${PORT_DBDIR}/${DIST_SUBDIR}-${PORTNAME}/options
OPTIONS= GRAPHICSMAGICK "Use GraphicsMagick instead of ImageMagick" Off
DOCS= ChangeLog README.html
.include <bsd.port.pre.mk>
.if defined(WITH_GRAPHICSMAGICK)
LIB_DEPENDS+= GraphicsMagick.1:${PORTSDIR}/graphics/GraphicsMagick
.else
LIB_DEPENDS+= Magick.10:${PORTSDIR}/graphics/ImageMagick
.endif
pre-configure:
cd ${CONFIGURE_WRKSRC}; \
${SETENV} ${CONFIGURE_ENV} ./configure --prefix="${PREFIX}"
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}/
.endif
.include <bsd.port.post.mk>
|