mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Update to 0.7.2, which now supports GD 1.8.4 with FreeType 2.x support.
This commit is contained in:
parent
5d4deb643b
commit
496c578340
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38248
@ -6,16 +6,17 @@
|
||||
#
|
||||
|
||||
PORTNAME= GD
|
||||
PORTVERSION= 0.7.1
|
||||
PORTVERSION= 0.7.2
|
||||
CATEGORIES= graphics ruby
|
||||
MASTER_SITES= http://kirara.prec.kyoto-u.ac.jp/~tam/GD/
|
||||
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
||||
PKGNAMESUFFIX= ${PKGNAMESUFFIX_XPM}
|
||||
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
|
||||
DIST_SUBDIR= ruby
|
||||
|
||||
MAINTAINER= knu@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= gd.1:${PORTSDIR}/graphics/gd
|
||||
LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd
|
||||
|
||||
USE_RUBY= yes
|
||||
USE_RUBY_EXTCONF= yes
|
||||
@ -23,7 +24,8 @@ USE_RUBY_EXTCONF= yes
|
||||
USE_RUBY_RD= yes
|
||||
.endif
|
||||
|
||||
CONFIGURE_ARGS= --with-gd-include="${LOCALBASE}/include/gd" --with-jpeg
|
||||
CONFIGURE_ARGS= --with-gd-include="${LOCALBASE}/include/gd" --with-jpeg \
|
||||
--with-freetype
|
||||
INSTALL_TARGET= site-install
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
@ -32,19 +34,17 @@ INSTALL_TARGET= site-install
|
||||
.if exists(${LOCALBASE}/bin/gd2topng)
|
||||
WITH_X11_CHECK!= ldd ${LOCALBASE}/bin/gd2topng | grep -w 'libX11\.so' || true
|
||||
.else
|
||||
WITH_X11_CHECK= #empty
|
||||
WITH_X11_CHECK= # empty
|
||||
.endif
|
||||
|
||||
.if !empty(WITH_X11_CHECK)
|
||||
USE_XLIB= yes
|
||||
USE_XPM= yes
|
||||
USE_FREETYPE= yes
|
||||
|
||||
CONFIGURE_ARGS+= --with-x-dir="${X11BASE}" --with-xpm --with-ttf
|
||||
PKGNAMESUFFIX_XPM= +xpm
|
||||
CONFIGURE_ARGS+= --with-x-dir="${X11BASE}" --with-xpm
|
||||
.endif
|
||||
|
||||
EXAMPLES_EN= example.rb \
|
||||
gdtestttf.png \
|
||||
gdtestttf.rb \
|
||||
webpng.rb
|
||||
DOCS_EN= Changes \
|
||||
@ -82,6 +82,9 @@ TUTORIAL_JA= gd_intro-ja.html \
|
||||
imgs/top.png \
|
||||
imgs/xpy.png
|
||||
|
||||
post-patch:
|
||||
${RUBY} -i -pe 'sub %r:/win98/windows/FONTS:, "${X11BASE}/lib/X11/fonts/TrueType"' ${WRKSRC}/sample/gdtestttf.rb
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${RUBY_EXAMPLESDIR}/gd
|
||||
|
@ -1 +1 @@
|
||||
MD5 (ruby/ruby-GD-0.7.1.tar.gz) = ed788e4adba576b6d5fe139a92c0e9ff
|
||||
MD5 (ruby/ruby-GD-0.7.2.tar.gz) = 6a514c0bd7658823e196a2b775ddd12d
|
||||
|
30
graphics/ruby-gd/files/patch-GD.c
Normal file
30
graphics/ruby-gd/files/patch-GD.c
Normal file
@ -0,0 +1,30 @@
|
||||
--- GD.c.orig Tue Feb 6 15:47:42 2001
|
||||
+++ GD.c Mon Feb 12 19:39:15 2001
|
||||
@@ -1200,7 +1200,7 @@
|
||||
Check_Type(fontname, T_STRING);
|
||||
Check_Type(string, T_STRING);
|
||||
|
||||
- msg = gdImageStringTTF(NULL,
|
||||
+ msg = gdImageStringFT(NULL,
|
||||
&brect[0],
|
||||
NUM2INT(fgcolor),
|
||||
RSTRING(fontname)->ptr,
|
||||
@@ -1232,7 +1232,7 @@
|
||||
Check_Type(string, T_STRING);
|
||||
|
||||
Data_Get_Struct(img, gdImage, im);
|
||||
- msg = gdImageStringTTF(im,
|
||||
+ msg = gdImageStringFT(im,
|
||||
&brect[0],
|
||||
NUM2INT(fgcolor),
|
||||
RSTRING(fontname)->ptr,
|
||||
@@ -1971,7 +1971,9 @@
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GDIMAGESTRINGFT
|
||||
+ rb_define_singleton_method(cImage, "stringTTF", img_s_string_ft, 7);
|
||||
rb_define_singleton_method(cImage, "stringFT", img_s_string_ft, 7);
|
||||
+ rb_define_method(cImage, "stringTTF", img_string_ft, 7);
|
||||
rb_define_method(cImage, "stringFT", img_string_ft, 7);
|
||||
#endif
|
||||
|
@ -1,6 +1,5 @@
|
||||
%%RUBY_SITEARCHLIBDIR%%/GD.so
|
||||
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/gd/example.rb
|
||||
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/gd/gdtestttf.png
|
||||
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/gd/gdtestttf.rb
|
||||
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/gd/webpng.rb
|
||||
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/gd
|
||||
|
Loading…
Reference in New Issue
Block a user