1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00

- Fix the build with libc++.

- Fix the build with iconv in base.
- Be verbose in the sed calls done in post-patch.
This commit is contained in:
Raphael Kubo da Costa 2013-11-17 21:35:00 +00:00
parent 657aaa16b6
commit 5890f46ac8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334124
2 changed files with 12 additions and 1 deletions

View File

@ -30,7 +30,9 @@ UNALZ_OBJS= main.o UnAlz.o UnAlzUtils.o UnAlzBz2decompress.o \
UnAlzBzip2.o UnAlzbzlib.o
post-patch:
@${REINPLACE_CMD} -e \
${REINPLACE_CMD} -e \
's/-liconv/${ICONV_LIB}/g' ${WRKSRC}/Makefile
${REINPLACE_CMD} -e \
'/<sys\/timeb.h>/d' ${WRKSRC}/main.cpp
do-install:

View File

@ -1,5 +1,14 @@
--- UnAlz.cpp.orig
+++ UnAlz.cpp
@@ -37,7 +37,7 @@
# include <errno.h>
#endif
-#if defined(__NetBSD__)
+#if defined(__NetBSD__) || defined(__FreeBSD__)
# include <sys/param.h> // __NetBSD_Version__
# include <errno.h> // iconv.h 때문에 필요
#endif
@@ -1907,7 +1907,11 @@
////////////////////////////////////////////////////////////////////////////////////////////////////
UINT32 CUnAlz::CRC32(UINT32 l, BYTE c)