mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04: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:
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
|
@ -30,7 +30,9 @@ UNALZ_OBJS= main.o UnAlz.o UnAlzUtils.o UnAlzBz2decompress.o \
|
||||||
UnAlzBzip2.o UnAlzbzlib.o
|
UnAlzBzip2.o UnAlzbzlib.o
|
||||||
|
|
||||||
post-patch:
|
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
|
'/<sys\/timeb.h>/d' ${WRKSRC}/main.cpp
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
|
|
|
@ -1,5 +1,14 @@
|
||||||
--- UnAlz.cpp.orig
|
--- UnAlz.cpp.orig
|
||||||
+++ UnAlz.cpp
|
+++ 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 @@
|
@@ -1907,7 +1907,11 @@
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
UINT32 CUnAlz::CRC32(UINT32 l, BYTE c)
|
UINT32 CUnAlz::CRC32(UINT32 l, BYTE c)
|
||||||
|
|
Loading…
Add table
Reference in a new issue