1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

archivers/xmill: fix build with clang

PR:		191372
Submitted by:	tkato432 yahoo com
This commit is contained in:
William Grzybowski 2014-07-09 23:03:04 +00:00
parent da9be2fdd9
commit 1cee02cf4d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361418
3 changed files with 23 additions and 24 deletions

View File

@ -10,16 +10,15 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Efficient compressor for XML
WRKSRC= ${WRKDIR}/${PORTNAME}
MAKEFILE= makefile
USES= dos2unix zip
DOS2UNIX_FILES= ${MAKEFILE} XMill/BZlib.cpp
PLIST_FILES= bin/xcmill bin/xdemill bin/xmilltest bin/xmillexample \
bin/xmillinspect bin/ppmzip
DOS2UNIX_FILES= ${MAKEFILE} XMill/*.cpp
MAKEFILE= makefile
PORTDOCS= *
PORTEXAMPLES= *
PLIST_FILES= bin/xcmill bin/xdemill bin/xmilltest bin/xmillexample \
bin/xmillinspect bin/ppmzip
OPTIONS_DEFINE= DOCS EXAMPLES
@ -30,11 +29,11 @@ post-patch:
do-install:
.for p in ${PLIST_FILES:T}
${INSTALL_PROGRAM} ${WRKSRC}/unix/${p} ${STAGEDIR}${PREFIX}/bin
(cd ${WRKSRC}/unix && ${INSTALL_PROGRAM} ${p} ${STAGEDIR}${PREFIX}/bin)
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/documentation/* ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/documentation && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>

View File

@ -1,11 +1,11 @@
--- XMill/CompressMan.cpp.orig 2009-03-13 19:11:05.000000000 +0100
+++ XMill/CompressMan.cpp 2009-03-13 19:11:08.000000000 +0100
@@ -423,7 +423,7 @@
UserCompressorFactory *compressor=compressorlist;
while(compressor!=NULL)
{
- printf("%lu =>",(unsigned int)compressor);
+ printf("%lu =>",(unsigned intptr_t)compressor);
printf("%s\n",compressor->GetName());
compressor=compressor->next;
}
UserCompressorFactory *compressor=compressorlist;
while(compressor!=NULL)
{
- printf("%lu =>",(unsigned int)compressor);
+ printf("%lu =>",(unsigned)(intptr_t)compressor);
printf("%s\n",compressor->GetName());
compressor=compressor->next;
}

View File

@ -1,11 +1,11 @@
--- XMill/PPMDI.cpp.orig 2009-03-13 19:12:05.000000000 +0100
+++ XMill/PPMDI.cpp 2009-03-13 19:12:29.000000000 +0100
@@ -245,7 +245,7 @@
cleanup:
*outused = j;
- *inused = inlen - (int)endptr + (int)src;
+ *inused = inlen - (intptr_t)endptr + (intptr_t)src;
return ret;
}
cleanup:
*outused = j;
- *inused = inlen - (int)endptr + (int)src;
+ *inused = inlen - (intptr_t)endptr + (intptr_t)src;
return ret;
}