1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

o Fix header files: stdint.h -> inttypes.h

o Separate BROKEN messages to avoid ambiguity
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2005-01-08 17:35:15 +00:00
parent 890d2a506d
commit 01bad2395f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125842
2 changed files with 32 additions and 4 deletions

View File

@ -47,11 +47,19 @@ WX_CONFIG?= ${X11BASE}/bin/wxgtk2-2.4-config
FILES_ATOLL_PATCH= src/Preferences.cpp \
src/otherfunctions.cpp
FILES_STDINT_PATCH= \
intl/loadmsgcat.c \
src/ClientList.h \
src/sockets.h
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000 || ${ARCH} == "sparc64"
BROKEN= "Does not compile on 4.x or on sparc64"
.if ${OSVERSION} < 500000
BROKEN= "Does not compile on FreeBSD 4.x"
.endif
.if ${ARCH} == "sparc64"
BROKEN= "Does not compile on sparc64"
.endif
post-patch:
@ -76,6 +84,12 @@ post-patch:
-e 's|atoll[[:space:]]*\([[:space:]]*char|atoll(const char|' \
${WRKSRC}/${file}
.endfor
# stdint.h -> inttypes.h
.for file in ${FILES_STDINT_PATCH}
@${REINPLACE_CMD} -E \
-e 's|<stdint.h>|<inttypes.h>|' \
${WRKSRC}/${file}
.endfor
pre-configure:
@${FIND} ${WRKSRC} -type f -name "Makefile.in" | \

View File

@ -47,11 +47,19 @@ WX_CONFIG?= ${X11BASE}/bin/wxgtk2-2.4-config
FILES_ATOLL_PATCH= src/Preferences.cpp \
src/otherfunctions.cpp
FILES_STDINT_PATCH= \
intl/loadmsgcat.c \
src/ClientList.h \
src/sockets.h
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000 || ${ARCH} == "sparc64"
BROKEN= "Does not compile on 4.x or on sparc64"
.if ${OSVERSION} < 500000
BROKEN= "Does not compile on FreeBSD 4.x"
.endif
.if ${ARCH} == "sparc64"
BROKEN= "Does not compile on sparc64"
.endif
post-patch:
@ -76,6 +84,12 @@ post-patch:
-e 's|atoll[[:space:]]*\([[:space:]]*char|atoll(const char|' \
${WRKSRC}/${file}
.endfor
# stdint.h -> inttypes.h
.for file in ${FILES_STDINT_PATCH}
@${REINPLACE_CMD} -E \
-e 's|<stdint.h>|<inttypes.h>|' \
${WRKSRC}/${file}
.endfor
pre-configure:
@${FIND} ${WRKSRC} -type f -name "Makefile.in" | \