aboutsummaryrefslogtreecommitdiff
path: root/graphics/ruby-gd/Makefile
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-10-06 21:17:31 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-10-06 21:17:31 +0000
commitcdfc1500dd78bc6f016bf33e2cfd1559b98e7234 (patch)
tree4519055c08281abb237997c2ad1874e7370a91c0 /graphics/ruby-gd/Makefile
parent8dc9b4eb8bca30bf9b923f84ff86bb439204854d (diff)
Notes
Diffstat (limited to 'graphics/ruby-gd/Makefile')
-rw-r--r--graphics/ruby-gd/Makefile27
1 files changed, 18 insertions, 9 deletions
diff --git a/graphics/ruby-gd/Makefile b/graphics/ruby-gd/Makefile
index 8b329b5fd347..e5c0b067f118 100644
--- a/graphics/ruby-gd/Makefile
+++ b/graphics/ruby-gd/Makefile
@@ -17,19 +17,28 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd \
- freetype.9:${PORTSDIR}/print/freetype2
+LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
USE_RUBY_RDTOOL= yes
-CONFIGURE_ARGS= --with-gd-include="${LOCALBASE}/include/gd" \
- --with-gd-lib="${LOCALBASE}/lib" \
+RUBY_MODNAME= ${PORTNAME:L}
+
+CONFIGURE_ARGS= --with-gd-lib="${LOCALBASE}/lib" \
--with-jpeg \
--with-freetype
INSTALL_TARGET= site-install
+.if defined(WITH_GD2)
+CONFIGURE_ARGS+= ----enable-gd2_0 \
+ --with-gd-include="${LOCALBASE}/include"
+LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd
+.else
+CONFIGURE_ARGS+= --with-gd-include="${LOCALBASE}/include/gd"
+LIB_DEPENDS+= gd.2:${PORTSDIR}/graphics/gd
+.endif
+
.include <bsd.port.pre.mk>
# Hmm, GREP and TRUE seem to be defined in the bsd.port.post.mk stage.
@@ -64,16 +73,16 @@ post-patch:
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${RUBY_EXAMPLESDIR}/gd
+ ${MKDIR} ${RUBY_MODEXAMPLESDIR}
.for f in ${EXAMPLES_EN}
- ${INSTALL_DATA} ${WRKSRC}/sample/${f} ${RUBY_EXAMPLESDIR}/gd/
+ ${INSTALL_DATA} ${WRKSRC}/sample/${f} ${RUBY_MODEXAMPLESDIR}/
.endfor
- ${MKDIR} ${RUBY_DOCDIR}/gd/ja
+ ${MKDIR} ${RUBY_MODDOCDIR}/ja
.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/gd/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.for f in ${DOCS_JA}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/gd/ja/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
.endif