FreeBSD Bugzilla – Attachment 102915 Details for
Bug 142748
[PATCH]x11-toolkits/p5-Tk: miscellaneous fixes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 3.13 KB, created by
bf
on 2010-01-12 17:00:09 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
bf
Created:
2010-01-12 17:00:09 UTC
Size:
3.13 KB
patch
obsolete
>diff -ruN p5-Tk.orig/Makefile p5-Tk/Makefile >--- p5-Tk.orig/Makefile 2010-01-12 10:42:31.000000000 -0500 >+++ p5-Tk/Makefile 2010-01-12 10:39:02.000000000 -0500 >@@ -16,6 +16,8 @@ > > MAKE_JOBS_UNSAFE= yes > >+LIB_DEPENDS= jpeg.10:${PORTSDIR}/graphics/jpeg \ >+ png.5:${PORTSDIR}/graphics/png > PERL_CONFIGURE= 5.8.0+ > USE_XORG= x11 > CONFIGURE_ARGS= X11LIB=${LOCALBASE}/lib X11INC=${LOCALBASE}/include >@@ -146,7 +148,7 @@ > > .if defined(WITH_XFT) > CONFIGURE_ARGS= XFT=1 >-LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft >+USE_XORG+= xft > .endif > > .if !defined(WITH_XFT) >@@ -159,13 +161,17 @@ > .endif > > post-patch: >- @${PERL} -i -p -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ >- ${WRKSRC}/pTk/Makefile.PL >+ @${PERL} -i -p -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ >+ ${WRKSRC}/pTk/Makefile.PL \ >+ ${WRKSRC}/JPEG/Makefile.PL \ >+ ${WRKSRC}/PNG/Makefile.PL > > post-configure: > @${PERL} -i -p \ > -e 's|^(CC = ).*|$$1 ${CC}|;' \ >- -e 's|^(CCFLAGS = ).*|$$1 ${CFLAGS}|' \ >+ -e 's|^(CCFLAGS = ).*|$$1 ${CFLAGS}|;' \ >+ -e 's|^(LD = ).*|$$1 ${CC} ${CFLAGS} ${LDFLAGS}|;' \ >+ -e 's|^(FULL_AR = ).*|$$1 ${AR}|' \ > `${FIND} ${WRKSRC} -name Makefile` > > .include <bsd.port.post.mk> >diff -ruN p5-Tk.orig/files/patch-JPEG_Makefile.PL p5-Tk/files/patch-JPEG_Makefile.PL >--- p5-Tk.orig/files/patch-JPEG_Makefile.PL 1969-12-31 19:00:00.000000000 -0500 >+++ p5-Tk/files/patch-JPEG_Makefile.PL 2010-01-12 08:35:18.000000000 -0500 >@@ -0,0 +1,16 @@ >+--- JPEG/Makefile.PL.orig 2010-01-12 08:28:55.000000000 -0500 >++++ JPEG/Makefile.PL 2010-01-12 08:32:23.000000000 -0500 >+@@ -13,10 +13,10 @@ >+ >+ use Tk::MMtry; >+ >+-if ($Tk::MMtry::VERSION ge '4.007' && try_run("jpeg/has_jpeg.c",['-I/usr/local/include'],['-ljpeg'])) >++if ($Tk::MMtry::VERSION ge '4.007' && try_run("jpeg/has_jpeg.c",['-I%%LOCALBASE%%/include'],['-L%%LOCALBASE%%/lib -ljpeg'])) >+ { >+- push(@args, LIBS => ['-ljpeg'], >+- INC => '-I/usr/local/include', >++ push(@args, LIBS => ['-L%%LOCALBASE%%/lib -ljpeg'], >++ INC => '-I%%LOCALBASE%%/include', >+ DEFINE => '-DHAVE_JPEGLIB_H', >+ ); >+ warn "Using system's -ljpeg\n"; >diff -ruN p5-Tk.orig/files/patch-PNG_Makefile.PL p5-Tk/files/patch-PNG_Makefile.PL >--- p5-Tk.orig/files/patch-PNG_Makefile.PL 1969-12-31 19:00:00.000000000 -0500 >+++ p5-Tk/files/patch-PNG_Makefile.PL 2010-01-12 08:35:30.000000000 -0500 >@@ -0,0 +1,22 @@ >+--- PNG/Makefile.PL.orig 2010-01-12 08:23:36.000000000 -0500 >++++ PNG/Makefile.PL 2010-01-12 08:26:18.000000000 -0500 >+@@ -16,7 +16,7 @@ >+ } >+ >+ if ($Tk::MMtry::VERSION ge '4.007' && >+- try_run("config/has_png.c",['-I/usr/local/include'],['-lpng -lz -lm'])) >++ try_run("config/has_png.c",['-I%%LOCALBASE%%/include'],['-L%%LOCALBASE%%/lib -lpng -lz -lm'])) >+ { >+ Tk::MMutil::TkExtMakefile( >+ NAME => 'Tk::PNG', >+@@ -24,8 +24,8 @@ >+ XS_VERSION => $Tk::Config::VERSION, >+ dist => { COMPRESS => 'gzip -f9', SUFFIX => '.gz' }, >+ OBJECT => '$(O_FILES)', >+- INC => '-I/usr/local/include', >+- LIBS => ['-lpng -lz -lm'], >++ INC => '-I%%LOCALBASE%%/include', >++ LIBS => ['-L%%LOCALBASE%%/lib -lpng -lz -lm'], >+ ); >+ } >+ else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 142748
: 102915