Unbreak on sparc64.

Tested on:	panther
This commit is contained in:
Alexey Dokuchaev 2005-10-25 10:18:25 +00:00
parent 1476df6bd5
commit a04f9237ed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=146322

View file

@ -24,21 +24,16 @@ ALL_TARGET= ${PORTNAME}
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= "Does not compile on sparc64"
.endif
post-extract:
@${FIND} -E ${WRKDIR} -type f -print0 | \
${XARGS} -0 ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//'
@${REINPLACE_CMD} -e 's/ifdef BIG_ENDIAN/if BYTE_ORDER == BIG_ENDIAN/' \
-e 's/ifndef BIG_ENDIAN/if BYTE_ORDER == LITTLE_ENDIAN/' \
${WRKSRC}/dzip.h ${WRKSRC}/conmain.c ${WRKSRC}/dzip.h
${WRKSRC}/dzip.h ${WRKSRC}/conmain.c
@${REINPLACE_CMD} -e '4s,^,#include <machine/endian.h>,' ${WRKSRC}/dzip.h
@${REINPLACE_CMD} -e 's/) $$(OBJECTS/&:T/' ${WRKSRCK}/${MAKEFILE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.include <bsd.port.post.mk>
.include <bsd.port.mk>