aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2005-10-25 18:18:25 +0800
committerdanfe <danfe@FreeBSD.org>2005-10-25 18:18:25 +0800
commit8bb6e08d41dca14c3c8516710ca607064dadd109 (patch)
tree0efd439c983cb46a90bf124a33860bf9f7c6da22 /archivers
parent5d9083c657631400d9a6bac0ec25f04b7b15e26d (diff)
downloadfreebsd-ports-graphics-8bb6e08d41dca14c3c8516710ca607064dadd109.tar.gz
freebsd-ports-graphics-8bb6e08d41dca14c3c8516710ca607064dadd109.tar.zst
freebsd-ports-graphics-8bb6e08d41dca14c3c8516710ca607064dadd109.zip
Unbreak on sparc64.
Tested on: panther
Diffstat (limited to 'archivers')
-rw-r--r--archivers/dzip/Makefile11
1 files changed, 3 insertions, 8 deletions
diff --git a/archivers/dzip/Makefile b/archivers/dzip/Makefile
index 11cdb8e07cc..1c0dcaa5bd1 100644
--- a/archivers/dzip/Makefile
+++ b/archivers/dzip/Makefile
@@ -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>