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

Fix the build on big-endian arches (again). It was fixed once already in

r220419, but apparently some bugs just like to come back.  Also, it looks
like ia64 was added in r303640 rather unfairly, so just remove the BROKEN
statement altogether.

Tested on:	eris, flame (unfortunately, non-GUI builds only)
This commit is contained in:
Alexey Dokuchaev 2014-03-10 11:40:33 +00:00
parent 0de8cda459
commit 00cf29527c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347741

View File

@ -45,12 +45,17 @@ LIB_DEPENDS+= qwt:${PORTSDIR}/x11-toolkits/qwt5
CONFIGURE_ARGS+= --disable-graph
.endif
post-patch:
@${REINPLACE_CMD} -E '/#include <byteswap\.h>/d ; \
/#include/s,"bswap\.h",<machine/endian.h>, ; \
s,bswap_([[:digit:]]+),bswap\1, ' \
${WRKSRC}/src/samdump2/bkhive.c \
${WRKSRC}/src/samdump2/hive.c \
${WRKSRC}/src/samdump2/samdump2.c \
${WRKSRC}/src/misc.h
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN= Does not compile on ia64, powerpc, or sparc64
.endif
.include <bsd.port.mk>