1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Unbreak with pre-C++11 compilers, e.g. with gcc 4.2.1 which is still the

default compiler on some tier-2 architectures like powerpc and sparc64,
by using identical types from C's <stdint.h> rather than C++'s <cstdint>
header file.  While here, convert to USES+=localbase.

PR:		225171
Reported by:	jhibbits
This commit is contained in:
Alexey Dokuchaev 2018-01-15 10:01:19 +00:00
parent f80d999528
commit dbef05a3f2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459026
2 changed files with 21 additions and 4 deletions

View File

@ -14,21 +14,23 @@ LICENSE_FILE= ${WRKSRC}/license/LICENSING.txt
LIB_DEPENDS= libexpat.so:textproc/expat2
USES= autoreconf libtool pkgconfig
USES= autoreconf libtool localbase pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= silnrsi
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
DOCS= AUTHORS README NEWS docs/*.pdf license/LICENSING.txt
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e '/sfconv_CXXFLAGS = -std=c++11/d' \
${WRKSRC}/bin/Makefile.am
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,15 @@
--- SFconv/UtfCodec.h.orig 2017-06-23 19:39:26 UTC
+++ SFconv/UtfCodec.h
@@ -28,11 +28,7 @@ of the License or (at your option) any l
#include <cstddef>
#include <cstdlib>
-#include <cstdint>
-
-using std::int8_t;
-using std::uint8_t;
-using std::ptrdiff_t;
+#include <stdint.h>
typedef uint32_t uchar_t;