- Support Tcl/Tk 8.6
Submitted by: mi@
This commit is contained in:
parent
f6830785c8
commit
726a55f00e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334474
2 changed files with 10 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
PORTNAME= blt
|
||||
PORTVERSION= 2.5.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11-toolkits tk
|
||||
MASTER_SITES= SF/wize
|
||||
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
|
||||
|
@ -16,7 +17,7 @@ LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
|
|||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION:R}
|
||||
|
||||
USES+= gmake tk:84,85
|
||||
USES+= gmake tk
|
||||
USE_ZIP= yes
|
||||
USE_LDCONFIG= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
@ -42,4 +43,10 @@ post-patch:
|
|||
${FIND} ${WRKSRC}/demos -name "*.tcl" | ${XARGS} \
|
||||
${REINPLACE_CMD} -e 's|../src/bltwish|${LOCALBASE}/bin/bltwish|'
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${TCL_VER} > 8.5
|
||||
CFLAGS+= -DUSE_INTERP_RESULT -DUSE_INTERP_ERRORLINE
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#ifdef TCL_UTF_MAX
|
||||
#define HAVE_UTF 1
|
||||
-extern FILE *Blt_OpenUtfFile _ANSI_ARGS_((char *fileName, char *mode));
|
||||
+extern FILE *Blt_OpenUtfFile _ANSI_ARGS_((CONST char *fileName, char *mode));
|
||||
+extern FILE *Blt_OpenUtfFile _ANSI_ARGS_((CONST char *fileName, CONST char *mode));
|
||||
#define fopen(f,m) Blt_OpenUtfFile((f),(m));
|
||||
#else
|
||||
#define HAVE_UTF 0
|
||||
|
|
Loading…
Reference in a new issue