1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

- Fix build with clang

PR:		ports/182885
Submitted by:	Oleg Ginzburg <olevole@olevole.ru> (maintainer)
Approved by:	eadler, osa, rm (mentors, implicit)
This commit is contained in:
Veniamin Gvozdikov 2013-10-17 07:38:22 +00:00
parent c57a9101a6
commit 6b8e996d9f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330615
2 changed files with 19 additions and 13 deletions

View File

@ -10,33 +10,29 @@ COMMENT= FUSE filesystem to mount ZIP archives with write support
LICENSE= LGPL3
LIB_DEPENDS= zip:${PORTSDIR}/archivers/libzip
LIB_DEPENDS= libzip.so:${PORTSDIR}/archivers/libzip
BUILD_DEPENDS= libzip>=0.11.1:${PORTSDIR}/archivers/libzip
USE_GMAKE= yes
USES= fuse pkgconfig
USES= gmake fuse pkgconfig
PLIST_FILES= bin/${PORTNAME}
MAN1= ${PORTNAME}.1
PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
PORTDOCS= README TODO changelog
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
.include <bsd.port.options.mk>
do-build:
(cd ${WRKSRC} && ${GMAKE} -C lib && \
${GMAKE} CXXFLAGS="-I${LOCALBASE}/include")
post-patch:
@${REINPLACE_CMD} -e 's|make|$${MAKE}|' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
--- lib/bigBuffer.h.orig 2013-10-11 01:12:58.000000000 +0400
+++ lib/bigBuffer.h 2013-10-11 01:13:02.000000000 +0400
@@ -26,6 +26,7 @@
#include <unistd.h>
#include <vector>
+#include <string>
#include "types.h"