1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Add a WITH_GD2 knob.

Use RUBY_MOD*.
This commit is contained in:
Akinori MUSHA 2002-10-06 21:17:31 +00:00
parent 8dc9b4eb8b
commit cdfc1500dd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=67505
2 changed files with 33 additions and 24 deletions

View File

@ -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

View File

@ -1,16 +1,16 @@
%%RUBY_SITEARCHLIBDIR%%/GD.so
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/gd/example.rb
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/gd/gdtestttf.rb
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/gd/webpng.rb
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/gd
%%PORTDOCS%%%%RUBY_DOCDIR%%/gd/Changes
%%PORTDOCS%%%%RUBY_DOCDIR%%/gd/INSTALL.en
%%PORTDOCS%%%%RUBY_DOCDIR%%/gd/TODO
%%PORTDOCS%%%%RUBY_DOCDIR%%/gd/manual.html
%%PORTDOCS%%%%RUBY_DOCDIR%%/gd/manual.rd
%%PORTDOCS%%%%RUBY_DOCDIR%%/gd/manual_index.html
%%PORTDOCS%%%%RUBY_DOCDIR%%/gd/readme.en
%%PORTDOCS%%%%RUBY_DOCDIR%%/gd/ja/INSTALL.ja
%%PORTDOCS%%%%RUBY_DOCDIR%%/gd/ja/readme.ja
%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/gd/ja
%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/gd
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/example.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/gdtestttf.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/webpng.rb
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/Changes
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/INSTALL.en
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/TODO
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/manual.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/manual.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/manual_index.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/readme.en
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/INSTALL.ja
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/readme.ja
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%