Fix build with clang 6.

PR:             226176 (related)
Notified by:    emaste (fix provided via mail)
This commit is contained in:
Emanuel Haupt 2018-04-05 12:39:29 +00:00
parent cd0fa90fa3
commit e158253949
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=466555
2 changed files with 12 additions and 8 deletions

View File

@ -14,17 +14,10 @@ PLIST_FILES= bin/ppmd man/man1/ppmd.1.gz
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
# does not compile with clang 6.0.0
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200056
USE_GCC= yes
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
--- PPMd.cpp.orig 2005-08-11 09:00:41 UTC
+++ PPMd.cpp
@@ -423,7 +423,7 @@ int main(int argc, char *argv[])
default : printsilent(MTxt[5],argv[i]); return -1;
}
- printsilent("Fast PPMII compressor for textual data, variant %c, "__DATE__"\n",char(Variant));
+ printsilent("Fast PPMII compressor for textual data, variant %c, " __DATE__ "\n",char(Variant));
FILE_LIST_NODE* pNode, * pFirstNode=NULL, ** ppNode=&pFirstNode;
for (ENV_FILE_FINDER eff;i < argc;i++) {