summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2004-11-25 15:27:27 +0000
committerMax Khon <fjoe@FreeBSD.org>2004-11-25 15:27:27 +0000
commit493b6612f434d86334e8fc3a367675f98aef5303 (patch)
tree9b1ab449e176e952706766befcc1549639ad2e8a /archivers
parentFix DoS in the Ruby CGI module. (diff)
Allow mspack.h to be included in C++ source code
(replace "this" with "self").
Notes
Notes: svn path=/head/; revision=122407
Diffstat (limited to 'archivers')
-rw-r--r--archivers/libmspack/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/archivers/libmspack/Makefile b/archivers/libmspack/Makefile
index 1e132669bcf0..b7b8518b66d2 100644
--- a/archivers/libmspack/Makefile
+++ b/archivers/libmspack/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libmspack
PORTVERSION= 0.0.20040308
+PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= http://www.kyz.uklinux.net/downloads/
DISTNAME= ${PORTNAME}-${PORTVERSION}alpha
@@ -14,8 +15,13 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}alpha
MAINTAINER= fjoe@FreeBSD.org
COMMENT= A library for Microsoft compression formats
+USE_REINPLACE= yes
USE_LIBTOOL_VER= 15
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
+post-patch:
+ @${REINPLACE_CMD} -e 's,\*this,*self,'\
+ -e 's,@param\( *\)this,@param\1self,' ${WRKSRC}/mspack/mspack.h
+
.include <bsd.port.mk>